import type { Server } from "node:net"; /** * Clears a stale Unix socket file so the daemon can bind, refusing paths the * daemon does not own. Windows named pipes are not filesystem entries, so the * caller skips this entirely for pipe endpoints. */ export declare function clearStaleUnixSocketPath(socketPath: string): void; /** Binds the server and tightens Unix socket permissions to the owner. */ export declare function listenOnDaemonEndpoint(server: Server, socketPath: string, pipeEndpoint: boolean): Promise; //# sourceMappingURL=daemon-listen.d.ts.map