import { type RetryConfig } from "./types.js"; interface HttpResponse { ok: boolean; status: number; headers: Record; json(): Promise; text(): Promise; } /** * Compute the retry delay using exponential backoff with full jitter. * Formula: random(0, min(baseDelay * 2^attempt, maxDelay)) * If a Retry-After header is present, use that as a floor instead. */ export declare function computeRetryDelay(attempt: number, baseDelayMs: number, maxDelayMs: number, retryAfterHeader?: string | string[] | null): number; export interface AuthSession { request(method: string, path: string, body?: unknown): Promise; callFunction(name: string, data: unknown): Promise; getUserId(): string; close(): void; } export interface AuthSessionOptions { email: string; password: string; apiKey?: string; appId?: string; /** Path to token cache file, or true for default path, or false/undefined to disable. */ tokenCachePath?: string | boolean; /** Retry configuration for transient failures. */ retry?: RetryConfig; } export declare function createAuthSession(emailOrOptions: string | AuthSessionOptions, password?: string, apiKey?: string, appId?: string, retryArg?: RetryConfig): Promise; export {}; //# sourceMappingURL=auth.d.ts.map