export interface AuthCodeFlowParams { cacheKey: string; authorizationEndpoint: string; tokenUrl: string; clientId: string; clientSecret: string; scopes: string[]; tokenEndpointAuthMethod: 'client_secret_basic' | 'client_secret_post'; pkce: boolean; redirectPort?: number; } export interface AuthCodeStartResponse { status: 'authorization_required'; method: 'authorization_code'; message: string; authorizationUrl: string; instruction: string; } export declare class AuthCodeFlowManager { private readonly pending; startAuthCodeFlow(params: AuthCodeFlowParams): Promise; pollAuthCodeFlow(cacheKey: string): Promise<{ status: 'complete'; token: { accessToken: string; expiresIn?: number; }; } | { status: 'pending'; }>; hasPending(cacheKey: string): boolean; cleanup(): void; }