import { AuthConfig, AuthState } from './types'; export declare class AuthManager { private readonly config; private readonly tokenStorage; constructor(config: AuthConfig); /** * Get the authorization URL that the user needs to visit to grant access */ getAuthorizationUrl(accessType?: 'online' | 'offline', prompt?: 'consent'): string; /** * Initialize the client with an authorization code */ authenticateWithCode(code: string, accountsServer: string): Promise; /** * Initialize the client with a refresh token */ authenticateWithRefreshToken(refreshToken: string, accountsServer: string): Promise; /** * Get the current authentication state */ getAuthState(accountsServer: string): Promise; /** * Get a valid access token, refreshing if necessary */ getValidToken(accountsServer: string): Promise; /** * Clear the stored authentication state */ clearAuthState(accountsServer: string): Promise; }