import { ModuleInfo } from "rollup"; /** * Emits a stable, in-package, per-component meta contract under * `/meta/`: * * - `meta/index.json` — small discovery artefact: * `[ { name, label, category?, description? }, ... ]` * - `meta/.meta.json` — full meta (inputs / events / variables / defaults) * per component. Same wire format as the runtime * JS meta bundle, just split per file. * * Used by `buildPackage` only — this is the contract published library * tooling (e.g. the `build-dashboard` Claude Code skill) reads from * `node_modules//dist/meta/`. * * The contract is additive-only across releases: new fields may be added, * existing fields are not renamed or removed without a coordinated SDK + * skill release. */ export type PerComponentMetaPluginOptions = { /** Detects local `.emb.{ts,js}` source modules. */ componentFileRegex: RegExp; /** * Pre-built external components re-bundled into this library's `dist/` * (e.g. when a library re-exports components from another library). * `[componentName, absolutePathToBuiltJs][]`. */ externalComponents: [string, string][]; /** Directory where Vite has placed `dist/` (the library build output). */ outputDir: string; }; declare const _default: ({ componentFileRegex, externalComponents, outputDir, }: PerComponentMetaPluginOptions) => { name: string; moduleParsed: (moduleInfo: ModuleInfo) => Promise; buildEnd: () => Promise; closeBundle: () => Promise; }; export default _default;