import { type ScanWarning } from './ast/scanner.js'; import { type Replacement } from './ast/transformer.js'; import { type Dict } from './dictionary.js'; import { type Translator } from './llm/translator.js'; import type { Interpolation } from './dictionary.js'; import type { Framework } from './framework.js'; export interface LocalizeCodeOptions { translator: Translator; sourceLocale?: string; targetLocales?: string[]; attributes?: string[]; importSource?: string; interpolation?: Interpolation; /** For file types several frameworks share: Django's .html templates, Android's Kotlin, Solid and Qwik's JSX. */ framework?: Framework; } export interface LocalizeCodeResult { code: string; changed: boolean; /** Locale → nested dictionary containing the keys from this file. */ dictionaries: Record; replacements: Replacement[]; warnings: ScanWarning[]; } /** Localizes a single source file (JSX/TSX, Vue, Svelte or HTML) without touching the filesystem. */ export declare function localizeCode(code: string, filePath: string, opts: LocalizeCodeOptions): Promise;