import type { TurnOutcomeDeliverable } from '@xopcai/gateway-contract'; import type { AssistantReplyPacket } from './reply-composer.js'; /** Plain prose above this length is packaged into a standalone HTML report page so chat stays brief. */ export declare const INLINE_REPORT_LIMIT = 400; /** Structured multi-section or tabular reports above this length are also packaged into HTML. */ export declare const STRUCTURED_REPORT_LIMIT = 260; export interface AssistantReplyResult { /** Newly rendered Engine A HTML report attachment. Absent when a published deliverable already covers the full report. */ attachment?: TurnOutcomeDeliverable & { uri: string; }; /** Human-readable report title (without extension) for bubble copy. */ displayTitle?: string; /** Estimated reading time in minutes when generated by Engine A. */ readingMinutes?: number; /** True when a valid Engine B HTML report published by the worker was reused. */ reusedHtmlReport?: boolean; } export declare function isLongAssistantReport(report: string): boolean; export declare function isReportOrDocumentDeliverable(item: TurnOutcomeDeliverable): boolean; export declare function hasAvailableReportDeliverable(deliverables: readonly TurnOutcomeDeliverable[], now?: number): boolean; /** Validate a worker-published HTML report (Engine B) for self-containment and safety. */ export declare function isValidSelfContainedHtmlReport(item: TurnOutcomeDeliverable): Promise; export declare function prepareAssistantReplyResult(packet: AssistantReplyPacket): Promise; export declare function releaseAssistantReplyResult(result: AssistantReplyResult | undefined): Promise;