import type { RedirectConfig, RedirectsConfig } from '@redocly/config'; import type { WildcardRedirectsTree } from '../../types'; /** * Looks up a redirect rule for a slug * * **IMPORTANT:** The `slug` parameter must be normalized before passing to this function. * * - For wildcard rules whose target ends with `*`, the remainder of the path is preserved. * - `from` is the matched config key (path or pattern); exposed for `followRedirectChain` rule tracking. * * @returns Redirect config with resolved `to`, plus `from`, or `null` if no rule matches or the rule would not change the slug. */ export declare function findRedirect(slug: string, redirects: RedirectsConfig, wildcardRedirectsTree: WildcardRedirectsTree): (WithRequired & { from: string; }) | null; //# sourceMappingURL=find-redirect.d.ts.map