import type { Plugin } from "rollup"; import type { FilterPattern } from "@rollup/pluginutils"; export interface JsxSourceOptions { /** @default ["**\/*.jsx", "**\/*.tsx"] */ include?: FilterPattern; exclude?: FilterPattern; /** @default process.cwd() */ rootDir?: string; } /** * Rollup plugin that injects `data-source-loc="file:line:col"` onto every JSX * opening element at build time. * * Place this plugin **before** `swc()` in your plugin list so it sees raw * TypeScript+JSX before compilation: * * ```ts * plugins: [jsxSource({ rootDir: 'src' }), swc()] * ``` */ export declare function jsxSource(options?: JsxSourceOptions): Plugin;