import { Node } from '@babel/core';
import { Plugin } from 'vite';

type Options = {
    predicate?: (node: Node) => boolean;
    base?: string;
};
/**
 * 直接在 JSX 元素上添加 code-path 属性
 *
 * 示例：
 * <div>Hello</div>
 * ->
 * <div code-path="src/App.tsx:1:1">Hello</div>
 */
declare function inspectAttr(options?: Options): Plugin;

export { inspectAttr };
