import type { types, NodePath } from '@babel/core'; import type { CompilerMetrics } from '@lwc/errors'; import type { DecoratorErrorOptions, ImportSpecifier } from './decorators/types'; import type { LwcBabelPluginPass } from './types'; declare function isClassMethod(classMethod: NodePath, properties?: { kind?: string; name?: string; static?: boolean; }): classMethod is NodePath; declare function isGetterClassMethod(classMethod: NodePath, properties?: { kind?: string; name?: string; static?: boolean; }): classMethod is NodePath; declare function isSetterClassMethod(classMethod: NodePath, properties?: { kind?: string; name?: string; static?: boolean; }): classMethod is NodePath; declare function getEngineImportSpecifiers(path: NodePath): ImportSpecifier[]; declare function handleError(source: NodePath, decoratorErrorOpts: DecoratorErrorOptions, state: LwcBabelPluginPass): void; declare function incrementMetricCounter(metric: CompilerMetrics, state: LwcBabelPluginPass): void; declare function isErrorRecoveryMode(state: LwcBabelPluginPass): boolean; /** * Copies optional metadata properties between ClassMethod and ClassPrivateMethod nodes. * These properties are not accepted by the t.classMethod() / t.classPrivateMethod() builders, * so they must be transferred manually after node creation. Both the forward and reverse * private-method transforms use this to maintain round-trip parity. */ declare function copyMethodMetadata(source: types.ClassMethod | types.ClassPrivateMethod, target: types.ClassMethod | types.ClassPrivateMethod): void; export { isClassMethod, isGetterClassMethod, isSetterClassMethod, getEngineImportSpecifiers, handleError, incrementMetricCounter, isErrorRecoveryMode, copyMethodMetadata, }; //# sourceMappingURL=utils.d.ts.map