import type { BabelAPI, LwcBabelPluginPass } from './types'; import type { PluginObj } from '@babel/core'; /** * Standalone Babel plugin that reverses the private method transformation by converting * methods with prefix {@link PRIVATE_METHOD_PREFIX} back to ClassPrivateMethod nodes, * and restoring prefixed MemberExpression properties back to PrivateName nodes. * * This must be registered AFTER @babel/plugin-transform-class-properties so that * class properties are fully transformed before private methods are restored. * * Round-trip parity: to match {@link ./private-method-transform.ts}, this transform must copy the same * properties from ClassMethod onto ClassPrivateMethod when present: returnType, typeParameters, loc, * abstract, access, accessibility, optional, override (plus async, generator, computed from the builder). * * @see {@link ./private-method-transform.ts} for original transformation */ export default function reversePrivateMethodTransform({ types: t, }: BabelAPI): PluginObj; //# sourceMappingURL=reverse-private-method-transform.d.ts.map