import type { AuthSession, StorageKind } from './types.ts'; /** Minimal in-memory `Storage` stand-in for environments without Web Storage. */ export declare class MemoryStorage implements Storage { #private; get length(): number; clear(): void; getItem(key: string): string | null; key(index: number): string; removeItem(key: string): void; setItem(key: string, value: string): void; } /** Resolve a storage option to a concrete `Storage`, falling back to memory when Web Storage throws. */ export declare function resolveStorage(kind: StorageKind | Storage | undefined): Storage; export declare function isValidSession(value: unknown, now?: number): value is AuthSession; export declare function readSession(storage: Storage, key: string, now?: number): AuthSession | null; export declare function writeSession(storage: Storage, key: string, session: AuthSession | null): void; //# sourceMappingURL=storage.d.ts.map