1 | import { NodePath, types } from '@babel/core';
|
2 |
|
3 | type tag = 'title' | 'desc';
|
4 | interface Options {
|
5 | tag: tag | null;
|
6 | }
|
7 | interface State {
|
8 | opts: Options;
|
9 | }
|
10 | declare const plugin: () => {
|
11 | visitor: {
|
12 | JSXElement(path: NodePath<types.JSXElement>, state: State): void;
|
13 | };
|
14 | };
|
15 |
|
16 | export { Options, plugin as default };
|