export interface RenameRule { /** Source identifier (must match /^[A-Za-z_$][A-Za-z0-9_$]*$/). */ from: string; /** Target identifier. */ to: string; } /** * Rename identifiers in TS source, respecting word boundaries. * * Skips matches that: * - are part of a longer word (e.g. renaming `foo` does NOT touch `foobar`) * - are object property accesses on the LEFT side of a dot (e.g. * `obj.foo` is left alone — that's a property of an object, not the * identifier we're renaming) * * Does NOT skip matches inside string literals — string occurrences are * intentionally renamed too, since the harness's CLI references its own * name in lots of error messages and prompts. */ export declare function renameIdentifiers(source: string, rules: RenameRule[]): string; /** * Rename across a file map, returning a NEW map. Convenience wrapper for * applying rules across many files. */ export declare function renameFileMap(files: Record, rules: RenameRule[]): Record; //# sourceMappingURL=rename.d.ts.map