import { TextMatch, TextReplacement } from '../types'; export interface TemplateTransformationResult { transformedTemplate: string; replacements: TextReplacement[]; hasChanges: boolean; } export interface TemplateTransformationOptions { preserveFormatting: boolean; useAlias: boolean; } /** * Transforms Vue templates by replacing hardcoded Persian/Arabic text with $t() calls */ export declare class TemplateTransformer { private options; constructor(options?: Partial); /** * Transform Vue template by replacing matched text with i18n function calls */ transformTemplate(template: string, matches: TextMatch[], keyMap: Map): Promise; /** * Replace text at a specific position in the template */ private replaceTextAtPosition; /** * Check if text is within an attribute */ private isInAttribute; /** * Check if text is already within an interpolation {{ }} */ private isInInterpolation; /** * Replace text in attribute with v-bind syntax */ private replaceInAttribute; /** * Escape special regex characters */ private escapeRegex; /** * Extract template section from Vue SFC */ extractTemplateFromVue(vueCode: string): string; /** * Replace template section in Vue SFC */ replaceTemplateInVue(vueCode: string, newTemplate: string): string; /** * Handle Vue directives that contain text */ private transformDirectives; /** * Handle placeholder attributes */ private transformPlaceholders; } //# sourceMappingURL=template-transformer.d.ts.map