import type { RedirectsConfig } from '@redocly/config';
import type { WildcardRedirectsTree } from '../../types';
/**
 * Builds a tree structure from the redirects configuration for easy wildcard redirect lookup.
 * Does not include direct redirects, only wildcard redirects.
 *
 * @param redirects - The redirects configuration object.
 * @returns The tree structure representing the wildcard redirects.
 *
 * @example
 * // Building a tree from wildcard redirects
 * buildWildcardRedirectsTree({ '/docs/*': { to: '/documentation/*' } });
 * // Returns: { docs: { '*': '/docs/*' } }
 *
 * @example
 * // Building a tree from wildcard redirects with multiple levels
 * buildWildcardRedirectsTree({ '/docs/*': { to: '/documentation/*' }, '/blog/*': { to: '/new-blog/*' } });
 * // Returns: { docs: { '*': '/docs/*' }, blog: { '*': '/blog/*' } }
 */
export declare function buildWildcardRedirectsTree(redirects: RedirectsConfig): WildcardRedirectsTree;
//# sourceMappingURL=build-wildcard-redirects-tree.d.ts.map