/** * Authentication service for sync functionality */ import { AuthInfo } from './types'; /** * Authentication service for browser-use sync */ export declare class AuthService { private static readonly CONFIG_DIR; private static readonly AUTH_FILE; private static readonly KEY_FILE; private authInfo; private encryptionKey; constructor(); /** * Authenticate with API credentials */ authenticate(apiKey: string, userId?: string): Promise; /** * Get current authentication info */ getAuthInfo(): Promise; /** * Check if user is authenticated */ isAuthenticated(): Promise; /** * Logout and clear authentication info */ logout(): Promise; /** * Refresh authentication token */ refreshToken(): Promise; /** * Initialize encryption key for storing auth info */ private initializeEncryptionKey; /** * Save authentication info to disk (encrypted) */ private saveAuthInfo; /** * Load authentication info from disk (decrypt) */ private loadAuthInfo; /** * Check if token is valid (not expired) */ private isTokenValid; /** * Generate user ID from API key */ private generateUserId; /** * Encrypt data using the encryption key */ private encrypt; /** * Decrypt data using the encryption key */ private decrypt; } //# sourceMappingURL=auth.d.ts.map