export interface DeviceConnectOptions { url: string; name: string; onOpen: (url: string, expiresAt: string) => void; signal?: AbortSignal; /** False in a terminal with no browser to open. The printed URL still works elsewhere. */ openBrowser?: boolean; opener?: (url: string) => Promise; fetcher?: typeof fetch; wait?: (milliseconds: number, signal?: AbortSignal) => Promise; } export declare function openDeviceBrowser(url: string): Promise; /** Browser reviews scopes; only this terminal receives the durable credential. */ export declare function connectThroughBrowser(options: DeviceConnectOptions): Promise;