/** * OAuth callback result */ export interface CallbackResult { code?: string; state?: string; error?: string; error_description?: string; } export interface CallbackServerHandle { waitForCallback: () => Promise; close: () => void; } /** * Start a local HTTP server to handle OAuth callback * Returns a promise that resolves when server is listening, with a handle to wait for callback * If the requested port is in use, will automatically try ports +1, +2, +3, etc. up to 10 attempts * * @param port - The desired callback port * @param serverUrl - The URL of the server under test (to avoid port conflicts) */ export declare function startCallbackServer(port: number, serverUrl?: string, additionalUrlsToAvoid?: string[]): Promise; //# sourceMappingURL=callback-server.d.ts.map