import { PageTree } from "./runtime.js"; //#region src/loader.d.ts /** `meta.json` in a content folder (fumadocs-compatible subset). */ interface MetaData { title?: string; /** Order of children: names, `...` (the rest), `---Label---`, `!name`, `[Text](url)`. */ pages?: string[]; defaultOpen?: boolean; root?: boolean; } interface PageFile { type: "page"; /** Path relative to the collection directory, posix (`guide/install.md`). */ path: string; /** Overrides the path-derived slugs (e.g. from a frontmatter `slug`). */ slugs?: string[]; data: D; } interface MetaFile { type: "meta"; /** `guide/meta.json` */ path: string; data: MetaData; } interface Source { files: Array | MetaFile>; } interface Page { slugs: string[]; url: string; /** Source path relative to the collection directory. */ path: string; data: D; } interface LoaderOptions { baseUrl: string; source: Source; } interface LoaderOutput { getPage(slugs?: string[]): Page | undefined; getPages(): Page[]; getPageTree(): PageTree.Root; readonly pageTree: PageTree.Root; /** Resolve a link like `/docs/guide#setup` to its page and hash. */ getPageByHref(href: string): { page: Page; hash?: string; } | undefined; generateParams(key?: K): Array>; /** fumadocs parity: page trees here hold plain strings, so this is the identity. */ serializePageTree(tree: PageTree.Root): Promise; } declare function loader(options: LoaderOptions): LoaderOutput; //#endregion export { Page as a, loader as c, MetaFile as i, LoaderOutput as n, PageFile as o, MetaData as r, Source as s, LoaderOptions as t }; //# sourceMappingURL=loader-Dc5nlBEp.d.ts.map