import type { TSESTree } from '@typescript-eslint/utils'; import { AST_NODE_TYPES } from '@typescript-eslint/utils'; type IsHelper = (node: TSESTree.Node | null | undefined) => node is TSESTree.Node & { type: NodeType; }; export declare const isIdentifier: IsHelper; export declare const isLiteral: IsHelper; export declare const isMemberExpression: IsHelper; export declare const isObjectExpression: IsHelper; export declare const isProperty: IsHelper; export declare const isTemplateLiteral: IsHelper; export declare function isStringLiteral(node: TSESTree.Node | null | undefined): node is TSESTree.StringLiteral; type MakeStylesName = 'makeStyles' | 'makeStaticStyles' | 'makeResetStyles'; /** * Checks if the given node is a `makeStyles` call expression. * @param node Call expression node in AST to check. * @param functionNames Function names to check, such as `makeStyles`, `makeStaticStyles`, `makeResetStyles`. * Must pass at least one name. */ export declare function isMakeStylesCallExpression(node: TSESTree.CallExpression, ...functionNames: [MakeStylesName, ...MakeStylesName[]]): boolean; export declare function getMakeStylesCallExpression(node: TSESTree.CallExpression, ...functionNames: [MakeStylesName, ...MakeStylesName[]]): string | null; /** * @param node - import node from AST * @returns true if makeStyles is imported, or if the entire library is imported. Otherwise returns false */ export declare function isMakeStylesImport(node: TSESTree.ImportDeclaration): boolean; /** * Check if the node represents is a shorthand and return the name. */ export declare function getShorthandName(node: TSESTree.LeftHandSideExpression | TSESTree.Expression): string | undefined; export {};