import { MidGenerationCompressor } from "../../compression/MidGenerationCompressor.js";
import { AgentRunContext } from "../agent-types.js";

//#region src/domains/run/agents/generation/ai-sdk-callbacks.d.ts
declare function handlePrepareStepCompression(stepMessages: any[], steps: Array<{
  usage: {
    inputTokens?: number;
    outputTokens?: number;
  };
}>, compressor: MidGenerationCompressor | null, originalMessageCount: number): Promise<{
  messages?: any[];
}>;
declare function handleStopWhenConditions(ctx: AgentRunContext, steps: any[]): Promise<boolean>;
//#endregion
export { handlePrepareStepCompression, handleStopWhenConditions };