import { ComponentRegistry, HydrationManifest, RenderOutput, StructuredData } from "./runtime.js"; import { s as Source } from "./loader-Dc5nlBEp.js"; import { StandardSchemaV1 } from "@standard-schema/spec"; //#region src/macro.d.ts /** Frontmatter every page has after validation. */ export interface BaseFrontmatter { title: string; description: string; tags: string[]; draft: boolean; order?: number; /** Route slug, `index` for a collection's root page. */ slug: string; } export interface TocItem { title: string; /** `#heading-id` */ url: string; depth: number; } /** A page body, loaded on demand. */ export interface LoadedPage { content: RenderOutput; toc: TocItem[]; headings: Array<{ depth: number; text: string; id: string; }>; manifest: HydrationManifest; /** Search sections, extracted at compile time. */ structuredData: StructuredData; } /** Page data: frontmatter plus `load()` for the compiled body. */ export type DocData = F & { load(): Promise; }; export interface DocsCollection { /** The collection as a `loader()` source (fumadocs: `toFumadocsSource()`). */ toDocviaSource(): Source>; } type SchemaOutput = S extends StandardSchemaV1 ? StandardSchemaV1.InferOutput : unknown; export interface DefineDocsOptions { /** Content directory, relative to the project root. Must be a string literal. */ dir?: string; docs?: { /** Extra frontmatter fields (any Standard Schema: Zod, Valibot, ArkType). */ schema?: S; }; } /** * Declare a docs collection. The docvia bundler plugin rewrites this call at build time into * an index of the folder's pages, so nothing is scanned at runtime. */ export declare function defineDocs(options?: DefineDocsOptions): DocsCollection>; /** The component registry from `components` in `docvia.config`, with real imports. */ export declare function defineRegistry(): ComponentRegistry; //#endregion //# sourceMappingURL=macro.d.ts.map