export declare const MAX_REDIRECT_ORIGIN_COUNT = 64; export declare const MAX_REDIRECT_ORIGIN_LENGTH = 2048; export declare const MAX_REDIRECT_ORIGIN_LIST_LENGTH = 16384; export declare const MAX_REDIRECT_DESTINATION_LENGTH = 8192; export interface RedirectPolicy { allowedOrigins: readonly string[]; } /** Return the serialized origin only when the input is a canonical HTTP(S) origin. */ export declare function parseCanonicalRedirectOrigin(value: string): string | null; /** Return whether every configured origin is canonical, unique, and bounded. */ export declare function isValidRedirectOriginList(origins: readonly string[]): boolean; /** * Validate one project redirect against an opt-in origin policy. * An omitted policy preserves the legacy behavior. A configured policy allows * HTTP(S) destinations on the request origin plus exact allowlisted origins. */ export declare function isRedirectDestinationAllowed(destination: string, requestUrl: string | null, policy: RedirectPolicy | null | undefined): boolean; //# sourceMappingURL=redirect-policy.d.ts.map