import { NodePath } from '@babel/traverse'; import * as t from '@babel/types'; import { PrimingDiagnostic } from '../types'; import { ImportMetadata } from '@komaci/common-shared'; /** * Invariant function for checking if call expressions references an unsupported import. * @param path the babel path object for the current call expression. * @param importReferences a set of supported import references. * @returns undefined if a call expression does NOT reference an unspoorted import, locatoin object if a call expression references an unsupported import. */ export declare function checkCallExpressionForNonSupportedNamespaceRefs(path: NodePath, importReferences: Map): PrimingDiagnostic | undefined; /** * Validates whether a CallExpression Node on the AST adheres to a portability invariant (whether it doesn't * contain 'eval()' call). * @param path NodePath containing a CallExpression to analyze for the invariant * @returns PrimingDiagnostic of the CallExpression if an invariant is detected, or undefined if none was found */ export declare function checkNoUsageOfEval(path: NodePath): PrimingDiagnostic | undefined; /** * Function that checks if there are any references to other functions that are defined on the class. * @param path the current call expression node. * @param classFunctions a collection of function names that are defined on the class. * @returns {PrimingDiagnostic} a PrimingDiagnostic if there is a reference to another class function, undefined if no reference. */ export declare function checkForNoReferenceToClassFunctions(path: NodePath, classFunctions: string[]): PrimingDiagnostic | undefined; /** * Function that checks if there are any references to other functions that are defined on the module. * @param path the current call expression node. * @param classFunctions a collection of function names that are defined on the module. * @returns PrimingDiagnostic object if there is a reference to another module function, undefined if no reference. */ export declare function checkForNoReferenceToModuleFunctions(path: NodePath, moduleFunctions: string[]): PrimingDiagnostic | undefined; //# sourceMappingURL=callExpressionInvariantFunctions.d.ts.map