import { type Server } from 'node:http';
import type { OAuthCallbackParams } from '../../types/index.js';
/**
 * Start a local HTTP server on the given port that waits for the OAuth callback.
 * Resolves with the extracted code + state, or rejects on error/timeout.
 */
export declare function startCallbackServer(port: number): Promise<{
    server: Server;
    waitForCallback: Promise<OAuthCallbackParams>;
}>;
/**
 * Find the first available TCP port starting from startPort (default 9876).
 */
export declare function findFreePort(startPort?: number): Promise<number>;
//# sourceMappingURL=local-server.d.ts.map