import type { PoolClient } from 'pg'; /** * Reject a `url_key` that would be unreachable or ambiguous at the storefront. * Runs at the SERVICE layer (the REST APIs are a public surface and the checks * are dynamic — they depend on the live route table + DB): * * - equals a single-segment static frontStore route (e.g. `/cart`) — the route * matcher wins before the `url_rewrite` fallback, so the entity would 404; * - equals an enabled locale code — the locale-prefix stripper consumes it * before the matcher, shadowing the entity; * - already owned by another entity **of the same type** in `url_rewrite`. * * Cross-type collisions are ALLOWED — a landing page and a CMS page may share a * slug — and resolved at request time by the fallback's `entity_type` precedence * (landing wins). See wiki/landing-pages.md. Pass the caller's `entityType` * (`'cms_page'`, `'landing_page'`, …) so only same-type duplicates are rejected. */ export declare function assertUrlKeyAvailable(connection: PoolClient, urlKey: string, selfUuid: string | null, entityType: string): Promise;