/** * auto-dollhouse#5: Dynamic port allocation and port file discovery. * * Extracted from server.ts. Handles finding available ports when multiple * DollhouseMCP sessions run simultaneously, and writing port discovery * files so PreToolUse hook scripts know which port to curl. */ export declare function findAvailablePort(startPort: number): Promise; /** * Write the active server port to a discoverable file. * PreToolUse hook scripts read this to know which port to curl. * Each process writes its own PID-keyed file for cleanup. */ export declare function writePortFile(port: number): Promise; /** * Clean up port file on shutdown. */ export declare function cleanupPortFile(): Promise; /** * Register process exit handlers to clean up port files. */ export declare function registerPortCleanup(): void; //# sourceMappingURL=portDiscovery.d.ts.map