import { n as HistoryMediaEntry, t as HistoryEntry } from "./history.types-Bc8mCALh.js"; //#region src/channels/turn/history-window.d.ts type MaybePromise = T | Promise; /** Windowed channel history facade used by turn adapters to record and render recent context. */ type ChannelHistoryWindow = { record: (params: { historyKey: string; entry?: T | null; limit: number; }) => T[]; recordWithMedia: (params: { historyKey: string; entry?: T | null; limit: number; media?: readonly HistoryMediaEntry[] | null | (() => MaybePromise); mediaLimit?: number; messageId?: string; shouldRecord?: () => boolean; }) => Promise; buildPendingContext: (params: { historyKey: string; limit: number; currentMessage: string; formatEntry: (entry: T) => string; lineBreak?: string; }) => string; buildInboundHistory: (params: { historyKey: string; limit: number; }) => HistoryEntry[] | undefined; clear: (params: { historyKey: string; limit: number; }) => void; }; /** Creates a bounded channel history window over a caller-owned history map. */ declare function createChannelHistoryWindow(params: { historyMap: Map; }): ChannelHistoryWindow; //#endregion export { createChannelHistoryWindow as n, ChannelHistoryWindow as t };