/** * Register (or replace, by key) a document the caller may ask to be sent. Throws on a malformed entry: a flow that * registers something unsendable is a flow bug and must fail where it is written, not when a caller asks for it. * → true, so it can stand in a SET expression. */ export function registerSendable(cargo: any, entry: any): boolean; /** * Everything the caller may ask to be sent now: the registered documents, the whole conversation (once the assistant has * replied), then the last REPLY_COUNT non-empty assistant turns of cargo.chatTurns, newest last. Each item is * {key, label, label_es?, kind, media?, content | sender+args}; the conversation is {key: CONVERSATION_KEY, kind: * 'conversation', media: ['email']} with no content (conversationCopy makes it). A reply's key is "reply-" (its turn * number) and its label "Reply : ". */ export function sendables(cargo: any): any[]; /** * The conversation as the caller receives a copy of it: "You: …" / "Assistant: …" ("Usted" / "Asistente" in Spanish), * one paragraph per non-empty turn, in order. The turns are the host's masked text (cargo.chatTurns). → '' for none. */ export function conversationCopy(turns: any, language?: string): string; /** * The conversation as "role: text" lines, one per turn, in order: the same text the host's flat chat history has * always carried (ChatContextManager.messagesWithRole), so a note built from it reads as before. */ export function chatTranscript(turns: any): string; /** * A flow's declared sendable: `sendable: {key, label, label_es?, media?}` on its definition means the caller may ask for it at * any time (a statement nobody has produced yet), and that flow is its sender. → the problem with it, or '' when valid. */ export function sendableDeclarationError(sendable: any): string; /** * Bring cargo.sendables in line with the flows' declarations (the engine calls it each turn): declared entries are * replaced by the current ones ({kind:'document', sender:, args:{}, declared:true}); an entry a flow * registered at run time (registerSendable) keeps its key. An invalid declaration is skipped (validation reports it). */ export function syncDeclaredSendables(cargo: any, flows: any): void; /** The whole conversation's key in sendables(cargo); like "reply-", no flow may register or declare it. */ export const CONVERSATION_KEY: "conversation"; //# sourceMappingURL=sendables.d.ts.map