import { Raw } from '@vscode/prompt-tsx';
/**
 * Silently drops the oldest images from history when the total number of images
 * in the conversation exceeds `maxImages`. Images belonging to the current turn
 * (the last user message and anything after it, e.g. recent tool results) are
 * always preserved.
 *
 * If the current turn alone exceeds the limit, throws a localized error rather
 * than sending a request we know will be rejected with an opaque server error.
 *
 * @returns A (possibly filtered) copy of messages. The original array is never mutated.
 */
export declare function filterHistoryImages(messages: Raw.ChatMessage[], maxImages: number): Raw.ChatMessage[];
//# sourceMappingURL=imageLimits.d.ts.map