export type AuthDetails = { type: 'none'; } | { type: 'api-key'; apiKey: string; } | { type: 'oauth'; accessToken: string; refreshToken: string; expiresAt: number; email?: string; }; export declare function loadAuth(): Promise; export declare function saveApiKeyAuth(apiKey: string): Promise; export declare function saveOAuthAuth(accessToken: string, refreshToken: string, expiresIn: number, email?: string): Promise; export declare function updateOAuthTokens(accessToken: string, expiresIn: number): Promise; export declare function clearAuth(): Promise; export declare function isAuthenticated(): Promise; export declare function isTokenExpired(expiresAt: number, bufferSeconds?: number): boolean;