import { a as CollectionMap, i as CollectionDef, o as InferCollectionData, t as ContentLayerConfig } from "../content-config-CJROdGFz.mjs"; import { t as Heading } from "../heading-CIGVDIkM.mjs"; //#region src/vite/content-plugin.d.ts type Simplify = { [K in keyof T]: T[K] } & {}; type PagesmithResolvedConfig = { root: string; }; type PagesmithModuleGraph = { getModuleById(id: string): unknown; invalidateModule(module: unknown): void; }; type PagesmithDevServer = { moduleGraph: PagesmithModuleGraph; ws: { send(payload: { type: string; }): void; }; }; type PagesmithVitePlugin = { name: string; enforce?: "pre" | "post"; configResolved?: (config: PagesmithResolvedConfig) => void; buildStart?: () => void; resolveId?: (id: string) => string | void; load?: (id: string) => Promise | string | void; handleHotUpdate?: (context: { file: string; server: PagesmithDevServer; }) => void; }; type BaseContentModuleEntry = { id: string; contentSlug: string; }; type MarkdownContentModuleEntry> = Simplify; }>; type DataContentModuleEntry> = Simplify; }>; type LoaderKindFromCollection> = TCollection["loader"] extends "markdown" ? "markdown" : TCollection["loader"] extends { kind: infer TKind; } ? TKind : "data"; type ContentCollectionModule> = LoaderKindFromCollection extends "markdown" ? MarkdownContentModuleEntry[] : DataContentModuleEntry[]; type ContentModuleMap = { [TName in keyof TCollections]: ContentCollectionModule }; type PagesmithContentPluginOptions = Omit & { collections: TCollections; /** * Shared content root used to compute `id` and `contentSlug`. * Defaults to the deepest common parent directory across all collection directories. */ contentRoot?: string; /** * Root virtual module id. * Per-collection modules are exposed as `${moduleId}/`. */ moduleId?: string; /** * Path to the content config module used for generated typings. * Defaults to `./content.config.ts`. */ configPath?: string; /** * Generate module declarations for the virtual modules. * Defaults to `src/pagesmith-content.d.ts` when `src/` exists, otherwise `pagesmith-content.d.ts`. */ dts?: boolean | string | { path?: string; }; /** * Internal override used by re-exporting packages to keep generated declaration * imports aligned with the public Vite entry point they expose. */ dtsImportSource?: string; }; declare function pagesmithContent(collections: TCollections, options?: Omit, "collections">): PagesmithVitePlugin; declare function pagesmithContent(options: PagesmithContentPluginOptions): PagesmithVitePlugin; //#endregion export { type BaseContentModuleEntry, type ContentCollectionModule, type ContentModuleMap, type DataContentModuleEntry, type MarkdownContentModuleEntry, type PagesmithContentPluginOptions, type PagesmithVitePlugin, pagesmithContent }; //# sourceMappingURL=index.d.mts.map