import { Plugin } from "vite"; interface ComponentTaggerOptions { enabled?: boolean; debug?: boolean; /** * The data attribute to use for element identification * @default "data-component-id" */ dataAttribute?: string; } interface VisualEditorOptions { /** * Enable debug logging * @default false */ debug?: boolean; } export interface HerculesPluginOptions { /** * Component tagger options * * Tagging attributes (`data-hercules-id` / `data-hercules-name`) are injected * on the dev server only; `vite build` output never contains them. * * @default { enabled: true } */ componentTagger?: ComponentTaggerOptions & { enabled?: boolean; }; /** * Visual editor options. Serves the endpoints the visual editor calls to * change the source of a tagged element (dev server only). * @default { enabled: true } */ visualEditor?: VisualEditorOptions & { enabled?: boolean; }; /** * Bundle every runtime dependency in the app's `package.json` up front on * the dev server, so Vite does not discover one mid-session and reload the * page. On the Hercules dev machine the dev server also restarts when * `package.json` or the lockfile changes, so a package the agent installs is * bundled before code imports it. `@usehercules/vite-tanstack` turns this * off and bundles the dependencies of both its environments itself. * @default true */ prebundleDependencies?: boolean; } /** * Hercules Vite plugin: tags JSX elements for the visual editor and keeps the * dependency optimizer from re-bundling mid-session. All of it runs on the dev * server only. */ export declare function hercules(options?: HerculesPluginOptions): Plugin[]; export { hercules as default }; //# sourceMappingURL=index.d.mts.map