import type { Batch, JsonValue, Leaf, Path, TextTranslator, TranslateOptions, TranslateUsage } from './types.js'; export declare function extractLeaves(data: JsonValue): Leaf[]; export declare function groupIntoBatches(leaves: Leaf[], maxBytes: number): Batch[]; export declare function buildBatchPrompt(from: string, to: string, leaves: Leaf[]): string; export declare function buildSinglePrompt(from: string, to: string, value: string): string; export declare function decodeResponse(text: string): Map; export declare function setPath(root: JsonValue, path: Path, value: JsonValue): void; export declare function reconstruct(allLeaves: Leaf[], translations: Map): JsonValue; export type RunBatchesResult = { translations: Map; usage: TranslateUsage; calls: number; }; export declare function runBatches(batches: Batch[], translator: TextTranslator, from: string, to: string, options: TranslateOptions): Promise; //# sourceMappingURL=translator.d.ts.map