import type { Message } from '../types/core.js';
/**
 * Caps the message history sent to the model to at most `maxMessages` messages.
 * Avoids orphaning tool calls/results by snapping the slice boundary to complete turns.
 *
 * Specifically:
 * - If the boundary lands on or within a sequence of tool results, we walk the start
 *   index backwards to include the initiating `assistant` message and all its associated
 *   tool results.
 */
export declare function capMessagesForModel(messages: Message[], maxMessages: number): Message[];
//# sourceMappingURL=message-capping.d.ts.map