import type { Context } from '@deepseek-ai/cordis'; import type { Agent } from '@deepseek-ai/dsh-agent'; import type { CommandResult } from '@deepseek-ai/dsh-commands'; import type { CompactionResult } from '@deepseek-ai/dsh-compaction'; import type { JobRegistry } from '@deepseek-ai/dsh-jobs'; import type { SessionId } from '@deepseek-ai/dsh-session'; declare module '@deepseek-ai/dsh-jobs/view' { interface JobKindMap { 'copilot-compaction': 'copilot-compaction'; } } type Jobs = Pick; type Result = Pick | null; /** Own only admission and job lifetime; the selected engine owns all history transactions. */ export declare class BackgroundCompaction { private readonly jobs; private readonly compact; private readonly warn; private readonly latest; private readonly active; private closed; constructor(jobs: Jobs, compact: (agent: A, signal: AbortSignal, visibleHistory: boolean) => Promise, warn: (message: string) => void); execute(agent: A, rawInput: string, signal: AbortSignal): CommandResult; dispose(): Promise; } export declare function installBackgroundCompaction(ctx: Context, compact: (agent: Agent, signal: AbortSignal, visibleHistory: boolean) => Promise): void; export {}; //# sourceMappingURL=background-compaction.d.ts.map