/** Native callback lifetime exposed to the provider-independent OAuth flow. */ export interface NativeSchemeCallbackReceiver { /** Restore owned settings; native recovery data remains intact on failure. */ dispose(): Promise; /** Wait for a complete URL while forwarding cancellation to native execution. */ waitForCallback(signal?: AbortSignal, timeoutMs?: number): Promise; } /** Cancellation for native callback registration and its active lifetime. */ export interface NativeSchemeCallbackOptions { signal?: AbortSignal; } /** Connect OAuth's AbortSignals to the native, recoverable desktop callback receiver. */ export declare function createNativeSchemeCallbackReceiver(scheme: string, options?: NativeSchemeCallbackOptions): Promise;