import { type HttpContext } from "./http.js"; export interface FederationPair { pair_id: string; peer_url: string; peer_did?: string; status?: string; [k: string]: unknown; } export interface PairOptions { peerUrl: string; namespace?: string; labels?: string[]; } export interface PairResult { pair_id?: string; responder_manifest?: Record; issued_token?: string; error?: string; } export interface SyncResult { pulled: number; cursor?: string | number; error?: string; } export interface RelayPollResult { pending: number; data?: Array>; error?: string; } export declare class ClientFederation { private readonly ctx; constructor(ctx: HttpContext); peers(): Promise; pair(opts: PairOptions | string): Promise; sync(threadId: string, peerDid?: string): Promise; relayPoll(): Promise; discoverPeers(predicate?: (peer: FederationPair) => boolean): Promise; mergeResults(results: T[]): T[]; }