declare const NOT_RUNNING = "Agent Relay desktop isn't running on this machine; open it, or use the Agent Relay MCP"; export type RelayAgentWhere = 'this_computer' | 'cloud' | 'other_desktop'; export interface RelayAgent { name: string; address: string | null; kind: 'agent' | 'human' | 'service'; where: RelayAgentWhere; status: 'active' | 'idle'; last_seen_ms: number | null; description: string; is_self: boolean; } export interface RelayAgentRoster { agents: RelayAgent[]; fetched_at_ms: number; } export interface RelayAgentsUnavailable { available: false; message: typeof NOT_RUNNING; } export interface RelayRegistration { name: string; address: string; already_registered: boolean; } export interface RelayLeaveResult { registered: false; already_unregistered: boolean; } export interface RelayStatus { name: string | null; session_id: string; registered: boolean; } export interface JoinRelayOptions { name?: string; description?: string; } export interface ListRelayAgentsOptions { query?: string; where?: RelayAgentWhere; includeIdle?: boolean; } export interface RelaySocketRuntime { env?: Record; home?: string; platform?: NodeJS.Platform; temporaryDirectory?: string; uid?: number; timeoutMs?: number; } export declare class RelayAgentsError extends Error { readonly code: string; constructor(code: string, message: string); } /** List live Relay participants through the local desktop app, never the cloud. */ export declare function listRelayAgents(options?: ListRelayAgentsOptions, runtime?: RelaySocketRuntime): Promise; /** Put the kernel-identified session hosting this process on Relay through the desktop app. */ export declare function joinRelay(options?: JoinRelayOptions, runtime?: RelaySocketRuntime): Promise; /** Remove the kernel-identified session hosting this process from Relay through the desktop app. */ export declare function leaveRelay(runtime?: RelaySocketRuntime): Promise; /** Report the session hosting this process's local Relay registration state. */ export declare function relayStatus(runtime?: RelaySocketRuntime): Promise; /** Resolve desktop sockets in the public env, pointer-file, platform-default order. */ export declare function relaySocketCandidates(runtime?: RelaySocketRuntime): Promise; export {}; //# sourceMappingURL=relay-agents.d.ts.map