import { type HostDaemonPaths } from "../rpc/host-daemon-paths.ts";
/**
 * `<agentDir>/rpc/tui/t-<16hex>.sock`, or - when the agent directory is too deep for `sun_path` -
 * the same name under `/tmp/senpi-rpc-<sha256(agentDir)[:8]>/tui/`. The fallback root is
 * predictable, so it is used only when it is a real directory owned by this user with no group or
 * other access; anything else fails the registration instead of binding into it. On win32 the path is only the
 * logical address (the listener binds a named pipe hashed from it), so it never moves (senpi#4267).
 */
export declare function resolveTuiSocket(agentDir: string, instanceId: string): Promise<string>;
export interface TuiRegistryEntry {
    readonly paths: HostDaemonPaths;
    readonly socket: string;
}
export declare function registerTuiEndpoint(options: {
    readonly agentDir: string;
    readonly socket: string;
    readonly instanceId: string;
}): Promise<TuiRegistryEntry>;
export declare function unregisterTuiEndpoint(entry: TuiRegistryEntry): Promise<void>;
export declare function unregisterTuiEndpointSync(entry: TuiRegistryEntry): void;
//# sourceMappingURL=session-control-registry.d.ts.map