@wix/zero-config-implementation 1.33.0 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/index.d.ts +2742 -45
  2. package/dist/index.js +289 -280
  3. package/dist/jsx-runtime-interceptor.d.ts +58 -42
  4. package/dist/jsx-runtime-loader.d.ts +27 -23
  5. package/package.json +2 -2
  6. package/src/index.ts +4 -0
  7. package/vite.config.ts +12 -0
  8. package/dist/component-renderer.d.ts +0 -31
  9. package/dist/converters/data-item-builder.d.ts +0 -18
  10. package/dist/converters/index.d.ts +0 -1
  11. package/dist/converters/to-editor-component.d.ts +0 -3
  12. package/dist/converters/utils.d.ts +0 -20
  13. package/dist/errors.d.ts +0 -230
  14. package/dist/extraction-types.d.ts +0 -7
  15. package/dist/information-extractors/css/index.d.ts +0 -3
  16. package/dist/information-extractors/css/parse.d.ts +0 -7
  17. package/dist/information-extractors/css/sass-adapter.d.ts +0 -2
  18. package/dist/information-extractors/css/selector-matcher.d.ts +0 -6
  19. package/dist/information-extractors/css/types.d.ts +0 -61
  20. package/dist/information-extractors/react/extractors/core/index.d.ts +0 -6
  21. package/dist/information-extractors/react/extractors/core/runner.d.ts +0 -23
  22. package/dist/information-extractors/react/extractors/core/store.d.ts +0 -17
  23. package/dist/information-extractors/react/extractors/core/tree-builder.d.ts +0 -15
  24. package/dist/information-extractors/react/extractors/core/types.d.ts +0 -40
  25. package/dist/information-extractors/react/extractors/css-properties.d.ts +0 -20
  26. package/dist/information-extractors/react/extractors/index.d.ts +0 -11
  27. package/dist/information-extractors/react/extractors/prop-tracker.d.ts +0 -21
  28. package/dist/information-extractors/react/index.d.ts +0 -8
  29. package/dist/information-extractors/react/types.d.ts +0 -38
  30. package/dist/information-extractors/react/utils/mock-generator.d.ts +0 -21
  31. package/dist/information-extractors/ts/components.d.ts +0 -14
  32. package/dist/information-extractors/ts/css-imports.d.ts +0 -2
  33. package/dist/information-extractors/ts/index.d.ts +0 -3
  34. package/dist/information-extractors/ts/types.d.ts +0 -54
  35. package/dist/information-extractors/ts/utils/semantic-type-resolver.d.ts +0 -12
  36. package/dist/manifest-pipeline.d.ts +0 -29
  37. package/dist/module-loader.d.ts +0 -27
  38. package/dist/ts-compiler.d.ts +0 -13
  39. package/dist/utils/css-class.d.ts +0 -9
  40. package/dist/wix-type-to-data-type.d.ts +0 -6
@@ -1,42 +1,58 @@
1
- /**
2
- * Interceptable JSX Runtime
3
- *
4
- * This module wraps React's jsx-runtime and allows dynamic interception
5
- * of jsx/jsxs/jsxDEV calls. This is necessary because ESM imports are immutable,
6
- * so we can't monkey-patch react/jsx-runtime directly.
7
- *
8
- * ## Usage contexts
9
- *
10
- * This module runs in two contexts that must share mutable state:
11
- *
12
- * 1. **Vite alias (tests)** — aliased to `react/jsx-runtime` in vite.config.ts
13
- * 2. **Node.js ESM loader hook (CLI)** — redirected via `module.register()` in cli.ts
14
- *
15
- * In both cases the interceptor may be loaded as a separate module instance from
16
- * the copy bundled into the main dist files. To ensure `setJsxInterceptors()`
17
- * (called from component-renderer.ts) affects the `jsx`/`jsxs` that user
18
- * components call, mutable state lives on `globalThis` via `Symbol.for()`.
19
- */
20
- declare const originalRuntime: typeof import("react/jsx-runtime");
21
- declare const originalDevRuntime: typeof import("react/jsx-dev-runtime");
22
- export declare const Fragment: import('react').ExoticComponent<{
23
- children?: import('react').ReactNode | undefined;
24
- }>;
25
- type JsxDevFn = typeof originalDevRuntime.jsxDEV;
26
- /**
27
- * Sets custom jsx/jsxs/jsxDEV implementations for interception.
28
- * Call with no arguments to restore originals.
29
- */
30
- export declare function setJsxInterceptors(jsx?: typeof originalRuntime.jsx, jsxs?: typeof originalRuntime.jsxs, jsxDEV?: JsxDevFn): void;
31
- /**
32
- * Gets the original jsx/jsxs/jsxDEV functions.
33
- */
34
- export declare function getOriginals(): {
35
- jsx: typeof import('./jsx-runtime-interceptor.ts').jsx;
36
- jsxs: typeof import('./jsx-runtime-interceptor.ts').jsxs;
37
- jsxDEV: typeof import('./jsx-runtime-interceptor.ts').jsxDEV;
38
- };
39
- export declare function jsx(type: Parameters<typeof originalRuntime.jsx>[0], props: Parameters<typeof originalRuntime.jsx>[1], key?: Parameters<typeof originalRuntime.jsx>[2]): import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
40
- export declare function jsxs(type: Parameters<typeof originalRuntime.jsxs>[0], props: Parameters<typeof originalRuntime.jsxs>[1], key?: Parameters<typeof originalRuntime.jsxs>[2]): import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
41
- export declare function jsxDEV(type: Parameters<JsxDevFn>[0], props: Parameters<JsxDevFn>[1], key: Parameters<JsxDevFn>[2], isStaticChildren: Parameters<JsxDevFn>[3], source: Parameters<JsxDevFn>[4], self: Parameters<JsxDevFn>[5]): import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
42
- export {};
1
+ import { ExoticComponent } from 'react';
2
+ import { JSXElementConstructor } from 'react';
3
+ import { ReactElement } from 'react';
4
+ import { reactJsxDevRuntime } from 'react/jsx-dev-runtime';
5
+ import { reactJsxRuntime } from 'react/jsx-runtime';
6
+ import { ReactNode } from 'react';
7
+
8
+ export declare const Fragment: ExoticComponent< {
9
+ children?: ReactNode | undefined;
10
+ }>;
11
+
12
+ /**
13
+ * Gets the original jsx/jsxs/jsxDEV functions.
14
+ */
15
+ export declare function getOriginals(): {
16
+ jsx: jsx;
17
+ jsxs: jsxs;
18
+ jsxDEV: jsxDEV;
19
+ };
20
+
21
+ export declare function jsx(type: Parameters<typeof originalRuntime.jsx>[0], props: Parameters<typeof originalRuntime.jsx>[1], key?: Parameters<typeof originalRuntime.jsx>[2]): ReactElement<any, string | JSXElementConstructor<any>>;
22
+
23
+ export declare function jsxDEV(type: Parameters<JsxDevFn>[0], props: Parameters<JsxDevFn>[1], key: Parameters<JsxDevFn>[2], isStaticChildren: Parameters<JsxDevFn>[3], source: Parameters<JsxDevFn>[4], self: Parameters<JsxDevFn>[5]): ReactElement<any, string | JSXElementConstructor<any>>;
24
+
25
+ declare type JsxDevFn = typeof originalDevRuntime.jsxDEV;
26
+
27
+ export declare function jsxs(type: Parameters<typeof originalRuntime.jsxs>[0], props: Parameters<typeof originalRuntime.jsxs>[1], key?: Parameters<typeof originalRuntime.jsxs>[2]): ReactElement<any, string | JSXElementConstructor<any>>;
28
+
29
+ declare const originalDevRuntime: reactJsxDevRuntime;
30
+
31
+ /**
32
+ * Interceptable JSX Runtime
33
+ *
34
+ * This module wraps React's jsx-runtime and allows dynamic interception
35
+ * of jsx/jsxs/jsxDEV calls. This is necessary because ESM imports are immutable,
36
+ * so we can't monkey-patch react/jsx-runtime directly.
37
+ *
38
+ * ## Usage contexts
39
+ *
40
+ * This module runs in two contexts that must share mutable state:
41
+ *
42
+ * 1. **Vite alias (tests)** — aliased to `react/jsx-runtime` in vite.config.ts
43
+ * 2. **Node.js ESM loader hook (CLI)** — redirected via `module.register()` in cli.ts
44
+ *
45
+ * In both cases the interceptor may be loaded as a separate module instance from
46
+ * the copy bundled into the main dist files. To ensure `setJsxInterceptors()`
47
+ * (called from component-renderer.ts) affects the `jsx`/`jsxs` that user
48
+ * components call, mutable state lives on `globalThis` via `Symbol.for()`.
49
+ */
50
+ declare const originalRuntime: reactJsxRuntime;
51
+
52
+ /**
53
+ * Sets custom jsx/jsxs/jsxDEV implementations for interception.
54
+ * Call with no arguments to restore originals.
55
+ */
56
+ export declare function setJsxInterceptors(jsx?: typeof originalRuntime.jsx, jsxs?: typeof originalRuntime.jsxs, jsxDEV?: JsxDevFn): void;
57
+
58
+ export { }
@@ -1,23 +1,27 @@
1
- /**
2
- * Node.js ESM Customization Hook
3
- *
4
- * Redirects ESM `import 'react/jsx-runtime'` and `import 'react/jsx-dev-runtime'`
5
- * to the interceptable jsx-runtime-interceptor module.
6
- *
7
- * Registered via `module.register()` in the CLI before loading user components.
8
- * This ensures that dynamically imported user components use the interceptable
9
- * jsx-runtime, enabling prop tracking and element tracing.
10
- *
11
- * CJS `require()` calls are not affected by this hook — the interceptor uses
12
- * `createRequire` internally, so it always loads the real React runtime.
13
- */
14
- interface ResolveResult {
15
- url: string;
16
- shortCircuit?: boolean;
17
- }
18
- interface ResolveContext {
19
- parentURL?: string;
20
- }
21
- type NextResolve = (specifier: string, context: ResolveContext) => Promise<ResolveResult>;
22
- export declare function resolve(specifier: string, context: ResolveContext, nextResolve: NextResolve): Promise<ResolveResult>;
23
- export {};
1
+ declare type NextResolve = (specifier: string, context: ResolveContext) => Promise<ResolveResult>;
2
+
3
+ export declare function resolve(specifier: string, context: ResolveContext, nextResolve: NextResolve): Promise<ResolveResult>;
4
+
5
+ declare interface ResolveContext {
6
+ parentURL?: string;
7
+ }
8
+
9
+ /**
10
+ * Node.js ESM Customization Hook
11
+ *
12
+ * Redirects ESM `import 'react/jsx-runtime'` and `import 'react/jsx-dev-runtime'`
13
+ * to the interceptable jsx-runtime-interceptor module.
14
+ *
15
+ * Registered via `module.register()` in the CLI before loading user components.
16
+ * This ensures that dynamically imported user components use the interceptable
17
+ * jsx-runtime, enabling prop tracking and element tracing.
18
+ *
19
+ * CJS `require()` calls are not affected by this hook — the interceptor uses
20
+ * `createRequire` internally, so it always loads the real React runtime.
21
+ */
22
+ declare interface ResolveResult {
23
+ url: string;
24
+ shortCircuit?: boolean;
25
+ }
26
+
27
+ export { }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "registry": "https://registry.npmjs.org/",
5
5
  "access": "public"
6
6
  },
7
- "version": "1.33.0",
7
+ "version": "1.34.0",
8
8
  "description": "Core library for extracting component manifests from JS and CSS files",
9
9
  "type": "module",
10
10
  "main": "dist/index.js",
@@ -84,5 +84,5 @@
84
84
  ]
85
85
  }
86
86
  },
87
- "falconPackageHash": "f8e67fc7279e8f0ef3dcc174a79f27788a086507530da6f9c3b5f169"
87
+ "falconPackageHash": "69e79e3ace0456830f1097c17e57559c472de0256f58846b1ef3e031"
88
88
  }
package/src/index.ts CHANGED
@@ -214,6 +214,10 @@ export {
214
214
  export { loadModule, findComponent } from './module-loader'
215
215
  export type { LoadModuleFailure } from './module-loader'
216
216
 
217
+ /** neverthrow re-exports — consumers must use these instead of importing neverthrow directly */
218
+ export { Result, ResultAsync, ok, err, okAsync, errAsync } from 'neverthrow'
219
+ export type { Ok, Err } from 'neverthrow'
220
+
217
221
  // ── Tier 3: Low-Level Renderer ──────────────────────────────────────────────
218
222
 
219
223
  export { renderWithExtractors } from './component-renderer'
package/vite.config.ts CHANGED
@@ -8,6 +8,18 @@ export default defineConfig(({ mode }) => ({
8
8
  dts({
9
9
  include: ['src/**/*.ts'],
10
10
  exclude: ['**/*.test.ts'],
11
+ rollupTypes: true,
12
+ bundledPackages: [
13
+ 'neverthrow',
14
+ 'modern-errors',
15
+ 'modern-errors-cli',
16
+ 'beautiful-error',
17
+ 'handle-cli-error',
18
+ 'chalk-string',
19
+ 'error-custom-class',
20
+ 'error-class-utils',
21
+ 'figures',
22
+ ],
11
23
  }),
12
24
  ],
13
25
  build: {
@@ -1,31 +0,0 @@
1
- import { ComponentType } from 'react';
2
- import { ExtractorStore } from './information-extractors/react/extractors/core/store';
3
- import { CreateElementEvent } from './information-extractors/react/extractors/core/types';
4
- export declare const TRACE_ATTR = "data-trace-id";
5
- export type { CreateElementEvent };
6
- export interface CreateElementListener {
7
- onCreateElement: (event: CreateElementEvent) => void;
8
- }
9
- /**
10
- * Renders a React component to static HTML while intercepting element creation.
11
- *
12
- * Uses monkey-patching of React.createElement and jsx/jsxs to notify listeners
13
- * when DOM elements are created. Each DOM element gets a unique `data-trace-id`
14
- * attribute for tracking.
15
- *
16
- * @param Component - The React component to render
17
- * @param componentProps - Props to pass to the component
18
- * @param listeners - Listeners to notify on each DOM element creation
19
- * @param store - Shared ExtractorStore, included in each CreateElementEvent
20
- * @returns Static HTML string with trace IDs on DOM elements
21
- *
22
- * @example
23
- * ```ts
24
- * const store = new ExtractorStore()
25
- * const tracker = createPropTracker(getSpyMetadata)
26
- * const html = renderWithExtractors(MyComponent, { title: 'Hello' }, [tracker], store)
27
- * // html contains: <div data-trace-id="t1">...</div>
28
- * // tracker.stores now has prop→DOM bindings
29
- * ```
30
- */
31
- export declare function renderWithExtractors(Component: ComponentType<unknown>, componentProps: unknown, listeners: CreateElementListener[], store: ExtractorStore): string;
@@ -1,18 +0,0 @@
1
- import { DataItem } from '@wix/zero-config-schema';
2
- import { Result } from 'neverthrow';
3
- import { ParseError } from '../errors';
4
- import { TrackingStores } from '../information-extractors/react';
5
- import { PropInfo } from '../information-extractors/ts/types';
6
- type ParseErrorInstance = InstanceType<typeof ParseError>;
7
- /**
8
- * Converts a single PropInfo to a DataItem for the Wix Editor component schema.
9
- *
10
- * @param propInfo - The resolved TypeScript prop information to convert.
11
- * @param defaultValue - Optional default value for the data item.
12
- * @param propUsages - The full stores.propUsages map for on-demand binding lookups.
13
- * @param propPath - The full stores.propUsages key for this prop, e.g. "props.linkUrl".
14
- * @returns `Ok<DataItem>` on success, `Err<ParseError>` if an invariant is violated
15
- * (e.g. an array type missing its element type).
16
- */
17
- export declare function buildDataItem(propInfo: PropInfo, defaultValue?: unknown, propUsages?: TrackingStores['propUsages'], propPath?: string): Result<DataItem, ParseErrorInstance>;
18
- export {};
@@ -1 +0,0 @@
1
- export { toEditorReactComponent } from './to-editor-component';
@@ -1,3 +0,0 @@
1
- import { EditorReactComponent } from '@wix/zero-config-schema';
2
- import { ComponentInfoWithCss } from '../index';
3
- export declare function toEditorReactComponent(component: ComponentInfoWithCss): EditorReactComponent;
@@ -1,20 +0,0 @@
1
- /**
2
- * Utility functions for the converter module
3
- */
4
- /**
5
- * Formats any string format to Title Case display name
6
- * Handles: kebab-case, camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, and mixed formats
7
- *
8
- * If the result exceeds 50 characters, leading words are dropped (end words are more specific).
9
- *
10
- * Examples:
11
- * "input-field-weight" -> "Input Field Weight"
12
- * "camelCaseExample" -> "Camel Case Example"
13
- * "PascalCaseExample" -> "Pascal Case Example"
14
- * "snake_case_example" -> "Snake Case Example"
15
- * "SCREAMING_SNAKE_CASE" -> "Screaming Snake Case"
16
- * "mixed-format_example" -> "Mixed Format Example"
17
- * "a11y" -> "Accessibility"
18
- * "myVeryLongComponentWithAnExtremelyLongDisplayName" -> "With An Extremely Long Display Name"
19
- */
20
- export declare function formatDisplayName(input: string): string;
package/dist/errors.d.ts DELETED
@@ -1,230 +0,0 @@
1
- /**
2
- * Error class hierarchy using modern-errors and modern-errors-cli.
3
- *
4
- * Classes are organized by **failure type** (what went wrong), not by pipeline
5
- * phase (where it happened). Phase is an orthogonal runtime property composed
6
- * onto any error instance via `mapErr` or instance `props`.
7
- */
8
- /**
9
- * Root error class for the entire project. All domain errors extend this.
10
- *
11
- * Plugins attached here cascade to every subclass automatically.
12
- * The `phase` prop defaults to `"unknown"` and is overridden at the call
13
- * site or via `mapErr` as the error propagates through pipeline stages.
14
- */
15
- export declare const BaseError: import('modern-errors').SpecificErrorClass<{
16
- name: "cli";
17
- isOptions: (options: unknown) => boolean;
18
- getOptions: (options?: import('modern-errors-cli').Options) => {
19
- custom: string;
20
- stack?: boolean;
21
- cause?: boolean;
22
- props?: boolean;
23
- colors?: boolean;
24
- icon?: ("infinity" | "tick" | "info" | "warning" | "cross" | "square" | "squareSmall" | "squareSmallFilled" | "squareDarkShade" | "squareMediumShade" | "squareLightShade" | "squareTop" | "squareBottom" | "squareLeft" | "squareRight" | "squareCenter" | "circle" | "circleFilled" | "circleDotted" | "circleDouble" | "circleCircle" | "circleCross" | "circlePipe" | "circleQuestionMark" | "radioOn" | "radioOff" | "checkboxOn" | "checkboxOff" | "checkboxCircleOn" | "checkboxCircleOff" | "questionMarkPrefix" | "bullet" | "dot" | "ellipsis" | "pointer" | "pointerSmall" | "triangleUp" | "triangleUpSmall" | "triangleUpOutline" | "triangleDown" | "triangleDownSmall" | "triangleLeft" | "triangleLeftSmall" | "triangleRight" | "triangleRightSmall" | "lozenge" | "lozengeOutline" | "home" | "hamburger" | "smiley" | "mustache" | "heart" | "star" | "play" | "musicNote" | "musicNoteBeamed" | "nodejs" | "arrowUp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowLeftRight" | "arrowUpDown" | "almostEqual" | "notEqual" | "lessOrEqual" | "greaterOrEqual" | "identical" | "subscriptZero" | "subscriptOne" | "subscriptTwo" | "subscriptThree" | "subscriptFour" | "subscriptFive" | "subscriptSix" | "subscriptSeven" | "subscriptEight" | "subscriptNine" | "oneHalf" | "oneThird" | "oneQuarter" | "oneFifth" | "oneSixth" | "oneSeventh" | "oneEighth" | "oneNinth" | "oneTenth" | "twoThirds" | "twoFifths" | "threeQuarters" | "threeFifths" | "threeEighths" | "fourFifths" | "fiveSixths" | "fiveEighths" | "sevenEighth" | "line" | "lineBold" | "lineDouble" | "lineDashed0" | "lineDashed1" | "lineDashed2" | "lineDashed3" | "lineDashed4" | "lineDashed5" | "lineDashed6" | "lineDashed7" | "lineDashed8" | "lineDashed9" | "lineDashed10" | "lineDashed11" | "lineDashed12" | "lineDashed13" | "lineDashed14" | "lineDashed15" | "lineVertical" | "lineVerticalBold" | "lineVerticalDouble" | "lineVerticalDashed0" | "lineVerticalDashed1" | "lineVerticalDashed2" | "lineVerticalDashed3" | "lineVerticalDashed4" | "lineVerticalDashed5" | "lineVerticalDashed6" | "lineVerticalDashed7" | "lineVerticalDashed8" | "lineVerticalDashed9" | "lineVerticalDashed10" | "lineVerticalDashed11" | "lineDownLeft" | "lineDownLeftArc" | "lineDownBoldLeftBold" | "lineDownBoldLeft" | "lineDownLeftBold" | "lineDownDoubleLeftDouble" | "lineDownDoubleLeft" | "lineDownLeftDouble" | "lineDownRight" | "lineDownRightArc" | "lineDownBoldRightBold" | "lineDownBoldRight" | "lineDownRightBold" | "lineDownDoubleRightDouble" | "lineDownDoubleRight" | "lineDownRightDouble" | "lineUpLeft" | "lineUpLeftArc" | "lineUpBoldLeftBold" | "lineUpBoldLeft" | "lineUpLeftBold" | "lineUpDoubleLeftDouble" | "lineUpDoubleLeft" | "lineUpLeftDouble" | "lineUpRight" | "lineUpRightArc" | "lineUpBoldRightBold" | "lineUpBoldRight" | "lineUpRightBold" | "lineUpDoubleRightDouble" | "lineUpDoubleRight" | "lineUpRightDouble" | "lineUpDownLeft" | "lineUpBoldDownBoldLeftBold" | "lineUpBoldDownBoldLeft" | "lineUpDownLeftBold" | "lineUpBoldDownLeftBold" | "lineUpDownBoldLeftBold" | "lineUpDownBoldLeft" | "lineUpBoldDownLeft" | "lineUpDoubleDownDoubleLeftDouble" | "lineUpDoubleDownDoubleLeft" | "lineUpDownLeftDouble" | "lineUpDownRight" | "lineUpBoldDownBoldRightBold" | "lineUpBoldDownBoldRight" | "lineUpDownRightBold" | "lineUpBoldDownRightBold" | "lineUpDownBoldRightBold" | "lineUpDownBoldRight" | "lineUpBoldDownRight" | "lineUpDoubleDownDoubleRightDouble" | "lineUpDoubleDownDoubleRight" | "lineUpDownRightDouble" | "lineDownLeftRight" | "lineDownBoldLeftBoldRightBold" | "lineDownLeftBoldRightBold" | "lineDownBoldLeftRight" | "lineDownBoldLeftBoldRight" | "lineDownBoldLeftRightBold" | "lineDownLeftRightBold" | "lineDownLeftBoldRight" | "lineDownDoubleLeftDoubleRightDouble" | "lineDownDoubleLeftRight" | "lineDownLeftDoubleRightDouble" | "lineUpLeftRight" | "lineUpBoldLeftBoldRightBold" | "lineUpLeftBoldRightBold" | "lineUpBoldLeftRight" | "lineUpBoldLeftBoldRight" | "lineUpBoldLeftRightBold" | "lineUpLeftRightBold" | "lineUpLeftBoldRight" | "lineUpDoubleLeftDoubleRightDouble" | "lineUpDoubleLeftRight" | "lineUpLeftDoubleRightDouble" | "lineUpDownLeftRight" | "lineUpBoldDownBoldLeftBoldRightBold" | "lineUpDownBoldLeftBoldRightBold" | "lineUpBoldDownLeftBoldRightBold" | "lineUpBoldDownBoldLeftRightBold" | "lineUpBoldDownBoldLeftBoldRight" | "lineUpBoldDownLeftRight" | "lineUpDownBoldLeftRight" | "lineUpDownLeftBoldRight" | "lineUpDownLeftRightBold" | "lineUpBoldDownBoldLeftRight" | "lineUpDownLeftBoldRightBold" | "lineUpBoldDownLeftBoldRight" | "lineUpBoldDownLeftRightBold" | "lineUpDownBoldLeftBoldRight" | "lineUpDownBoldLeftRightBold" | "lineUpDoubleDownDoubleLeftDoubleRightDouble" | "lineUpDoubleDownDoubleLeftRight" | "lineUpDownLeftDoubleRightDouble" | "lineCross" | "lineBackslash" | "lineSlash") | "";
25
- header?: import('chalk-string').Styles | "";
26
- classes?: {
27
- readonly [errorName: string]: Omit<import('beautiful-error').Options, "classes">;
28
- } & {
29
- readonly [errorName: string]: Omit<import('handle-cli-error').Options, "classes">;
30
- };
31
- exitCode?: number;
32
- silent?: boolean;
33
- timeout?: number;
34
- log?: (message: string) => void;
35
- };
36
- instanceMethods: {
37
- exit: ({ error, options }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => void;
38
- pretty: ({ error, options: { exitCode, silent, timeout, log, ...beautifulErrorOptions }, }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => string;
39
- };
40
- }[], {
41
- /** Pipeline stage where the error originated (composed at runtime). */
42
- phase: string;
43
- /** True if this error represents a violated invariant, not a user error. */
44
- isDefect: boolean;
45
- /** Process exit code used by BaseError.exit(). */
46
- exitCode: number;
47
- }, import('modern-errors').CustomClass>;
48
- /** A required resource (file, module, component) could not be found. */
49
- export declare const NotFoundError: import('modern-errors').SpecificErrorClass<{
50
- name: "cli";
51
- isOptions: (options: unknown) => boolean;
52
- getOptions: (options?: import('modern-errors-cli').Options) => {
53
- custom: string;
54
- stack?: boolean;
55
- cause?: boolean;
56
- props?: boolean;
57
- colors?: boolean;
58
- icon?: ("infinity" | "tick" | "info" | "warning" | "cross" | "square" | "squareSmall" | "squareSmallFilled" | "squareDarkShade" | "squareMediumShade" | "squareLightShade" | "squareTop" | "squareBottom" | "squareLeft" | "squareRight" | "squareCenter" | "circle" | "circleFilled" | "circleDotted" | "circleDouble" | "circleCircle" | "circleCross" | "circlePipe" | "circleQuestionMark" | "radioOn" | "radioOff" | "checkboxOn" | "checkboxOff" | "checkboxCircleOn" | "checkboxCircleOff" | "questionMarkPrefix" | "bullet" | "dot" | "ellipsis" | "pointer" | "pointerSmall" | "triangleUp" | "triangleUpSmall" | "triangleUpOutline" | "triangleDown" | "triangleDownSmall" | "triangleLeft" | "triangleLeftSmall" | "triangleRight" | "triangleRightSmall" | "lozenge" | "lozengeOutline" | "home" | "hamburger" | "smiley" | "mustache" | "heart" | "star" | "play" | "musicNote" | "musicNoteBeamed" | "nodejs" | "arrowUp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowLeftRight" | "arrowUpDown" | "almostEqual" | "notEqual" | "lessOrEqual" | "greaterOrEqual" | "identical" | "subscriptZero" | "subscriptOne" | "subscriptTwo" | "subscriptThree" | "subscriptFour" | "subscriptFive" | "subscriptSix" | "subscriptSeven" | "subscriptEight" | "subscriptNine" | "oneHalf" | "oneThird" | "oneQuarter" | "oneFifth" | "oneSixth" | "oneSeventh" | "oneEighth" | "oneNinth" | "oneTenth" | "twoThirds" | "twoFifths" | "threeQuarters" | "threeFifths" | "threeEighths" | "fourFifths" | "fiveSixths" | "fiveEighths" | "sevenEighth" | "line" | "lineBold" | "lineDouble" | "lineDashed0" | "lineDashed1" | "lineDashed2" | "lineDashed3" | "lineDashed4" | "lineDashed5" | "lineDashed6" | "lineDashed7" | "lineDashed8" | "lineDashed9" | "lineDashed10" | "lineDashed11" | "lineDashed12" | "lineDashed13" | "lineDashed14" | "lineDashed15" | "lineVertical" | "lineVerticalBold" | "lineVerticalDouble" | "lineVerticalDashed0" | "lineVerticalDashed1" | "lineVerticalDashed2" | "lineVerticalDashed3" | "lineVerticalDashed4" | "lineVerticalDashed5" | "lineVerticalDashed6" | "lineVerticalDashed7" | "lineVerticalDashed8" | "lineVerticalDashed9" | "lineVerticalDashed10" | "lineVerticalDashed11" | "lineDownLeft" | "lineDownLeftArc" | "lineDownBoldLeftBold" | "lineDownBoldLeft" | "lineDownLeftBold" | "lineDownDoubleLeftDouble" | "lineDownDoubleLeft" | "lineDownLeftDouble" | "lineDownRight" | "lineDownRightArc" | "lineDownBoldRightBold" | "lineDownBoldRight" | "lineDownRightBold" | "lineDownDoubleRightDouble" | "lineDownDoubleRight" | "lineDownRightDouble" | "lineUpLeft" | "lineUpLeftArc" | "lineUpBoldLeftBold" | "lineUpBoldLeft" | "lineUpLeftBold" | "lineUpDoubleLeftDouble" | "lineUpDoubleLeft" | "lineUpLeftDouble" | "lineUpRight" | "lineUpRightArc" | "lineUpBoldRightBold" | "lineUpBoldRight" | "lineUpRightBold" | "lineUpDoubleRightDouble" | "lineUpDoubleRight" | "lineUpRightDouble" | "lineUpDownLeft" | "lineUpBoldDownBoldLeftBold" | "lineUpBoldDownBoldLeft" | "lineUpDownLeftBold" | "lineUpBoldDownLeftBold" | "lineUpDownBoldLeftBold" | "lineUpDownBoldLeft" | "lineUpBoldDownLeft" | "lineUpDoubleDownDoubleLeftDouble" | "lineUpDoubleDownDoubleLeft" | "lineUpDownLeftDouble" | "lineUpDownRight" | "lineUpBoldDownBoldRightBold" | "lineUpBoldDownBoldRight" | "lineUpDownRightBold" | "lineUpBoldDownRightBold" | "lineUpDownBoldRightBold" | "lineUpDownBoldRight" | "lineUpBoldDownRight" | "lineUpDoubleDownDoubleRightDouble" | "lineUpDoubleDownDoubleRight" | "lineUpDownRightDouble" | "lineDownLeftRight" | "lineDownBoldLeftBoldRightBold" | "lineDownLeftBoldRightBold" | "lineDownBoldLeftRight" | "lineDownBoldLeftBoldRight" | "lineDownBoldLeftRightBold" | "lineDownLeftRightBold" | "lineDownLeftBoldRight" | "lineDownDoubleLeftDoubleRightDouble" | "lineDownDoubleLeftRight" | "lineDownLeftDoubleRightDouble" | "lineUpLeftRight" | "lineUpBoldLeftBoldRightBold" | "lineUpLeftBoldRightBold" | "lineUpBoldLeftRight" | "lineUpBoldLeftBoldRight" | "lineUpBoldLeftRightBold" | "lineUpLeftRightBold" | "lineUpLeftBoldRight" | "lineUpDoubleLeftDoubleRightDouble" | "lineUpDoubleLeftRight" | "lineUpLeftDoubleRightDouble" | "lineUpDownLeftRight" | "lineUpBoldDownBoldLeftBoldRightBold" | "lineUpDownBoldLeftBoldRightBold" | "lineUpBoldDownLeftBoldRightBold" | "lineUpBoldDownBoldLeftRightBold" | "lineUpBoldDownBoldLeftBoldRight" | "lineUpBoldDownLeftRight" | "lineUpDownBoldLeftRight" | "lineUpDownLeftBoldRight" | "lineUpDownLeftRightBold" | "lineUpBoldDownBoldLeftRight" | "lineUpDownLeftBoldRightBold" | "lineUpBoldDownLeftBoldRight" | "lineUpBoldDownLeftRightBold" | "lineUpDownBoldLeftBoldRight" | "lineUpDownBoldLeftRightBold" | "lineUpDoubleDownDoubleLeftDoubleRightDouble" | "lineUpDoubleDownDoubleLeftRight" | "lineUpDownLeftDoubleRightDouble" | "lineCross" | "lineBackslash" | "lineSlash") | "";
59
- header?: import('chalk-string').Styles | "";
60
- classes?: {
61
- readonly [errorName: string]: Omit<import('beautiful-error').Options, "classes">;
62
- } & {
63
- readonly [errorName: string]: Omit<import('handle-cli-error').Options, "classes">;
64
- };
65
- exitCode?: number;
66
- silent?: boolean;
67
- timeout?: number;
68
- log?: (message: string) => void;
69
- };
70
- instanceMethods: {
71
- exit: ({ error, options }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => void;
72
- pretty: ({ error, options: { exitCode, silent, timeout, log, ...beautifulErrorOptions }, }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => string;
73
- };
74
- }[], {
75
- /** Pipeline stage where the error originated (composed at runtime). */
76
- phase: string;
77
- /** True if this error represents a violated invariant, not a user error. */
78
- isDefect: boolean;
79
- /** Process exit code used by BaseError.exit(). */
80
- exitCode: number;
81
- } & object, import('modern-errors').CustomClass>;
82
- /** Data could not be parsed or decoded (JSON, source code, config, CSS). */
83
- export declare const ParseError: import('modern-errors').SpecificErrorClass<{
84
- name: "cli";
85
- isOptions: (options: unknown) => boolean;
86
- getOptions: (options?: import('modern-errors-cli').Options) => {
87
- custom: string;
88
- stack?: boolean;
89
- cause?: boolean;
90
- props?: boolean;
91
- colors?: boolean;
92
- icon?: ("infinity" | "tick" | "info" | "warning" | "cross" | "square" | "squareSmall" | "squareSmallFilled" | "squareDarkShade" | "squareMediumShade" | "squareLightShade" | "squareTop" | "squareBottom" | "squareLeft" | "squareRight" | "squareCenter" | "circle" | "circleFilled" | "circleDotted" | "circleDouble" | "circleCircle" | "circleCross" | "circlePipe" | "circleQuestionMark" | "radioOn" | "radioOff" | "checkboxOn" | "checkboxOff" | "checkboxCircleOn" | "checkboxCircleOff" | "questionMarkPrefix" | "bullet" | "dot" | "ellipsis" | "pointer" | "pointerSmall" | "triangleUp" | "triangleUpSmall" | "triangleUpOutline" | "triangleDown" | "triangleDownSmall" | "triangleLeft" | "triangleLeftSmall" | "triangleRight" | "triangleRightSmall" | "lozenge" | "lozengeOutline" | "home" | "hamburger" | "smiley" | "mustache" | "heart" | "star" | "play" | "musicNote" | "musicNoteBeamed" | "nodejs" | "arrowUp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowLeftRight" | "arrowUpDown" | "almostEqual" | "notEqual" | "lessOrEqual" | "greaterOrEqual" | "identical" | "subscriptZero" | "subscriptOne" | "subscriptTwo" | "subscriptThree" | "subscriptFour" | "subscriptFive" | "subscriptSix" | "subscriptSeven" | "subscriptEight" | "subscriptNine" | "oneHalf" | "oneThird" | "oneQuarter" | "oneFifth" | "oneSixth" | "oneSeventh" | "oneEighth" | "oneNinth" | "oneTenth" | "twoThirds" | "twoFifths" | "threeQuarters" | "threeFifths" | "threeEighths" | "fourFifths" | "fiveSixths" | "fiveEighths" | "sevenEighth" | "line" | "lineBold" | "lineDouble" | "lineDashed0" | "lineDashed1" | "lineDashed2" | "lineDashed3" | "lineDashed4" | "lineDashed5" | "lineDashed6" | "lineDashed7" | "lineDashed8" | "lineDashed9" | "lineDashed10" | "lineDashed11" | "lineDashed12" | "lineDashed13" | "lineDashed14" | "lineDashed15" | "lineVertical" | "lineVerticalBold" | "lineVerticalDouble" | "lineVerticalDashed0" | "lineVerticalDashed1" | "lineVerticalDashed2" | "lineVerticalDashed3" | "lineVerticalDashed4" | "lineVerticalDashed5" | "lineVerticalDashed6" | "lineVerticalDashed7" | "lineVerticalDashed8" | "lineVerticalDashed9" | "lineVerticalDashed10" | "lineVerticalDashed11" | "lineDownLeft" | "lineDownLeftArc" | "lineDownBoldLeftBold" | "lineDownBoldLeft" | "lineDownLeftBold" | "lineDownDoubleLeftDouble" | "lineDownDoubleLeft" | "lineDownLeftDouble" | "lineDownRight" | "lineDownRightArc" | "lineDownBoldRightBold" | "lineDownBoldRight" | "lineDownRightBold" | "lineDownDoubleRightDouble" | "lineDownDoubleRight" | "lineDownRightDouble" | "lineUpLeft" | "lineUpLeftArc" | "lineUpBoldLeftBold" | "lineUpBoldLeft" | "lineUpLeftBold" | "lineUpDoubleLeftDouble" | "lineUpDoubleLeft" | "lineUpLeftDouble" | "lineUpRight" | "lineUpRightArc" | "lineUpBoldRightBold" | "lineUpBoldRight" | "lineUpRightBold" | "lineUpDoubleRightDouble" | "lineUpDoubleRight" | "lineUpRightDouble" | "lineUpDownLeft" | "lineUpBoldDownBoldLeftBold" | "lineUpBoldDownBoldLeft" | "lineUpDownLeftBold" | "lineUpBoldDownLeftBold" | "lineUpDownBoldLeftBold" | "lineUpDownBoldLeft" | "lineUpBoldDownLeft" | "lineUpDoubleDownDoubleLeftDouble" | "lineUpDoubleDownDoubleLeft" | "lineUpDownLeftDouble" | "lineUpDownRight" | "lineUpBoldDownBoldRightBold" | "lineUpBoldDownBoldRight" | "lineUpDownRightBold" | "lineUpBoldDownRightBold" | "lineUpDownBoldRightBold" | "lineUpDownBoldRight" | "lineUpBoldDownRight" | "lineUpDoubleDownDoubleRightDouble" | "lineUpDoubleDownDoubleRight" | "lineUpDownRightDouble" | "lineDownLeftRight" | "lineDownBoldLeftBoldRightBold" | "lineDownLeftBoldRightBold" | "lineDownBoldLeftRight" | "lineDownBoldLeftBoldRight" | "lineDownBoldLeftRightBold" | "lineDownLeftRightBold" | "lineDownLeftBoldRight" | "lineDownDoubleLeftDoubleRightDouble" | "lineDownDoubleLeftRight" | "lineDownLeftDoubleRightDouble" | "lineUpLeftRight" | "lineUpBoldLeftBoldRightBold" | "lineUpLeftBoldRightBold" | "lineUpBoldLeftRight" | "lineUpBoldLeftBoldRight" | "lineUpBoldLeftRightBold" | "lineUpLeftRightBold" | "lineUpLeftBoldRight" | "lineUpDoubleLeftDoubleRightDouble" | "lineUpDoubleLeftRight" | "lineUpLeftDoubleRightDouble" | "lineUpDownLeftRight" | "lineUpBoldDownBoldLeftBoldRightBold" | "lineUpDownBoldLeftBoldRightBold" | "lineUpBoldDownLeftBoldRightBold" | "lineUpBoldDownBoldLeftRightBold" | "lineUpBoldDownBoldLeftBoldRight" | "lineUpBoldDownLeftRight" | "lineUpDownBoldLeftRight" | "lineUpDownLeftBoldRight" | "lineUpDownLeftRightBold" | "lineUpBoldDownBoldLeftRight" | "lineUpDownLeftBoldRightBold" | "lineUpBoldDownLeftBoldRight" | "lineUpBoldDownLeftRightBold" | "lineUpDownBoldLeftBoldRight" | "lineUpDownBoldLeftRightBold" | "lineUpDoubleDownDoubleLeftDoubleRightDouble" | "lineUpDoubleDownDoubleLeftRight" | "lineUpDownLeftDoubleRightDouble" | "lineCross" | "lineBackslash" | "lineSlash") | "";
93
- header?: import('chalk-string').Styles | "";
94
- classes?: {
95
- readonly [errorName: string]: Omit<import('beautiful-error').Options, "classes">;
96
- } & {
97
- readonly [errorName: string]: Omit<import('handle-cli-error').Options, "classes">;
98
- };
99
- exitCode?: number;
100
- silent?: boolean;
101
- timeout?: number;
102
- log?: (message: string) => void;
103
- };
104
- instanceMethods: {
105
- exit: ({ error, options }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => void;
106
- pretty: ({ error, options: { exitCode, silent, timeout, log, ...beautifulErrorOptions }, }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => string;
107
- };
108
- }[], {
109
- /** Pipeline stage where the error originated (composed at runtime). */
110
- phase: string;
111
- /** True if this error represents a violated invariant, not a user error. */
112
- isDefect: boolean;
113
- /** Process exit code used by BaseError.exit(). */
114
- exitCode: number;
115
- } & object, import('modern-errors').CustomClass>;
116
- /** Input or data does not satisfy validation rules. */
117
- export declare const ValidationError: import('modern-errors').SpecificErrorClass<{
118
- name: "cli";
119
- isOptions: (options: unknown) => boolean;
120
- getOptions: (options?: import('modern-errors-cli').Options) => {
121
- custom: string;
122
- stack?: boolean;
123
- cause?: boolean;
124
- props?: boolean;
125
- colors?: boolean;
126
- icon?: ("infinity" | "tick" | "info" | "warning" | "cross" | "square" | "squareSmall" | "squareSmallFilled" | "squareDarkShade" | "squareMediumShade" | "squareLightShade" | "squareTop" | "squareBottom" | "squareLeft" | "squareRight" | "squareCenter" | "circle" | "circleFilled" | "circleDotted" | "circleDouble" | "circleCircle" | "circleCross" | "circlePipe" | "circleQuestionMark" | "radioOn" | "radioOff" | "checkboxOn" | "checkboxOff" | "checkboxCircleOn" | "checkboxCircleOff" | "questionMarkPrefix" | "bullet" | "dot" | "ellipsis" | "pointer" | "pointerSmall" | "triangleUp" | "triangleUpSmall" | "triangleUpOutline" | "triangleDown" | "triangleDownSmall" | "triangleLeft" | "triangleLeftSmall" | "triangleRight" | "triangleRightSmall" | "lozenge" | "lozengeOutline" | "home" | "hamburger" | "smiley" | "mustache" | "heart" | "star" | "play" | "musicNote" | "musicNoteBeamed" | "nodejs" | "arrowUp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowLeftRight" | "arrowUpDown" | "almostEqual" | "notEqual" | "lessOrEqual" | "greaterOrEqual" | "identical" | "subscriptZero" | "subscriptOne" | "subscriptTwo" | "subscriptThree" | "subscriptFour" | "subscriptFive" | "subscriptSix" | "subscriptSeven" | "subscriptEight" | "subscriptNine" | "oneHalf" | "oneThird" | "oneQuarter" | "oneFifth" | "oneSixth" | "oneSeventh" | "oneEighth" | "oneNinth" | "oneTenth" | "twoThirds" | "twoFifths" | "threeQuarters" | "threeFifths" | "threeEighths" | "fourFifths" | "fiveSixths" | "fiveEighths" | "sevenEighth" | "line" | "lineBold" | "lineDouble" | "lineDashed0" | "lineDashed1" | "lineDashed2" | "lineDashed3" | "lineDashed4" | "lineDashed5" | "lineDashed6" | "lineDashed7" | "lineDashed8" | "lineDashed9" | "lineDashed10" | "lineDashed11" | "lineDashed12" | "lineDashed13" | "lineDashed14" | "lineDashed15" | "lineVertical" | "lineVerticalBold" | "lineVerticalDouble" | "lineVerticalDashed0" | "lineVerticalDashed1" | "lineVerticalDashed2" | "lineVerticalDashed3" | "lineVerticalDashed4" | "lineVerticalDashed5" | "lineVerticalDashed6" | "lineVerticalDashed7" | "lineVerticalDashed8" | "lineVerticalDashed9" | "lineVerticalDashed10" | "lineVerticalDashed11" | "lineDownLeft" | "lineDownLeftArc" | "lineDownBoldLeftBold" | "lineDownBoldLeft" | "lineDownLeftBold" | "lineDownDoubleLeftDouble" | "lineDownDoubleLeft" | "lineDownLeftDouble" | "lineDownRight" | "lineDownRightArc" | "lineDownBoldRightBold" | "lineDownBoldRight" | "lineDownRightBold" | "lineDownDoubleRightDouble" | "lineDownDoubleRight" | "lineDownRightDouble" | "lineUpLeft" | "lineUpLeftArc" | "lineUpBoldLeftBold" | "lineUpBoldLeft" | "lineUpLeftBold" | "lineUpDoubleLeftDouble" | "lineUpDoubleLeft" | "lineUpLeftDouble" | "lineUpRight" | "lineUpRightArc" | "lineUpBoldRightBold" | "lineUpBoldRight" | "lineUpRightBold" | "lineUpDoubleRightDouble" | "lineUpDoubleRight" | "lineUpRightDouble" | "lineUpDownLeft" | "lineUpBoldDownBoldLeftBold" | "lineUpBoldDownBoldLeft" | "lineUpDownLeftBold" | "lineUpBoldDownLeftBold" | "lineUpDownBoldLeftBold" | "lineUpDownBoldLeft" | "lineUpBoldDownLeft" | "lineUpDoubleDownDoubleLeftDouble" | "lineUpDoubleDownDoubleLeft" | "lineUpDownLeftDouble" | "lineUpDownRight" | "lineUpBoldDownBoldRightBold" | "lineUpBoldDownBoldRight" | "lineUpDownRightBold" | "lineUpBoldDownRightBold" | "lineUpDownBoldRightBold" | "lineUpDownBoldRight" | "lineUpBoldDownRight" | "lineUpDoubleDownDoubleRightDouble" | "lineUpDoubleDownDoubleRight" | "lineUpDownRightDouble" | "lineDownLeftRight" | "lineDownBoldLeftBoldRightBold" | "lineDownLeftBoldRightBold" | "lineDownBoldLeftRight" | "lineDownBoldLeftBoldRight" | "lineDownBoldLeftRightBold" | "lineDownLeftRightBold" | "lineDownLeftBoldRight" | "lineDownDoubleLeftDoubleRightDouble" | "lineDownDoubleLeftRight" | "lineDownLeftDoubleRightDouble" | "lineUpLeftRight" | "lineUpBoldLeftBoldRightBold" | "lineUpLeftBoldRightBold" | "lineUpBoldLeftRight" | "lineUpBoldLeftBoldRight" | "lineUpBoldLeftRightBold" | "lineUpLeftRightBold" | "lineUpLeftBoldRight" | "lineUpDoubleLeftDoubleRightDouble" | "lineUpDoubleLeftRight" | "lineUpLeftDoubleRightDouble" | "lineUpDownLeftRight" | "lineUpBoldDownBoldLeftBoldRightBold" | "lineUpDownBoldLeftBoldRightBold" | "lineUpBoldDownLeftBoldRightBold" | "lineUpBoldDownBoldLeftRightBold" | "lineUpBoldDownBoldLeftBoldRight" | "lineUpBoldDownLeftRight" | "lineUpDownBoldLeftRight" | "lineUpDownLeftBoldRight" | "lineUpDownLeftRightBold" | "lineUpBoldDownBoldLeftRight" | "lineUpDownLeftBoldRightBold" | "lineUpBoldDownLeftBoldRight" | "lineUpBoldDownLeftRightBold" | "lineUpDownBoldLeftBoldRight" | "lineUpDownBoldLeftRightBold" | "lineUpDoubleDownDoubleLeftDoubleRightDouble" | "lineUpDoubleDownDoubleLeftRight" | "lineUpDownLeftDoubleRightDouble" | "lineCross" | "lineBackslash" | "lineSlash") | "";
127
- header?: import('chalk-string').Styles | "";
128
- classes?: {
129
- readonly [errorName: string]: Omit<import('beautiful-error').Options, "classes">;
130
- } & {
131
- readonly [errorName: string]: Omit<import('handle-cli-error').Options, "classes">;
132
- };
133
- exitCode?: number;
134
- silent?: boolean;
135
- timeout?: number;
136
- log?: (message: string) => void;
137
- };
138
- instanceMethods: {
139
- exit: ({ error, options }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => void;
140
- pretty: ({ error, options: { exitCode, silent, timeout, log, ...beautifulErrorOptions }, }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => string;
141
- };
142
- }[], {
143
- /** Pipeline stage where the error originated (composed at runtime). */
144
- phase: string;
145
- /** True if this error represents a violated invariant, not a user error. */
146
- isDefect: boolean;
147
- /** Process exit code used by BaseError.exit(). */
148
- exitCode: number;
149
- } & object, import('modern-errors').CustomClass>;
150
- /** File system or network I/O failed (permissions, disk full, timeout). */
151
- export declare const IoError: import('modern-errors').SpecificErrorClass<{
152
- name: "cli";
153
- isOptions: (options: unknown) => boolean;
154
- getOptions: (options?: import('modern-errors-cli').Options) => {
155
- custom: string;
156
- stack?: boolean;
157
- cause?: boolean;
158
- props?: boolean;
159
- colors?: boolean;
160
- icon?: ("infinity" | "tick" | "info" | "warning" | "cross" | "square" | "squareSmall" | "squareSmallFilled" | "squareDarkShade" | "squareMediumShade" | "squareLightShade" | "squareTop" | "squareBottom" | "squareLeft" | "squareRight" | "squareCenter" | "circle" | "circleFilled" | "circleDotted" | "circleDouble" | "circleCircle" | "circleCross" | "circlePipe" | "circleQuestionMark" | "radioOn" | "radioOff" | "checkboxOn" | "checkboxOff" | "checkboxCircleOn" | "checkboxCircleOff" | "questionMarkPrefix" | "bullet" | "dot" | "ellipsis" | "pointer" | "pointerSmall" | "triangleUp" | "triangleUpSmall" | "triangleUpOutline" | "triangleDown" | "triangleDownSmall" | "triangleLeft" | "triangleLeftSmall" | "triangleRight" | "triangleRightSmall" | "lozenge" | "lozengeOutline" | "home" | "hamburger" | "smiley" | "mustache" | "heart" | "star" | "play" | "musicNote" | "musicNoteBeamed" | "nodejs" | "arrowUp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowLeftRight" | "arrowUpDown" | "almostEqual" | "notEqual" | "lessOrEqual" | "greaterOrEqual" | "identical" | "subscriptZero" | "subscriptOne" | "subscriptTwo" | "subscriptThree" | "subscriptFour" | "subscriptFive" | "subscriptSix" | "subscriptSeven" | "subscriptEight" | "subscriptNine" | "oneHalf" | "oneThird" | "oneQuarter" | "oneFifth" | "oneSixth" | "oneSeventh" | "oneEighth" | "oneNinth" | "oneTenth" | "twoThirds" | "twoFifths" | "threeQuarters" | "threeFifths" | "threeEighths" | "fourFifths" | "fiveSixths" | "fiveEighths" | "sevenEighth" | "line" | "lineBold" | "lineDouble" | "lineDashed0" | "lineDashed1" | "lineDashed2" | "lineDashed3" | "lineDashed4" | "lineDashed5" | "lineDashed6" | "lineDashed7" | "lineDashed8" | "lineDashed9" | "lineDashed10" | "lineDashed11" | "lineDashed12" | "lineDashed13" | "lineDashed14" | "lineDashed15" | "lineVertical" | "lineVerticalBold" | "lineVerticalDouble" | "lineVerticalDashed0" | "lineVerticalDashed1" | "lineVerticalDashed2" | "lineVerticalDashed3" | "lineVerticalDashed4" | "lineVerticalDashed5" | "lineVerticalDashed6" | "lineVerticalDashed7" | "lineVerticalDashed8" | "lineVerticalDashed9" | "lineVerticalDashed10" | "lineVerticalDashed11" | "lineDownLeft" | "lineDownLeftArc" | "lineDownBoldLeftBold" | "lineDownBoldLeft" | "lineDownLeftBold" | "lineDownDoubleLeftDouble" | "lineDownDoubleLeft" | "lineDownLeftDouble" | "lineDownRight" | "lineDownRightArc" | "lineDownBoldRightBold" | "lineDownBoldRight" | "lineDownRightBold" | "lineDownDoubleRightDouble" | "lineDownDoubleRight" | "lineDownRightDouble" | "lineUpLeft" | "lineUpLeftArc" | "lineUpBoldLeftBold" | "lineUpBoldLeft" | "lineUpLeftBold" | "lineUpDoubleLeftDouble" | "lineUpDoubleLeft" | "lineUpLeftDouble" | "lineUpRight" | "lineUpRightArc" | "lineUpBoldRightBold" | "lineUpBoldRight" | "lineUpRightBold" | "lineUpDoubleRightDouble" | "lineUpDoubleRight" | "lineUpRightDouble" | "lineUpDownLeft" | "lineUpBoldDownBoldLeftBold" | "lineUpBoldDownBoldLeft" | "lineUpDownLeftBold" | "lineUpBoldDownLeftBold" | "lineUpDownBoldLeftBold" | "lineUpDownBoldLeft" | "lineUpBoldDownLeft" | "lineUpDoubleDownDoubleLeftDouble" | "lineUpDoubleDownDoubleLeft" | "lineUpDownLeftDouble" | "lineUpDownRight" | "lineUpBoldDownBoldRightBold" | "lineUpBoldDownBoldRight" | "lineUpDownRightBold" | "lineUpBoldDownRightBold" | "lineUpDownBoldRightBold" | "lineUpDownBoldRight" | "lineUpBoldDownRight" | "lineUpDoubleDownDoubleRightDouble" | "lineUpDoubleDownDoubleRight" | "lineUpDownRightDouble" | "lineDownLeftRight" | "lineDownBoldLeftBoldRightBold" | "lineDownLeftBoldRightBold" | "lineDownBoldLeftRight" | "lineDownBoldLeftBoldRight" | "lineDownBoldLeftRightBold" | "lineDownLeftRightBold" | "lineDownLeftBoldRight" | "lineDownDoubleLeftDoubleRightDouble" | "lineDownDoubleLeftRight" | "lineDownLeftDoubleRightDouble" | "lineUpLeftRight" | "lineUpBoldLeftBoldRightBold" | "lineUpLeftBoldRightBold" | "lineUpBoldLeftRight" | "lineUpBoldLeftBoldRight" | "lineUpBoldLeftRightBold" | "lineUpLeftRightBold" | "lineUpLeftBoldRight" | "lineUpDoubleLeftDoubleRightDouble" | "lineUpDoubleLeftRight" | "lineUpLeftDoubleRightDouble" | "lineUpDownLeftRight" | "lineUpBoldDownBoldLeftBoldRightBold" | "lineUpDownBoldLeftBoldRightBold" | "lineUpBoldDownLeftBoldRightBold" | "lineUpBoldDownBoldLeftRightBold" | "lineUpBoldDownBoldLeftBoldRight" | "lineUpBoldDownLeftRight" | "lineUpDownBoldLeftRight" | "lineUpDownLeftBoldRight" | "lineUpDownLeftRightBold" | "lineUpBoldDownBoldLeftRight" | "lineUpDownLeftBoldRightBold" | "lineUpBoldDownLeftBoldRight" | "lineUpBoldDownLeftRightBold" | "lineUpDownBoldLeftBoldRight" | "lineUpDownBoldLeftRightBold" | "lineUpDoubleDownDoubleLeftDoubleRightDouble" | "lineUpDoubleDownDoubleLeftRight" | "lineUpDownLeftDoubleRightDouble" | "lineCross" | "lineBackslash" | "lineSlash") | "";
161
- header?: import('chalk-string').Styles | "";
162
- classes?: {
163
- readonly [errorName: string]: Omit<import('beautiful-error').Options, "classes">;
164
- } & {
165
- readonly [errorName: string]: Omit<import('handle-cli-error').Options, "classes">;
166
- };
167
- exitCode?: number;
168
- silent?: boolean;
169
- timeout?: number;
170
- log?: (message: string) => void;
171
- };
172
- instanceMethods: {
173
- exit: ({ error, options }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => void;
174
- pretty: ({ error, options: { exitCode, silent, timeout, log, ...beautifulErrorOptions }, }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => string;
175
- };
176
- }[], {
177
- /** Pipeline stage where the error originated (composed at runtime). */
178
- phase: string;
179
- /** True if this error represents a violated invariant, not a user error. */
180
- isDefect: boolean;
181
- /** Process exit code used by BaseError.exit(). */
182
- exitCode: number;
183
- } & object, import('modern-errors').CustomClass>;
184
- /**
185
- * Represents an unexpected internal failure — a violated invariant or
186
- * impossible state that should never occur during normal operation.
187
- *
188
- * Exit code 70 (EX_SOFTWARE) signals an internal software error.
189
- */
190
- export declare const DefectError: import('modern-errors').SpecificErrorClass<{
191
- name: "cli";
192
- isOptions: (options: unknown) => boolean;
193
- getOptions: (options?: import('modern-errors-cli').Options) => {
194
- custom: string;
195
- stack?: boolean;
196
- cause?: boolean;
197
- props?: boolean;
198
- colors?: boolean;
199
- icon?: ("infinity" | "tick" | "info" | "warning" | "cross" | "square" | "squareSmall" | "squareSmallFilled" | "squareDarkShade" | "squareMediumShade" | "squareLightShade" | "squareTop" | "squareBottom" | "squareLeft" | "squareRight" | "squareCenter" | "circle" | "circleFilled" | "circleDotted" | "circleDouble" | "circleCircle" | "circleCross" | "circlePipe" | "circleQuestionMark" | "radioOn" | "radioOff" | "checkboxOn" | "checkboxOff" | "checkboxCircleOn" | "checkboxCircleOff" | "questionMarkPrefix" | "bullet" | "dot" | "ellipsis" | "pointer" | "pointerSmall" | "triangleUp" | "triangleUpSmall" | "triangleUpOutline" | "triangleDown" | "triangleDownSmall" | "triangleLeft" | "triangleLeftSmall" | "triangleRight" | "triangleRightSmall" | "lozenge" | "lozengeOutline" | "home" | "hamburger" | "smiley" | "mustache" | "heart" | "star" | "play" | "musicNote" | "musicNoteBeamed" | "nodejs" | "arrowUp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowLeftRight" | "arrowUpDown" | "almostEqual" | "notEqual" | "lessOrEqual" | "greaterOrEqual" | "identical" | "subscriptZero" | "subscriptOne" | "subscriptTwo" | "subscriptThree" | "subscriptFour" | "subscriptFive" | "subscriptSix" | "subscriptSeven" | "subscriptEight" | "subscriptNine" | "oneHalf" | "oneThird" | "oneQuarter" | "oneFifth" | "oneSixth" | "oneSeventh" | "oneEighth" | "oneNinth" | "oneTenth" | "twoThirds" | "twoFifths" | "threeQuarters" | "threeFifths" | "threeEighths" | "fourFifths" | "fiveSixths" | "fiveEighths" | "sevenEighth" | "line" | "lineBold" | "lineDouble" | "lineDashed0" | "lineDashed1" | "lineDashed2" | "lineDashed3" | "lineDashed4" | "lineDashed5" | "lineDashed6" | "lineDashed7" | "lineDashed8" | "lineDashed9" | "lineDashed10" | "lineDashed11" | "lineDashed12" | "lineDashed13" | "lineDashed14" | "lineDashed15" | "lineVertical" | "lineVerticalBold" | "lineVerticalDouble" | "lineVerticalDashed0" | "lineVerticalDashed1" | "lineVerticalDashed2" | "lineVerticalDashed3" | "lineVerticalDashed4" | "lineVerticalDashed5" | "lineVerticalDashed6" | "lineVerticalDashed7" | "lineVerticalDashed8" | "lineVerticalDashed9" | "lineVerticalDashed10" | "lineVerticalDashed11" | "lineDownLeft" | "lineDownLeftArc" | "lineDownBoldLeftBold" | "lineDownBoldLeft" | "lineDownLeftBold" | "lineDownDoubleLeftDouble" | "lineDownDoubleLeft" | "lineDownLeftDouble" | "lineDownRight" | "lineDownRightArc" | "lineDownBoldRightBold" | "lineDownBoldRight" | "lineDownRightBold" | "lineDownDoubleRightDouble" | "lineDownDoubleRight" | "lineDownRightDouble" | "lineUpLeft" | "lineUpLeftArc" | "lineUpBoldLeftBold" | "lineUpBoldLeft" | "lineUpLeftBold" | "lineUpDoubleLeftDouble" | "lineUpDoubleLeft" | "lineUpLeftDouble" | "lineUpRight" | "lineUpRightArc" | "lineUpBoldRightBold" | "lineUpBoldRight" | "lineUpRightBold" | "lineUpDoubleRightDouble" | "lineUpDoubleRight" | "lineUpRightDouble" | "lineUpDownLeft" | "lineUpBoldDownBoldLeftBold" | "lineUpBoldDownBoldLeft" | "lineUpDownLeftBold" | "lineUpBoldDownLeftBold" | "lineUpDownBoldLeftBold" | "lineUpDownBoldLeft" | "lineUpBoldDownLeft" | "lineUpDoubleDownDoubleLeftDouble" | "lineUpDoubleDownDoubleLeft" | "lineUpDownLeftDouble" | "lineUpDownRight" | "lineUpBoldDownBoldRightBold" | "lineUpBoldDownBoldRight" | "lineUpDownRightBold" | "lineUpBoldDownRightBold" | "lineUpDownBoldRightBold" | "lineUpDownBoldRight" | "lineUpBoldDownRight" | "lineUpDoubleDownDoubleRightDouble" | "lineUpDoubleDownDoubleRight" | "lineUpDownRightDouble" | "lineDownLeftRight" | "lineDownBoldLeftBoldRightBold" | "lineDownLeftBoldRightBold" | "lineDownBoldLeftRight" | "lineDownBoldLeftBoldRight" | "lineDownBoldLeftRightBold" | "lineDownLeftRightBold" | "lineDownLeftBoldRight" | "lineDownDoubleLeftDoubleRightDouble" | "lineDownDoubleLeftRight" | "lineDownLeftDoubleRightDouble" | "lineUpLeftRight" | "lineUpBoldLeftBoldRightBold" | "lineUpLeftBoldRightBold" | "lineUpBoldLeftRight" | "lineUpBoldLeftBoldRight" | "lineUpBoldLeftRightBold" | "lineUpLeftRightBold" | "lineUpLeftBoldRight" | "lineUpDoubleLeftDoubleRightDouble" | "lineUpDoubleLeftRight" | "lineUpLeftDoubleRightDouble" | "lineUpDownLeftRight" | "lineUpBoldDownBoldLeftBoldRightBold" | "lineUpDownBoldLeftBoldRightBold" | "lineUpBoldDownLeftBoldRightBold" | "lineUpBoldDownBoldLeftRightBold" | "lineUpBoldDownBoldLeftBoldRight" | "lineUpBoldDownLeftRight" | "lineUpDownBoldLeftRight" | "lineUpDownLeftBoldRight" | "lineUpDownLeftRightBold" | "lineUpBoldDownBoldLeftRight" | "lineUpDownLeftBoldRightBold" | "lineUpBoldDownLeftBoldRight" | "lineUpBoldDownLeftRightBold" | "lineUpDownBoldLeftBoldRight" | "lineUpDownBoldLeftRightBold" | "lineUpDoubleDownDoubleLeftDoubleRightDouble" | "lineUpDoubleDownDoubleLeftRight" | "lineUpDownLeftDoubleRightDouble" | "lineCross" | "lineBackslash" | "lineSlash") | "";
200
- header?: import('chalk-string').Styles | "";
201
- classes?: {
202
- readonly [errorName: string]: Omit<import('beautiful-error').Options, "classes">;
203
- } & {
204
- readonly [errorName: string]: Omit<import('handle-cli-error').Options, "classes">;
205
- };
206
- exitCode?: number;
207
- silent?: boolean;
208
- timeout?: number;
209
- log?: (message: string) => void;
210
- };
211
- instanceMethods: {
212
- exit: ({ error, options }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => void;
213
- pretty: ({ error, options: { exitCode, silent, timeout, log, ...beautifulErrorOptions }, }: import('modern-errors').Info<import('modern-errors-cli').Options>["instanceMethods"]) => string;
214
- };
215
- }[], {
216
- phase: string;
217
- isDefect: boolean;
218
- exitCode: number;
219
- }, import('modern-errors').CustomClass>;
220
- /**
221
- * Wrap an async entry point with a defect boundary.
222
- *
223
- * If the wrapped function throws an exception (i.e. a defect that was not
224
- * captured as a Result), it is caught, wrapped in a DefectError, and printed
225
- * via BaseError.exit().
226
- *
227
- * @param fn - The entry point function to wrap
228
- * @throws {DefectError} If an unexpected exception occurs during execution
229
- */
230
- export declare function withDefectBoundary(fn: () => Promise<void>): Promise<void>;
@@ -1,7 +0,0 @@
1
- import { BaseError } from './errors';
2
- /** A non-fatal issue encountered during component extraction. */
3
- export interface ExtractionError {
4
- componentName: string;
5
- phase: 'render' | 'coupling' | 'css' | 'loader' | 'conversion';
6
- error: InstanceType<typeof BaseError>;
7
- }
@@ -1,3 +0,0 @@
1
- export { parseCss } from './parse';
2
- export { matchCssSelectors } from './selector-matcher';
3
- export type { CSSParserAPI } from './types';
@@ -1,7 +0,0 @@
1
- import { CSSParserAPI } from './types';
2
- /**
3
- * Factory function that parses CSS and returns an API to query the parsed result
4
- * @param cssString - The CSS file content as a string
5
- * @returns API object with methods to query the parsed CSS
6
- */
7
- export declare function parseCss(cssString: string): CSSParserAPI;
@@ -1,2 +0,0 @@
1
- import { Result } from 'neverthrow';
2
- export declare function compileSass(filePath: string): Result<string, Error>;