import type { IFlowOAuthTokenResult } from '../iflow/oauth'; export interface OAuthServerResult { url: string; redirectUri: string; actualPort: number; waitForAuth: () => Promise; exchangeCode: (code: string) => Promise; close: () => void; } export declare function startOAuthServer(authUrl: string, state: string, redirectUri: string, portStart: number, portRange: number): Promise;