/** * Store JWT token * @param token - JWT token to store * @returns Promise - Success status */ export declare const storeJWT: (token: string) => Promise; /** * Retrieve JWT token * @returns Promise - JWT token or null if not found */ export declare const getJWT: () => Promise; /** * Clear JWT token * @returns Promise - Success status */ export declare const clearJWT: () => Promise; /** * Check if valid JWT token exists * @returns Promise - True if valid token exists */ export declare const hasValidJWT: () => Promise; /** * Decode JWT payload and extract userId (UUID) * Used specifically for LinkedIn scraping which needs the main DB userId * @returns Promise - User ID (UUID) or null if not found */ export declare const getUserIdFromToken: () => Promise; /** * Replace JWT token (for token refresh scenarios) * @param newToken - New JWT token * @returns Promise - Success status */ export declare const replaceJWT: (newToken: string) => Promise; /** * Retrieve the first available auth token across current and legacy storage keys. * This is intentionally more permissive than getJWT() because some older SDK * flows still fall back to non-canonical token keys during migration. */ export declare const getCompatibleAuthToken: () => Promise; /** @deprecated Use storeJWT instead */ export declare enum TokenType { ENOCH = "enoch_token", ONAIROS = "onairos_jwt_token", AUTH = "auth_token" } /** @deprecated Route-based token selection removed - SDK uses single token */ export declare const getTokenTypeForRoute: (_route: string) => TokenType; /** @deprecated Use getJWT() instead */ export declare const getJWTForRoute: (_route: string) => Promise; /** @deprecated Use clearJWT() instead */ export declare const clearAllJWT: () => Promise; /** @deprecated Use storeJWT() instead */ export declare const storeEnochJWT: (token: string) => Promise; /** @deprecated Use storeJWT() instead */ export declare const storeOnairosJWT: (token: string) => Promise; /** @deprecated Use storeJWT() instead */ export declare const storeAuthToken: (token: string) => Promise; /** @deprecated Use replaceJWT() instead */ export declare const replaceJWTAfterVerification: (_tokenType: TokenType, newToken: string) => Promise; /** @deprecated For debugging only */ export declare const getAllTokens: () => Promise>; //# sourceMappingURL=jwtStorageService.d.ts.map