import type { AuthProviderType, RedirectsConfig } from '@redocly/config';
import type { StatusCode } from 'hono/utils/http-status';
export declare function getPageDataUrl(normalizedRoute: string): string;
export declare function getClientPageDataUrl(normalizedRoute: string): string;
export declare function getSharedDataUrl(id: string): string;
export declare const GLOBAL_DATA_URL = "/app-data.json";
export declare const EJECT_COMPONENT_URL = "/eject-component";
/**
 * Sanitizes the redirect pathname by removing leading slashes and whitespace
 * Browsers treat urls with two leading slashes as protocol-relative urls. See tests.
 * It also weirdly skips over whitespace between slashes.
 * This is to prevent open redirect vulnerabilities.
 */
export declare function sanitizeRedirectPathname(pathname: string): string;
/**
 * Appends params and handle encoding of URI components
 * @param originalUrl
 * @param additionalQueryParams
 */
export declare function appendQueryParams(originalUrl: string, additionalQueryParams: Record<string, string>): string;
export declare const SERVER_EDITOR_APP_URL: string;
export declare function isAbsoluteUrl(url: string): boolean;
export declare function buildClientLoginUrl(idpId: string, type: AuthProviderType | string, localePrefix: string, loginUrls?: Record<string, string>, redirectTo?: string, extraParams?: Record<string, string>): string | undefined;
export declare function processRedirects({ redirects, requestedSlug, reqUrlSearch, }: {
    redirects: RedirectsConfig;
    requestedSlug: string;
    reqUrlSearch?: string;
}): {
    location: string;
    type: StatusCode;
} | null;
//# sourceMappingURL=urls.d.ts.map