import type { CamofoxClient } from "../client/camofox-client.js"; import type { StateManager } from "../state.js"; import type { Config, GeminiSession, GeminiTokens } from "../types.js"; export declare class AuthService { private client; private state; private config; private tokenManager; private rotationService; private loginPromises; private logoutCallbacks; private rotationPauseDepth; private shouldResumeRotation; constructor(client: CamofoxClient, state: StateManager, config: Config); login(accountIndex?: number): Promise; private _doLogin; logout(accountIndex?: number): Promise; onLogout(callback: (accountIndex: number) => void | Promise): () => void; stopAllRotations(): void; getStatus(): { authenticated: boolean; accountIndex?: number; tokensValid?: boolean; rotationActive?: boolean; rotationError?: string | null; tabId?: string; }; refreshTokens(accountIndex?: number): Promise; ensureFreshTokens(accountIndex?: number): Promise; ensureSession(accountIndex?: number): Promise; getTokens(accountIndex?: number): Promise; pauseRotation(accountIndex?: number): void; resumeRotation(accountIndex?: number): void; private resolveAccountIndex; private ensureAccount; private isTabAlive; private delay; } //# sourceMappingURL=auth.d.ts.map