/** Local Copilot pressure signalling over the stock compaction recovery path. */ import type { Context } from '@deepseek-ai/cordis'; import type { GenerateOptions } from '@deepseek-ai/dsh-llm'; /** Conservative input threshold already resolved from authenticated model facts and current policy. */ export interface CopilotCompactionPressureBudget { readonly inputBudgetTokens: number; } /** Snapshot access belongs to the account route; pressure signalling never starts discovery. */ export interface CopilotCompactionPressureCallbacks { /** Return the exact owned request's current budget, or undefined when disabled or unavailable. */ resolve(request: GenerateOptions): CopilotCompactionPressureBudget | undefined; } /** * Request a stock overflow reduction before sending an estimated over-budget * conversation. The loop has already logged and frozen this exact request; * only its owner can rebuild it after a durable compaction. Never rewrite the * request, invoke compaction concurrently, or intercept auxiliary summaries. * @param ctx - Host context owning the reversible stream listener. * @param callbacks - synchronous authenticated budget lookup, without discovery. * @returns disposer for the listener, also owned by its Cordis context. */ export declare function installCopilotCompactionPressure(ctx: Context, callbacks: CopilotCompactionPressureCallbacks): () => void; //# sourceMappingURL=compaction-pressure.d.ts.map