import type { Agent } from '@deepseek-ai/dsh-agent'; import type { Context } from '@deepseek-ai/cordis'; import BasicCompactionEngine from '@deepseek-ai/dsh-compaction-basic'; import type { BasicCompactionConfig } from '@deepseek-ai/dsh-compaction-basic'; import z from '@deepseek-ai/schemastery'; import type { ContentBlock, Message, TokenUsage, ToolSchema } from '@deepseek-ai/dsh-llm'; import type { CommandId } from '@deepseek-ai/dsh-commands/brand'; import type { CompactionResult } from '@deepseek-ai/dsh-compaction'; interface RecoveryMessage { readonly role: string; readonly content: readonly { readonly type: string; readonly id?: string; }[]; readonly toolCallId?: string; } interface RecoveryInput { readonly messages: readonly M[]; readonly tools?: readonly ToolSchema[]; } interface RecoveryResult { readonly summary: ContentBlock[]; readonly provider: string; readonly model: string; readonly maxTokens?: number; readonly usage?: TokenUsage; } interface RecoveryOptions { readonly input: RecoveryInput; readonly inputLimit: number; readonly maxCalls?: number; readonly signal: AbortSignal; readonly estimate: (input: RecoveryInput) => number; readonly summarize: (input: RecoveryInput) => Promise; readonly makeCheckpoint: (summary: readonly ContentBlock[]) => M; readonly assertCurrent?: () => void; } /** * Bounded map/fold. The native engine still owns the only * durable transaction, source-stability check, shrink check and cancellation. */ export declare function summarizeOversizedManualInput(options: RecoveryOptions): Promise; /** * Deployment-selected alternative to stock BasicCompactionEngine. Do not * mount both: Cordis compaction is a singleton, not an overridable service. */ export declare class CopilotManualRecoveryCompactionEngine extends BasicCompactionEngine { static Config: z; private readonly manual; private readonly visibleHistory; private readonly automaticRecovery; constructor(ctx: Context, config?: BasicCompactionConfig & { automaticRecovery?: boolean; }); compactNow(agent: Agent, signal: AbortSignal, sourceCommandId?: CommandId): Promise; protected summarize(input: RecoveryInput, agent: Agent, signal?: AbortSignal): Promise; private summarizeManaged; } export default CopilotManualRecoveryCompactionEngine; //# sourceMappingURL=manual-compaction-recovery.d.ts.map