/** * Conversation text extraction. Pulls every available conversation line from * `State` (the `recentMessages` / `text` values plus the recent-messages memory * array) without splitting, trimming, or rewriting it. A complete rendered * history projection already embedded in composed text is included once; * distinct memory occurrences remain in source order. `recentConversationTexts` * additionally reads the room's `messages` table and appends complete state * context, omitting only an identical identified memory's second raw projection. Storage failures propagate so missing history is not mistaken for a * legitimately short conversation. */ import type { Memory } from "../types/memory.js"; import type { IAgentRuntime } from "../types/runtime.js"; import type { State } from "../types/state.js"; export declare function recentConversationTextsFromState(state: State | undefined): string[]; export declare function recentConversationTexts(args: { runtime: IAgentRuntime; message?: Memory; state: State | undefined; }): Promise;