export interface OAuthCallbackPayload {
    url: URL;
    code?: string;
    state?: string;
    provider?: string;
    error?: string;
}
export interface LocalOAuthServerOptions {
    host?: string;
    ports: number[];
    callbackPath: string;
    timeoutMs?: number;
    expectedState?: string;
    successHtml?: string;
}
export interface LocalOAuthServer {
    callbackUrl: string;
    waitForCallback: () => Promise<OAuthCallbackPayload | null>;
    cancelWait: () => void;
    close: () => void;
}
export declare function startLocalOAuthServer(options: LocalOAuthServerOptions): Promise<LocalOAuthServer>;
