import type { AgentMessage } from "@earendil-works/pi-agent-core"; import type { AgentSessionInternalSurface as AgentSession } from "./agent-session-methods.ts"; import { type VerbatimCompactionResult } from "./compaction/index.ts"; /** Compact tool-expanded context without scheduling a second Agent continuation. */ export declare function _preflightPostToolContext(this: AgentSession, messages: AgentMessage[], signal?: AbortSignal): Promise; /** Gate the transformed message context immediately before provider conversion. */ export declare function _finishPostToolCompactionPreflight(this: AgentSession, messages: AgentMessage[]): AgentMessage[]; export interface PendingPostToolCompactionGuard { hardInputLimit: number; result: VerbatimCompactionResult; } export declare const agentSessionPostToolCompactionMethods: { _preflightPostToolContext: typeof _preflightPostToolContext; _finishPostToolCompactionPreflight: typeof _finishPostToolCompactionPreflight; }; //# sourceMappingURL=agent-session-post-tool-compaction.d.ts.map