export interface OAuthLocalListenerConfig {
    readonly expectedState: string;
    readonly host?: string;
    readonly port?: number;
    readonly path?: string;
    readonly timeoutMs?: number;
}
export interface OAuthLocalListenerResult {
    readonly code: string;
}
export interface OAuthLocalListener {
    readonly redirectUri: string;
    setExpectedState(state: string): void;
    waitForCode(): Promise<OAuthLocalListenerResult>;
    close(): void;
}
export declare function createOAuthLocalListener(config: OAuthLocalListenerConfig): Promise<OAuthLocalListener>;
//# sourceMappingURL=oauth-local-listener.d.ts.map