import { z } from "zod"; import { GlobResult, PluginOptions, SearchDocument } from "./types.js"; type Page = z.infer; declare const pageValidator: z.ZodObject<{ url: z.ZodString; frontmatter: z.ZodRecord; }, "strip", z.ZodTypeAny, { url: string; frontmatter: Record; }, { url: string; frontmatter: Record; }>; /** * Convert a single page to an array of SearchDocuments. * @ignore */ export declare function pageToDocuments(page: Page, contentKey: string): SearchDocument[]; /** * Converts glob output of static pages to an array of {@link types!SearchDocument}s. * * @param pages result of of [`import.meta.glob`](https://vitejs.dev/guide/features.html#glob-import) * @param options plugin options (optional) * @example * ```ts * pagesGlobToDocuments(import.meta.glob('./**\/*.md*')); * ``` */ export declare function pagesGlobToDocuments(pages: GlobResult, options?: Partial): Promise; export {};