export type PortLeaseMode = 'auto' | 'fixed'; export type PortLeaseStatus = 'allocated' | 'active' | 'stale' | 'dead' | 'orphan'; export interface PortLease { leaseId: string; name: string; port: number; pid: number; cwd: string; mode: PortLeaseMode; status: PortLeaseStatus; since: string; heartbeat: number; ttlMs: number; lockPath: string; } export interface AllocatePortLeaseOptions { preferredPort?: number; mode?: PortLeaseMode; heartbeatMs?: number; } declare const AUTO_PORT_RANGE: { start: number; end: number; }; export declare function allocatePortLease(name: string, options?: AllocatePortLeaseOptions): Promise; export declare function heartbeatPortLease(lease: PortLease, status?: PortLeaseStatus): Promise; export declare function releasePortLease(lease: Pick): Promise; export declare function listPortLeases(): Promise>; export { AUTO_PORT_RANGE }; //# sourceMappingURL=portLeases.d.ts.map