export type PageEditorMetaRow = { datasources?: unknown[]; }; export type PageEditorMetaFile = Record; /** * Persisted preview route params for the Puck editor (e.g. `id` when editing a collection template like `/items/:id`). * URL query still overrides these at runtime. */ export declare function getPageEditorPreviewParams(path: string): Promise>; /** * Returns false when there was no document at `path` to attach preview * params to (e.g. an unvisited collection template row) — the caller should * report that as a failure rather than a silent success, since nothing was * actually persisted. */ export declare function setPageEditorPreviewParams(path: string, previewParams: Record): Promise; /** * Global remote datasource definitions attached to a page. Unlike preview * params, these are not part of the page's own content document — they stay * in the process-local `editorMetaStore`. */ export declare function getPageEditorMetaRow(path: string): PageEditorMetaRow; export declare function setPageEditorMetaRow(path: string, row: PageEditorMetaRow): void; /** Remove all editor metadata for a route (e.g. after deleting the page). */ export declare function removePageEditorMetaPath(path: string): void;