import { AuthSessionView } from '../../types/session.js'; /** * Map Athena Auth response shape V1 (flat user + optional session). */ export declare function sessionViewFromAthenaV1(raw: unknown): AuthSessionView | null; /** * Map Athena Auth response shape V2 (nested session + user envelope). * Also unwraps a single `data` layer when present. */ export declare function sessionViewFromAthenaV2(raw: unknown): AuthSessionView | null; /** * Map Better Auth UI `useSession` style `{ user, session }`. */ export declare function sessionViewFromBauiSession(raw: unknown): AuthSessionView | null; /** * Try V1 → V2 → BAUI session shapes. Returns null when no user can be mapped. * V1 is preferred first so flat payloads with top-level expiresAt / * activeOrganizationId are not accepted by permissive V2 (which ignores those * fields and would short-circuit the V1 path). * Never exposes tokens on the returned view. */ export declare function sessionViewFromUnknown(raw: unknown): AuthSessionView | null; /** * Extract session token for client-only revoke / transport. * Not for UI rendering. */ export declare function sessionTokenFromUnknown(raw: unknown): string | null;