import { Identifier, JSXElement } from "@babel/types"; import { NodePath } from "@babel/traverse"; export declare function capitalizeFirstLetter(input: string): string; export declare function wrapTr(path: any): void; /** * if '{' detected then invalid JSXText */ export declare function isValidJSXText(input: string): boolean; export declare function isLangReactComponent(jsxElementPath: JSXElement): boolean; export declare function isBlackListedJSXElement(jsxElementPath: JSXElement): boolean; /** * finds variable binding by recursively iterating through scopes, * moving to parent scope if not found in current scope * @param variableIdentifierReferencePath Path of Identifier for variable to be located */ export declare function findVariableBinding(variableIdentifierReferencePath: NodePath): import("@babel/traverse").Binding | null; /** * given a path representing a Variable identifier, find all assignments of the variable and wrap them * @param path */ export declare function wrapVariableReferences(path: any): void; /** * given a variable binding, find all references and wrap all the variable's assignments * @param binding */ export declare function wrapVariableReferencesGivenBinding(binding: any): void; export declare function isValidStringValue(input: any): boolean; export declare function normalizeSpaces(input: any): any; /** * catches both "hello" and `hello` but not `hello ${name}` * @param node */ export declare function isStringTypeLiteral(node: any): boolean; /** * does node represent a template literal without any expressions i.e. `xyz` * @param node */ export declare function isStringTemplateLiteral(node: any): boolean;