import { type N8nOAuth2FlowResult, type N8nOAuth2RefreshResult } from 'n8n-workflow'; export interface N8nOAuth2Flow { begin(resourceUrl: string, metadata?: Record): Promise; complete(code: string, state: string): Promise; refreshVirtualClientToken(refreshToken: string, resourceUrl: string): Promise; } export declare class OAuth2FlowProxy implements N8nOAuth2Flow { private provider; registerProvider(provider: N8nOAuth2Flow): void; begin(resourceUrl: string, metadata?: Record): Promise; complete(code: string, state: string): Promise; refreshVirtualClientToken(refreshToken: string, resourceUrl: string): Promise; }