import { Plugin } from 'vite'; import * as mdsvex from 'mdsvex'; export { mdsvex } from 'mdsvex'; interface KitbookSettings { title: string; description: string; viewports: Viewport[]; languages?: Language[]; expandTree?: boolean; githubURL?: string; /** * An array of Vite glob patterns for building your Kitbook. See https://vitejs.dev/guide/features.html#multiple-patterns. Defaults to ['/src/**_/*.{md,svx,svelte,variants.ts}', '/README.md']. Adjust this to be able to incrementally adopt Kitbook into your project. << ignore the underscore in the glob pattern, it's just there to make the JSDoc comment work. * @param {boolean} [options.isKitbookItself] - Don't Use - Only for internal use in the original Kitbook package */ importModuleGlobs?: string[]; /** * Don't Use - Only for internal use in the original Kitbook package */ isKitbookItself?: boolean; } type Viewport = { name?: string; width: number; height: number; }; type Language = { name: string; code: string; }; /** * Vite plugin to add a Kitbook to SvelteKit projects. Will automatically add Kitbook routes wherever you have a folder titled `kitbook` somewhere in your `src/routes` directory. If none exists, `src/routes/kitbook` will be used. */ declare function kitbookPlugin(config?: KitbookSettings): Plugin; declare const config: mdsvex.MdsvexOptions; declare const MDSVEX_EXTENSIONS: string[]; export { config as KITBOOK_MDSVEX_CONFIG, KitbookSettings, Language, MDSVEX_EXTENSIONS, Viewport, kitbookPlugin as kitbook };