@@ -4,10 +4,12 @@ import type { MermaidConfig } from 'mermaid'
4
4
import type * as monaco from 'monaco-editor'
5
5
import type { BuiltinLanguage , BuiltinTheme , CodeOptionsMeta , CodeOptionsThemes , CodeToHastOptionsCommon , Highlighter , LanguageInput } from 'shiki'
6
6
import type { VitePluginConfig as UnoCssConfig } from 'unocss/vite'
7
+ import type { Plugin as VitePlugin } from 'vite'
7
8
import type { App , ComputedRef , Ref } from 'vue'
8
9
import type { Router , RouteRecordRaw } from 'vue-router'
9
10
import type { CodeRunnerProviders } from './code-runner'
10
11
import type { ContextMenuItem } from './context-menu'
12
+ import type { ResolvedSlidevOptions } from './options'
11
13
import type { MarkdownTransformer } from './transform'
12
14
import type { SlidevPreparserExtension } from './types'
13
15
@@ -79,6 +81,7 @@ export type PreparserSetup = (context: {
79
81
headmatter : Record < string , unknown >
80
82
mode ?: string
81
83
} ) => Awaitable < SlidevPreparserExtension [ ] >
84
+ export type VitePluginsSetup = ( options : ResolvedSlidevOptions ) => Awaitable < VitePlugin [ ] >
82
85
83
86
// client side
84
87
export type MonacoSetup = ( m : typeof monaco ) => Awaitable < MonacoSetupReturn | void >
@@ -105,5 +108,6 @@ export const defineKatexSetup = defineSetup<KatexSetup>
105
108
export const defineShortcutsSetup = defineSetup < ShortcutsSetup >
106
109
export const defineTransformersSetup = defineSetup < TransformersSetup >
107
110
export const definePreparserSetup = defineSetup < PreparserSetup >
111
+ export const defineVitePluginsSetup = defineSetup < VitePluginsSetup >
108
112
export const defineCodeRunnersSetup = defineSetup < CodeRunnersSetup >
109
113
export const defineContextMenuSetup = defineSetup < ContextMenuSetup >
0 commit comments