interface GetTCPPortOptions { waitTimeInSeconds?: number; maxTries?: number; } /** * Returns an available port in the current environment. * * @param preferredPort - Number of the preferred port to be used if available. * @param options - Extra configuration for getting TCP ports. * @returns A promise that resolves with an availabe port. */ export declare function getAvailableTCPPort(preferredPort?: number, options?: GetTCPPortOptions): Promise; /** * Checks if a port is available. * * @param portNumber - The port number to check. * @returns A promise that resolves with a boolean indicating if the port is available. */ export declare function checkPortAvailability(portNumber: number): Promise; export {};