import type { SendMessageInput, GetMessagesInput, GetMessagesSummaryInput, GetOutstandingInput, ResolveMessagesInput, BroadcastInput, PostToCapabilityInput } from "../types.js"; export declare function handleSendMessage(input: SendMessageInput): { content: { type: "text"; text: string; }[]; isError: boolean; } | { content: { type: "text"; text: string; }[]; isError?: undefined; }; export declare function handleGetMessages(input: GetMessagesInput): { content: { type: "text"; text: string; }[]; isError: boolean; } | { content: { type: "text"; text: string; }[]; isError?: undefined; }; /** * v2.12.0 — pending-vs-history. Explicitly resolve (ack) specific messages so * they leave the cross-session pending queue. Recipient-scoped at two layers: * the dispatcher binds the caller's token to `agent_name` (so a foreign token * can't even call this for another agent), and resolveMessages additionally * scopes its UPDATE by `to_agent = agent_name`. Idempotent: re-resolving or * passing unknown/foreign ids is a no-op (reported via the counts). */ export declare function handleResolveMessages(input: ResolveMessagesInput): { content: { type: "text"; text: string; }[]; }; export declare function handleGetMessagesSummary(input: GetMessagesSummaryInput): { content: { type: "text"; text: string; }[]; isError: boolean; } | { content: { type: "text"; text: string; }[]; isError?: undefined; }; /** * ADR-0011 — get_outstanding: the SENDER's recap + the PULL source of truth for * overdue drift. Returns the ask/obligation messages the caller SENT with their * lifecycle state (unread / read-unresolved / resolved) and a REPORT-ONLY * overdue flag. Pure read — it NEVER mutates a message (report-first, never * auto-resolve, ADR-0005). A fresh orchestrator session reconstructs overdue * state from this call alone; the optional read/resolved webhooks are * push-on-top and never the source of truth. */ export declare function handleGetOutstanding(input: GetOutstandingInput): { content: { type: "text"; text: string; }[]; }; export declare function handleBroadcast(input: BroadcastInput): { content: { type: "text"; text: string; }[]; }; /** * v2.10 — capability-routed messaging (principle #1). Fans an FYI/coordination * message out to the CURRENT owner(s) of a capability. FYI/coordination lane * ONLY — action-required completions stay point-to-point completion reports via * send_message. Fires ONE `message.capability_routed` webhook for the whole * fan-out (not per-recipient) carrying the capability + recipients, so * integrations (Tether) can render the FYI lane distinctly. */ export declare function handlePostToCapability(input: PostToCapabilityInput): { content: { type: "text"; text: string; }[]; isError?: undefined; } | { content: { type: "text"; text: string; }[]; isError: boolean; }; //# sourceMappingURL=messaging.d.ts.map