import type { AgentMessage } from "@earendil-works/pi-agent-core";
import type { SessionEntry } from "./session-manager.ts";
/**
 * Provider-side token-budget estimators use the last assistant usage in the
 * request context as an anchor. After logical context compaction, retained
 * pre-compaction assistant messages still carry usage from the old, larger
 * context. Scrub only the provider-bound clone so the durable transcript keeps
 * historical billing data while the next request estimates the compacted prompt.
 */
export declare function scrubPreCompactionAssistantUsage(messages: AgentMessage[], entries: readonly SessionEntry[]): AgentMessage[];
//# sourceMappingURL=provider-context-usage.d.ts.map