export interface OAuthLocalListenerConfig {
    readonly expectedState: string;
    readonly host?: string | undefined;
    readonly port?: number | undefined;
    readonly path?: string | undefined;
    readonly timeoutMs?: number | undefined;
}
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