/** Mirrors `EponymeVersionSelector`, redeclared so this stays free of server imports. */ type PreviewVersion = 'draft' | 'published' | number; /** * Single source of truth for `previewPaths` semantics, shared by the dashboard preview panel and the * server-side sitemap builder so both resolve an entry to the exact same public URL. */ /** The slug is URL-encoded. */ export declare function applyPreviewSlug(path: string, slug: string): string; /** Splits `/` against the configured collection names. */ export declare function splitCollectionEntry(collectionNames: string[], name: string): { collection: string; slug: string; } | undefined; /** * An exact key (a singleton) returns its path unchanged; `/` returns * `previewPaths[collection]` with `:slug` filled in. */ export declare function resolvePreviewPath(previewPaths: Record, collectionNames: string[], name: string): string | undefined; /** The query parameters that turn a public route into a preview. */ export declare const EPONYME_PREVIEW_QUERY = "__eponyme_preview"; export declare const EPONYME_PREVIEW_VERSION_QUERY = "__eponyme_preview_version"; export declare const EPONYME_PREVIEW_TOKEN_QUERY = "__eponyme_preview_token"; /** Reads `?__eponyme_preview_version=` – `draft` by default, or a numeric history id. */ export declare function readPreviewVersion(raw: unknown): PreviewVersion; /** Reads the preview query params, unwrapping the repeated-param array form. */ export declare function readPreviewQuery(query: Record): { entry: string | undefined; version: unknown; }; /** Whether the current route is being shown inside the dashboard preview panel. */ export declare function isEponymePreviewRoute(query: Record): boolean; export {};