export interface BrokerPeer { id: string; pid: number; cwd: string; git_root: string | null; /** Controlling tty without /dev/ (e.g. "ttys004"); null when detached. */ tty?: string | null; summary: string; registered_at: string; last_seen: string; } /** Live peers on this machine. Empty when the broker is down; never throws. */ export declare function fetchPeers(): Promise; export interface BrokerMessage { id: number; from_id: string; to_id: string; text: string; sent_at: string; } export declare function brokerRegister(req: { pid: number; cwd: string; git_root: string | null; tty: string | null; summary: string; }): Promise<{ id: string; }>; export declare function brokerHeartbeat(id: string): Promise; export declare function brokerUnregister(id: string): Promise; /** Undelivered messages for a peer. The broker marks them delivered as it returns them. */ export declare function brokerPoll(id: string): Promise; export declare function brokerSend(fromId: string, toId: string, text: string): Promise<{ ok: boolean; error?: string; }>; export declare function getHumanPeerId(): string | null; export declare function setHumanPeerId(id: string | null): void; //# sourceMappingURL=peerBroker.d.ts.map