import { type TaskResultDelivery } from '@xopcai/gateway-contract'; export interface AssistantReplyPacket { delivery: TaskResultDelivery; report: string; objective: string; /** Exact structured items are rendered by the host, not rewritten by the model. */ preservedText?: string; /** Rendered as a complete report by the host alongside this reply. */ fullReportAttached?: boolean; taskVersion: number; verificationStatus?: 'passed' | 'failed' | 'unverified'; } /** Enqueue inside the caller's result transaction; model calls never run there. */ export declare function enqueueAssistantReply(packet: Omit): void; export declare function parseAssistantReplyDraft(raw: string, packet: AssistantReplyPacket): string; export declare function buildAssistantReplyPrompt(packet: AssistantReplyPacket, includeRecentConversation?: boolean): string; /** * Delivers finalized background Task results into the originating Personal conversation. * Defaults to zero-LLM deterministic delivery (instant, no rewrite latency or drift); * accepts an optional custom composer callback for tests or specialized hooks. */ export declare class AssistantReplyComposer { private readonly compose?; private readonly timeoutMs; constructor(compose?: ((packet: AssistantReplyPacket, signal: AbortSignal) => Promise) | undefined, timeoutMs?: number); drain(notify: (conversationId: string, deliveryId: string) => void | Promise, isAvailable?: (conversationId: string) => boolean): Promise; }