import { ASTPath, CallExpression, Collection, Expression, JSCodeshift, JSXElement, MemberExpression, ObjectExpression, SpreadElement } from 'jscodeshift'; import { Operation, RegisterAPI } from '../types/transformer'; /** * Checks for usage of DOM Manipulation methods * @param root Root Collection of the Source Code AST * @param j JSCodeshift core * @returns List of warning messages */ export declare const getDOMWarnings: (root: Collection, j: JSCodeshift) => string[]; /** * Returns the CallExpression nodes for add/remove/replace/addWrapper APIs in Flex Dynamic Components * @param flexVariable Flex instance variable * @param root Root Collection of the Source Code AST * @param j JSCodeshift core * @returns Collection of CallExpression nodes */ export declare const getCallExpressions: (flexVariable: string, root: Collection, j: JSCodeshift) => Collection; /** * Returns the CallExpression nodes for add/remove/replace/addWrapper APIs in minified plugin code * @param root Root Collection of the Source Code AST * @param j JSCodeshift core * @returns Collection of CallExpression nodes */ export declare const getMinifiedCallExpressions: (root: Collection, j: JSCodeshift) => ASTPath[]; /** * Returns the Dynamic Component name * @param node MemberExpression node which is present in CallExpression callee * @param retrieveFlexVariable Should return flex instance variable * @returns Dynamic Component name */ export declare const getComponent: (node: MemberExpression, retrieveFlexVariable?: boolean) => string[] | string; /** * Returns the key prop value of the custom component used in the Dynamic Component API * @param jsxNode JSXElement Node present in the arguments of the CallExpression node * @returns Key of the custom component */ export declare const geComponentKey: (jsxNode: JSXElement) => string; /** * Returns the key prop value of the custom component used in the Dynamic Component API in a minified plugin * @param args Arguments of the CallExpression node * @returns Key prop value of the custom component */ export declare const getMinifiedComponentKey: (args: (SpreadElement | Expression)[]) => string; export declare const getFlexVariable: (root: Collection, j: JSCodeshift) => string; /** * Builds uiConfig from ObjectExpresion node * @param objectExpression ObjectExpression from a migrated plugin AST * @param registerMethod Register method used in the migrated plugin * @returns config properties in the ObjectExpression and operation performed for the given CallExpression */ export declare const getUIConfig: (objectExpression: ObjectExpression, registerMethod: RegisterAPI) => { config: Record; operation: Operation; };