import type { AgentCredentials, ActionDecision, AttachmentUploadInput, InboxResponse, MessageSnapshot, SendMessagePayload, HeartbeatPayload, ProposeActionPayload, ActionResultPayload } from "./types.js"; export type FloorResult = { granted: boolean; holder_agent_id: string; expires_at: string; conversation_tail: MessageSnapshot[]; }; export declare class EkhoAgentClient { private readonly credentials; constructor(credentials: AgentCredentials); private signedHeaders; private request; get agentId(): string; get pollIntervalSeconds(): number; get heartbeatIntervalSeconds(): number; sendMessage(payload: SendMessagePayload): Promise<{ message_id: string; status: string; queued_at: string; }>; /** * Open a named topic room scoped to a set of fleet agents. Use this when a * collaboration has become a real topic worth its own discoverable, scoped * thread (instead of repeated 1:1 direct messages). This agent becomes the * creator and is auto-added as a member; `memberAgentIds` names the OTHER * agents to include (real, non-revoked agents in the same fleet). To post into * the room afterward, send with `recipient: { kind: "group", id: }`. */ createRoom(payload: { name: string; member_agent_ids?: string[]; }): Promise<{ id: string; name: string; created_at: string; members: string[]; }>; getInbox(limit?: number): Promise; /** Register (or rotate) this agent's Ed25519 identity public key for * agent-to-agent trust. Idempotent on the relay side. */ registerIdentityKey(publicKey: string): Promise<{ key_id: string; }>; ackMessages(acks: Array<{ message_id: string; status: "received"; received_at: string; }>): Promise<{ updated: number; }>; /** Acquire a conversation's floor so this agent — and not its peers — takes the * next turn. Returns granted + the current holder + a fresh catch-up tail. */ acquireFloor(conversationId: string, ttlSeconds?: number): Promise; /** Release a conversation's floor once this agent's turn is done. */ releaseFloor(conversationId: string): Promise<{ released: boolean; }>; /** Raise an operator-visible notice that a conversation has stalled (e.g. the * peer-turn budget is exhausted with real work withheld). Recorded as a * `conversation.stalled` event; idempotent per (fleet, agent, conversation) * until the next operator engagement, so it's safe to call best-effort. */ raiseNotice(payload: { conversation_id: string; reason?: string; pending_count?: number; budget?: number; }): Promise<{ ok: boolean; recorded: boolean; }>; heartbeat(payload: HeartbeatPayload): Promise<{ ok: boolean; next_heartbeat_due_seconds: number; }>; proposeAction(payload: ProposeActionPayload): Promise; getApproval(approvalId: string): Promise<{ id: string; status: string; action_type: string; risk_level: string; summary: string; requested_at: string; resolved_at: string | null; }>; actionResult(payload: ActionResultPayload): Promise<{ ok: boolean; }>; uploadAttachment(input: AttachmentUploadInput): Promise<{ id: string; filename: string; mime: string; size_bytes: number; created_at: string; }>; getDeliveredMessage(id: string): Promise<{ message: Record; }>; downloadDeliveredAttachment(messageId: string, attachmentId: string): Promise<{ bytes: Buffer; filename: string; mime: string; }>; downloadAttachment(id: string): Promise<{ bytes: Buffer; filename: string; mime: string; }>; private downloadAttachmentAt; } //# sourceMappingURL=client.d.ts.map