/** * PortPool — allocates ports from a [min, max] range, checks OS for collisions. */ /** * Allocates TCP ports from a `[min, max]` range with OS-level collision detection. * Used by service connector adapters (devserver, static-server) to assign local ports. * @docLink packages/connectors/api-reference#port-pool */ export declare class PortPool { private readonly min; private readonly max; private readonly inUse; constructor(range: [number, number]); /** Allocate the next free port from the range. Checks OS for collisions. */ allocate(): Promise; /** Mark a port as in-use (for explicit port args or registered instances). */ reserve(port: number): void; /** Return a port to the pool. */ release(port: number): void; /** Check if a port is currently tracked as in-use. */ isInUse(port: number): boolean; /** Quick TCP connect test — returns true if nothing is listening. */ static isPortFree(port: number, host?: string): Promise; } //# sourceMappingURL=port-pool.d.ts.map