import type { Plugin } from 'vite'; import { type DocsVersions } from '../../core/version.js'; export interface DocsmithViteOptions { /** Directory scanned for doc pages. Default: `'src/routes/docs'`. */ content?: string; /** * Routes root used to derive each page's URL from its location. * Default: `'src/routes'` (so `src/routes/docs/intro/+page.md` → `/docs/intro`). */ routes?: string; /** Shiki themes for the `?source` render. Default: github-light/github-dark. */ themes?: { light: string; dark: string; }; /** * Path to the `CHANGELOG.md` that feeds the generated * `svelte-docsmith/changelog` index. Default: `'CHANGELOG.md'` in the app * directory; point it at the package whose releases you publish. Set `false` * to skip the changelog entirely. */ changelog?: string | false; /** * Route the changelog is served at, used to build feed links and to find * hand-written per-release pages. Default: `'/changelog'`. */ changelogPath?: string; /** * Declare documentation versions to enable versioned docs. `current` is the * docs for the latest release: its pages sit directly under `` and * keep their unprefixed URLs. Each archived version's pages live under * `//` and are served at `/docs//…`. Omit for a single, * unversioned docs tree (the default). * * @experimental Outside the 1.0 stability promise. May change in a minor * until authors have used versioning for real. An archive freezes content, * not dependencies. */ versions?: DocsVersions; } /** * The svelte-docsmith Vite plugin. Add it to `plugins` in `vite.config.ts`: * * ```ts * import { docsmith } from 'svelte-docsmith/vite'; * export default defineConfig({ plugins: [docsmith(), tailwindcss(), sveltekit()] }); * ``` */ export declare function docsmith(options?: DocsmithViteOptions): Plugin[];