import type { PoolClient } from 'pg'; /** * `url_redirect` — keep an old friendly URL alive after an entity's `url_key` * changes. A `notFound`-gated middleware 302s `from_path` -> `to_path`; capture * runs in the entity update services (see PR4). Separate from `url_rewrite` * (which is an internal rewrite, not an HTTP redirect). * * Path-keyed: `from_path` is the lookup key and must resolve to exactly one * target, so it is UNIQUE and `entity_urn` is deliberately NOT part of the key. * `from_path`/`to_path` are unbounded `varchar` (deep nested category paths * exceed 255). No `language` column (URLs are prefix-localized) and no `type` * column (all redirects are 302 for now). * * See wiki/url-redirects.md. */ declare const _default: (connection: PoolClient) => Promise; export default _default;