import type { ChatMessage, SuccessfulRequestSnapshot } from "../types.js"; import { type RequestAccounting } from "./request-accounting.js"; import { buildCompactionReplayMessages } from "./compaction/summary-execution.js"; export { CompactionOverLimitError, executeCompactionSummary, isCompactionOverLimitError } from "./compaction/summary-execution.js"; export { buildCompactionReplayMessages }; export type { CompactionSummaryExecution } from "./compaction/summary-execution.js"; export interface CompactionReplayPlan { readonly messages: ChatMessage[]; readonly accounting: RequestAccounting; readonly continuationAccounting: RequestAccounting; } export declare function planCompactionReplay(input: { readonly baseRequest: SuccessfulRequestSnapshot; readonly history: readonly ChatMessage[]; readonly prompt: string; readonly maxTokens: number; readonly contextLimitTokens?: number | undefined; readonly stream?: boolean | undefined; }): CompactionReplayPlan | undefined;