import { Capability, ComposedPreset } from "@theholocron/cli"; //#region capabilities/react.d.ts interface ReactOptions { /** Extra `with:` inputs merged into the `test` workflow entry (e.g. run-chromatic). */ test?: Record; } /** * Adds React/Storybook UI testing and browser runtime config. * Contributes: secrets provider, browser runtime property, Storybook + interaction * test jobs, audit with Knip + Lighthouse, and the UI `extraRequiredChecks`. * Requires: node, typecheck * * Pass `test` overrides to merge repo-specific options into the single test * workflow entry so the sync tool sees one complete entry rather than two * conflicting ones: * * @example * compose(node(), typecheck(), react({ test: { "run-chromatic": { projects: [...] } } })) */ declare function react$1({ test: testOverrides }?: ReactOptions): Capability; //#endregion //#region configs/react.d.ts /** * Preset for single-package React/Vite application repos. Includes Storybook, * interaction tests, Knip + Lighthouse audit, and the UI extraRequiredChecks. * * Pass `test` overrides to merge repo-specific options (e.g. run-chromatic) * into the single test workflow entry so the sync tool sees one complete entry: * * @example * const preset = react({ * test: { "run-chromatic": { projects: [{ tokenName: "default", workingDir: "." }] } }, * }); * export default defineConfig({ * ...preset, * repo: { ...preset.repo, name: "theholocron/my-app" }, * tasks: [...preset.tasks, "sync", { name: "deploy", with: { docs: true, storybook: [{ name: "" }] } }], * }); */ declare function react(options?: ReactOptions): ComposedPreset; //#endregion export { ReactOptions as n, react$1 as r, react as t };