import type { PoolClient } from 'pg'; interface PageRef { uuid: string; url_key: string; } /** * Keep a CMS page's `url_rewrite` row in sync with its current `url_key`. * * The friendly root URL `/` maps to the internal `/page/` route * (same `cmsPageView` handler), so the storefront serves the page at the root path * while the route and resolver keep working unchanged. Keyed on `entity_uuid` so a * rename overwrites the single row in place (the old path becomes a route-miss, * which the redirect feature โ€” R2 โ€” can later 302). * * See wiki/cms-routing-redesign.md ยง "Recommended design". */ export declare function syncPageUrlRewrite(connection: PoolClient, page: PageRef): Promise; /** Remove a page's `url_rewrite` row (on delete). */ export declare function deletePageUrlRewrite(connection: PoolClient, uuid: string): Promise; /** * Reject a CMS page `url_key` that would be unreachable or collide with another * CMS page. Thin wrapper over the shared base guard, pinned to `entity_type = * 'cms_page'`: cross-type collisions (e.g. a landing page sharing the slug) are * ALLOWED and resolved at request time by the fallback's precedence โ€” see * base/services/assertUrlKeyAvailable + wiki/landing-pages.md. */ export declare function assertUrlKeyAvailable(connection: PoolClient, urlKey: string, selfUuid?: string | null): Promise; export {};