import { ChatMessage, MessageContent } from "../index.js";
declare function countTokens(content: MessageContent, modelName?: string): number;
export declare function stripImages(content: MessageContent): string;
declare function pruneLinesFromTop(prompt: string, maxTokens: number, modelName: string): string;
declare function pruneLinesFromBottom(prompt: string, maxTokens: number, modelName: string): string;
declare function pruneStringFromBottom(modelName: string, maxTokens: number, prompt: string): string;
declare function pruneStringFromTop(modelName: string, maxTokens: number, prompt: string): string;
declare function pruneRawPromptFromTop(modelName: string, contextLength: number, prompt: string, tokensForCompletion: number): string;
declare function compileChatMessages(modelName: string, msgs: ChatMessage[] | undefined, contextLength: number, maxTokens: number, supportsImages: boolean, prompt?: string | undefined, functions?: any[] | undefined, systemMessage?: string | undefined): ChatMessage[];
export { compileChatMessages, countTokens, pruneLinesFromBottom, pruneLinesFromTop, pruneRawPromptFromTop, pruneStringFromBottom, pruneStringFromTop, };
//# sourceMappingURL=countTokens.d.ts.map