/** * Handle client caching and refresh of auth token */ import { AuthTokenPayload } from "@vertesia/common"; interface ComposableTokenResponse { rawToken: string; token: AuthTokenPayload; error: boolean; message?: string; } export declare function fetchComposableToken(getIdToken: () => Promise, accountId?: string, projectId?: string, ttl?: number, retryCount?: number): Promise; /** * * @param accountId * @param projectId * @param ttl time to live for the token in seconds * @returns */ export declare function fetchComposableTokenFromFirebaseToken(accountId?: string, projectId?: string, ttl?: number): Promise; export declare function getComposableToken(accountId?: string, projectId?: string, initToken?: string, forceRefresh?: boolean, useInternalAuth?: boolean): Promise; export declare class UserNotFoundError extends Error { email: string; constructor(message: string, email: string); } export declare class STSError extends Error { stsURL: string; constructor(message: string, stsURL: string); } export {}; //# sourceMappingURL=composable.d.ts.map