import type { JsonObject } from '../../conversion/hub/types/json.js';
type Options = {
    maxNonSystemMessages: number;
};
/**
 * Trim OpenAI-style messages for internal servertool followups.
 *
 * Goal: avoid sending a massive chat history on auto-followup requests (e.g. stop_message_flow),
 * which can push Gemini/Antigravity into empty/malformed responses under long-context loads.
 *
 * Strategy:
 * - Always keep system/developer messages (regardless of position).
 * - Keep only the tail of non-system messages (maxNonSystemMessages), preserving original order.
 */
export declare function trimOpenAiMessagesForFollowup(rawMessages: unknown, options: Options): JsonObject[];
export {};
