/** The test socket for this process: `phren-<kind>-test-<pid>`. */
export declare function testSocketName(kind?: string): string;
/** A detached shell that kills the server on `socket` and removes its socket
 * files once `pid` is gone. Answers its own pid. */
export declare function startWatchdog(pid: number, binary: string, socket: string): number | undefined;
/** Registers the teardown of the server on `socket` before the test starts it.
 * `stop` is idempotent and synchronous, so the exit hook can call it too. */
export declare function privateTmuxServer(binary: string, socket: string): {
    stop: () => void;
};
/** Kills the servers and removes the sockets earlier test runs left behind:
 * test sockets whose owning process is gone. */
export declare function sweepTestServers(binary?: string): string[];
