export type CallbackResult = { code: string; state: string; }; export type CallbackServer = { redirectUri: string; waitForCode: (options?: { signal?: AbortSignal; timeoutMs?: number; }) => Promise; close: () => Promise; }; export declare function startCallbackServer(options?: { port?: number; path?: string; }): Promise;