export interface FindAvailablePortOptions { minPort?: number; maxPort?: number; random?: () => number; host?: string; } /** * Check if a port is available for binding. * * KNOWN LIMITATION: TOCTOU race condition - port is released immediately after check. * If two processes check simultaneously, both may think the port is available. * This is acceptable for development scripts where concurrent starts are rare. * The fallback logic will find another port if the race occurs. */ export declare const isPortAvailable: (port: number, host?: string) => Promise; /** * Find an available TCP port within a configurable range using randomized search. * * This enhanced version provides: * - Randomized port selection to avoid thundering herd * - Configurable port ranges * - Custom random function for deterministic testing * - Configurable host binding */ export declare function findAvailablePort(options?: FindAvailablePortOptions): Promise; /** * Legacy API: Find an available TCP port starting from a seed value and searching in the specified direction. * @deprecated Use findAvailablePort with options instead */ export declare function findAvailablePortSequential(startPort: number, direction?: 'up' | 'down'): Promise; //# sourceMappingURL=findAvailablePort.d.ts.map