import { NodePath, Scope } from '@babel/traverse'; import type { ParsingConfig, ParsingOutput } from './stringParsing/types.js'; /** * Clears all caches. Useful for testing or when file system changes. */ export declare function clearParsingCaches(): void; /** * Recursively resolves variable assignments to find all aliases of a translation callback parameter. * Handles cases like: const t = translate; const a = translate; const b = a; const c = b; * * @param scope The scope to search within * @param variableName The variable name to resolve * @param visited Set to track already visited variables to prevent infinite loops * @returns Array of all variable names that reference the original translation callback */ export declare function resolveVariableAliases(scope: Scope, variableName: string, visited?: Set): string[]; /** * Main entry point for parsing translation strings from useGT() and getGT() calls. * * Supports complex patterns including: * 1. Direct calls: const gt = useGT(); gt('hello'); * 2. Translation callback prop drilling: const gt = useGT(); getInfo(gt); where getInfo uses gt() internally * 3. Cross-file function calls: imported functions that receive the translation callback as a parameter * * Example flow: * - const gt = useGT(); * - const { home } = getInfo(gt); // getInfo is imported from './constants' * - This will parse constants.ts to find translation calls within getInfo function */ export declare function parseStrings(importName: string, originalName: string, path: NodePath, config: ParsingConfig, output: ParsingOutput): void;