import type { Plugin } from "vite"; import type { PluggableList } from "unified"; import type { Options as RemarkParseOptions } from "remark-parse"; import type { Options as RemarkRehypeOptions } from "remark-rehype"; import type { Options as RehypeStringifyOptions } from "rehype-stringify"; import { TemplateFn } from "./templates/utils"; type PluginOptions = { templates?: Record; remarkPlugins?: PluggableList; rehypePlugins?: PluggableList; remarkParseOptions?: RemarkParseOptions; remarkRehypeOptions?: RemarkRehypeOptions; rehypeStringifyOptions?: RehypeStringifyOptions; }; export * from './templates/utils'; export default function vitePlugin({ templates, remarkPlugins, rehypePlugins, remarkParseOptions, remarkRehypeOptions, rehypeStringifyOptions, }?: PluginOptions): Plugin;