index.d.ts 733 B

12345678910111213141516171819202122
  1. import * as t from '@babel/types';
  2. import * as BabelCore from '@babel/core';
  3. import { NodePath } from '@babel/traverse';
  4. import type { VueJSXPluginOptions, State } from './interface';
  5. export { VueJSXPluginOptions };
  6. declare const _default: ({ types }: typeof BabelCore) => {
  7. name: string;
  8. inherits: any;
  9. visitor: {
  10. Program: {
  11. enter(path: NodePath<t.Program>, state: State): void;
  12. exit(path: NodePath<t.Program>): void;
  13. };
  14. JSXFragment: {
  15. enter(path: BabelCore.NodePath<t.JSXElement>, state: State): void;
  16. };
  17. JSXElement: {
  18. exit(path: BabelCore.NodePath<t.JSXElement>, state: State): void;
  19. };
  20. };
  21. };
  22. export default _default;