import { type Credentials } from '../lib/config-writers.js'; declare function buildAuthorizeUrl(params: { dashboardOrigin: string; sessionId: string; completionNonce: string; callbackPort?: number; callbackNonce?: string; }): string; declare function startCallbackServer(): Promise<{ port: number; nonce: string; completed: Promise; /** Intentional teardown after the login flow has succeeded via another path. * Resolves `completed` cleanly so downstream `.then()` handlers see a * no-op rather than the phantom "closed before browser completion" error. */ cancel: () => void; /** Unexpected teardown: rejects `completed` if no callback was received. * Use only when the flow is aborting abnormally (server error, test). */ close: () => void; }>; declare function configureLocalEnvironment(creds: Credentials): Promise; export declare function offerHostedMcpInstall(apiOrigin: string): Promise; export declare function runLogin(): Promise; export declare const __testing: { buildAuthorizeUrl: typeof buildAuthorizeUrl; startCallbackServer: typeof startCallbackServer; configureLocalEnvironment: typeof configureLocalEnvironment; }; export {}; //# sourceMappingURL=login.d.ts.map