/** * FederationClient — discovers peers via sigil and queries their cortex instances. * Best-effort: network failures are logged, not thrown. */ export interface FederationPeer { agent_id: string; name: string; cortex_url: string; namespace: string | null; capabilities: string[]; } export interface FederationSearchResult { source_agent: string; source_namespace: string | null; id: string; name: string; definition: string; category: string; score: number; confidence: number; } export interface AgentRegistrationPayload { agent_id: string; name: string; cortex_url?: string; namespace?: string; capabilities?: string[]; version?: string; } export declare class FederationClient { private readonly sigilUrl; private readonly sigilToken?; constructor(sigilUrl: string, sigilToken?: string | undefined); /** Discover online peers from sigil registry. */ discoverPeers(): Promise; /** Query a peer's cortex REST API for memories. */ queryPeer(peer: FederationPeer, query: string, limit?: number): Promise; /** Register this agent with sigil. */ registerSelf(reg: AgentRegistrationPayload): Promise; /** Send heartbeat to sigil. */ heartbeat(agentId: string): Promise; /** Deregister from sigil. */ deregisterSelf(agentId: string): Promise; /** Build auth headers. */ private authHeaders; } //# sourceMappingURL=client.d.ts.map