export declare const ATHENA_AUTH_ROUTING_DEBUG_COOKIE_NAME = "athena_auth_routing_debug"; export declare const ATHENA_AUTH_ROUTING_DEBUG_STORAGE_KEY = "athena-auth-ui.auth-routing-debug"; export interface AthenaAuthRoutingDebugConfig { appendAuthPath: boolean; authUrl: string; } type PartialAthenaAuthRoutingDebugConfig = Partial | null; export declare function createDefaultAthenaAuthRoutingDebugConfig(defaultAuthUrl: string): { appendAuthPath: true; authUrl: string; }; export declare function normalizeAthenaAuthRoutingDebugConfig(config: PartialAthenaAuthRoutingDebugConfig | undefined, fallback: AthenaAuthRoutingDebugConfig): AthenaAuthRoutingDebugConfig; export declare function resolveAthenaAuthRoutingDebugBaseUrl(config: AthenaAuthRoutingDebugConfig): string; export declare function createAthenaAuthRoutingDebugState(config: AthenaAuthRoutingDebugConfig): { config: AthenaAuthRoutingDebugConfig; resolvedBaseUrl: string; }; export declare function isSameAthenaAuthRoutingDebugConfig(left: AthenaAuthRoutingDebugConfig, right: AthenaAuthRoutingDebugConfig): boolean; export declare function serializeAthenaAuthRoutingDebugConfig(config: AthenaAuthRoutingDebugConfig): string; export declare function parseAthenaAuthRoutingDebugConfig(rawValue: string | null | undefined, fallback: AthenaAuthRoutingDebugConfig): AthenaAuthRoutingDebugConfig; export declare function isAthenaAuthRoutingDebugPath(pathname: string | undefined): boolean; export interface AthenaAuthRoutingDebugPersistenceOptions { /** When false, skip document.cookie. @default true */ cookie?: boolean; /** When false, skip localStorage. @default true */ localStorage?: boolean; /** * Cookie max-age in seconds when writing browser cookies. * @default 60 * 60 * 24 * 365 (1 year) */ maxAgeSeconds?: number; /** * Cookie path attribute. * @default `/` */ path?: string; } /** * Read routing-debug config from cookie and/or localStorage (browser). * Cookie wins when both are present and parse successfully. * Safe on the server: returns `fallback`. */ export declare function loadAthenaAuthRoutingDebugConfig(fallback: AthenaAuthRoutingDebugConfig, options?: AthenaAuthRoutingDebugPersistenceOptions): AthenaAuthRoutingDebugConfig; /** * Persist routing-debug config to cookie and localStorage (browser). * No-ops on the server. Consumers only need to pass config — attributes are owned here. */ export declare function persistAthenaAuthRoutingDebugConfig(config: AthenaAuthRoutingDebugConfig, options?: AthenaAuthRoutingDebugPersistenceOptions): void; /** * Load config, then return a setter that persists cookie + localStorage. */ export declare function createAthenaAuthRoutingDebugPersistence(defaultConfig: AthenaAuthRoutingDebugConfig, options?: AthenaAuthRoutingDebugPersistenceOptions): { config: AthenaAuthRoutingDebugConfig; setConfig(next: Partial | AthenaAuthRoutingDebugConfig): AthenaAuthRoutingDebugConfig; }; export {};