import type { ClientErrorStatusCode } from 'hono/utils/http-status'; import type { Context } from 'hono'; import type { Store } from '../store'; import type { REDOCLY_ROUTE_RBAC, REDOCLY_TEAMS_RBAC, RbacScopeItems } from '@redocly/config'; export declare function handleUnauthorized(ctx: Context, store: Store, accessedRouteSlug: string, idpIdHint?: string): Promise; export declare function handleErrorPageRender(ctx: Context, store: Store, options: { slug: string; [REDOCLY_TEAMS_RBAC]?: RbacScopeItems; [REDOCLY_ROUTE_RBAC]?: { slug?: string; fsPath?: string; }; }, statusCode: ClientErrorStatusCode, templateId?: string): Promise; export declare function getLoginUrlWithRedirect(redirectTo: string): string; export declare function handleUnauthorizedAsset(ctx: Context): Promise>; export declare function handleUnauthorizedApiRequest(ctx: Context): Response; /** * Normalize the IP address to an IPv4 address. * @param address - The IP address to normalize. * @returns The normalized IP address. */ export declare function normalizeIpAddress(address?: string): string | undefined; //# sourceMappingURL=utils.d.ts.map