design-constraint-validator 2.1.0 → 2.2.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 (78) hide show
  1. package/README.md +17 -6
  2. package/cli/commands/build.d.ts.map +1 -1
  3. package/cli/commands/build.js +32 -24
  4. package/cli/commands/build.ts +26 -17
  5. package/cli/commands/graph.d.ts.map +1 -1
  6. package/cli/commands/graph.js +33 -16
  7. package/cli/commands/graph.ts +28 -15
  8. package/cli/commands/patch-apply.d.ts.map +1 -1
  9. package/cli/commands/patch-apply.js +4 -1
  10. package/cli/commands/patch-apply.ts +4 -1
  11. package/cli/commands/set.d.ts.map +1 -1
  12. package/cli/commands/set.js +18 -19
  13. package/cli/commands/set.ts +19 -19
  14. package/cli/commands/utils.d.ts +1 -0
  15. package/cli/commands/utils.d.ts.map +1 -1
  16. package/cli/commands/utils.js +20 -1
  17. package/cli/commands/utils.ts +23 -1
  18. package/cli/commands/validate.d.ts.map +1 -1
  19. package/cli/commands/validate.js +5 -17
  20. package/cli/commands/validate.ts +10 -18
  21. package/cli/commands/why.d.ts.map +1 -1
  22. package/cli/commands/why.js +22 -10
  23. package/cli/commands/why.ts +20 -9
  24. package/cli/config-schema.d.ts +144 -178
  25. package/cli/config-schema.d.ts.map +1 -1
  26. package/cli/config-schema.js +25 -5
  27. package/cli/config-schema.ts +27 -5
  28. package/cli/constraint-registry.d.ts.map +1 -1
  29. package/cli/constraint-registry.js +53 -15
  30. package/cli/constraint-registry.ts +53 -18
  31. package/cli/cross-axis-loader.d.ts +62 -0
  32. package/cli/cross-axis-loader.d.ts.map +1 -1
  33. package/cli/cross-axis-loader.js +186 -31
  34. package/cli/cross-axis-loader.ts +199 -24
  35. package/cli/dcv.js +23 -1
  36. package/cli/dcv.ts +23 -1
  37. package/cli/types.d.ts +19 -9
  38. package/cli/types.d.ts.map +1 -1
  39. package/cli/types.ts +23 -10
  40. package/cli/validate-api.d.ts.map +1 -1
  41. package/cli/validate-api.js +6 -1
  42. package/cli/validate-api.ts +6 -1
  43. package/core/constraints/cross-axis.d.ts.map +1 -1
  44. package/core/constraints/cross-axis.js +37 -9
  45. package/core/constraints/cross-axis.ts +37 -9
  46. package/core/constraints/monotonic.d.ts.map +1 -1
  47. package/core/constraints/monotonic.js +32 -8
  48. package/core/constraints/monotonic.ts +29 -8
  49. package/core/constraints/threshold.d.ts.map +1 -1
  50. package/core/constraints/threshold.js +24 -4
  51. package/core/constraints/threshold.ts +23 -4
  52. package/core/constraints/wcag.js +1 -1
  53. package/core/constraints/wcag.ts +1 -1
  54. package/core/flatten.d.ts.map +1 -1
  55. package/core/flatten.js +8 -0
  56. package/core/flatten.ts +9 -0
  57. package/core/poset.d.ts +6 -1
  58. package/core/poset.d.ts.map +1 -1
  59. package/core/poset.js +7 -2
  60. package/core/poset.ts +7 -2
  61. package/mcp/contracts.d.ts +1456 -13
  62. package/mcp/contracts.d.ts.map +1 -1
  63. package/mcp/contracts.js +45 -1
  64. package/mcp/contracts.ts +55 -1
  65. package/mcp/index.d.ts +6 -4
  66. package/mcp/index.d.ts.map +1 -1
  67. package/mcp/index.js +6 -3
  68. package/mcp/index.ts +28 -1
  69. package/mcp/insights.d.ts +94 -0
  70. package/mcp/insights.d.ts.map +1 -0
  71. package/mcp/insights.js +445 -0
  72. package/mcp/insights.ts +541 -0
  73. package/mcp/tools.d.ts +14 -3
  74. package/mcp/tools.d.ts.map +1 -1
  75. package/mcp/tools.js +133 -6
  76. package/mcp/tools.ts +188 -11
  77. package/package.json +1 -6
  78. package/server.json +2 -2
@@ -9,7 +9,82 @@ export declare const jsonObjectSchema: z.ZodType<JsonObject>;
9
9
  export declare const tokenInputShape: {
10
10
  tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
11
11
  tokensPath: z.ZodOptional<z.ZodString>;
12
- constraints: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
12
+ constraints: z.ZodOptional<z.ZodObject<{
13
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
14
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
15
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
16
+ foreground: z.ZodString;
17
+ background: z.ZodString;
18
+ ratio: z.ZodOptional<z.ZodNumber>;
19
+ description: z.ZodOptional<z.ZodString>;
20
+ backdrop: z.ZodOptional<z.ZodString>;
21
+ }, "strict", z.ZodTypeAny, {
22
+ foreground: string;
23
+ background: string;
24
+ description?: string | undefined;
25
+ ratio?: number | undefined;
26
+ backdrop?: string | undefined;
27
+ }, {
28
+ foreground: string;
29
+ background: string;
30
+ description?: string | undefined;
31
+ ratio?: number | undefined;
32
+ backdrop?: string | undefined;
33
+ }>, "many">>;
34
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ id: z.ZodString;
36
+ op: z.ZodEnum<["<=", ">="]>;
37
+ valuePx: z.ZodNumber;
38
+ where: z.ZodOptional<z.ZodString>;
39
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
40
+ }, "strict", z.ZodTypeAny, {
41
+ id: string;
42
+ op: "<=" | ">=";
43
+ valuePx: number;
44
+ where?: string | undefined;
45
+ level?: "error" | "warn" | undefined;
46
+ }, {
47
+ id: string;
48
+ op: "<=" | ">=";
49
+ valuePx: number;
50
+ where?: string | undefined;
51
+ level?: "error" | "warn" | undefined;
52
+ }>, "many">>;
53
+ }, "strict", z.ZodTypeAny, {
54
+ enableBuiltInWcagDefaults?: boolean | undefined;
55
+ enableBuiltInThreshold?: boolean | undefined;
56
+ wcag?: {
57
+ foreground: string;
58
+ background: string;
59
+ description?: string | undefined;
60
+ ratio?: number | undefined;
61
+ backdrop?: string | undefined;
62
+ }[] | undefined;
63
+ thresholds?: {
64
+ id: string;
65
+ op: "<=" | ">=";
66
+ valuePx: number;
67
+ where?: string | undefined;
68
+ level?: "error" | "warn" | undefined;
69
+ }[] | undefined;
70
+ }, {
71
+ enableBuiltInWcagDefaults?: boolean | undefined;
72
+ enableBuiltInThreshold?: boolean | undefined;
73
+ wcag?: {
74
+ foreground: string;
75
+ background: string;
76
+ description?: string | undefined;
77
+ ratio?: number | undefined;
78
+ backdrop?: string | undefined;
79
+ }[] | undefined;
80
+ thresholds?: {
81
+ id: string;
82
+ op: "<=" | ">=";
83
+ valuePx: number;
84
+ where?: string | undefined;
85
+ level?: "error" | "warn" | undefined;
86
+ }[] | undefined;
87
+ }>>;
13
88
  configPath: z.ZodOptional<z.ZodString>;
14
89
  constraintsDir: z.ZodOptional<z.ZodString>;
15
90
  breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
@@ -17,7 +92,82 @@ export declare const tokenInputShape: {
17
92
  export declare const validateInputShape: {
18
93
  tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
19
94
  tokensPath: z.ZodOptional<z.ZodString>;
20
- constraints: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
95
+ constraints: z.ZodOptional<z.ZodObject<{
96
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
97
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
98
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
99
+ foreground: z.ZodString;
100
+ background: z.ZodString;
101
+ ratio: z.ZodOptional<z.ZodNumber>;
102
+ description: z.ZodOptional<z.ZodString>;
103
+ backdrop: z.ZodOptional<z.ZodString>;
104
+ }, "strict", z.ZodTypeAny, {
105
+ foreground: string;
106
+ background: string;
107
+ description?: string | undefined;
108
+ ratio?: number | undefined;
109
+ backdrop?: string | undefined;
110
+ }, {
111
+ foreground: string;
112
+ background: string;
113
+ description?: string | undefined;
114
+ ratio?: number | undefined;
115
+ backdrop?: string | undefined;
116
+ }>, "many">>;
117
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
+ id: z.ZodString;
119
+ op: z.ZodEnum<["<=", ">="]>;
120
+ valuePx: z.ZodNumber;
121
+ where: z.ZodOptional<z.ZodString>;
122
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
123
+ }, "strict", z.ZodTypeAny, {
124
+ id: string;
125
+ op: "<=" | ">=";
126
+ valuePx: number;
127
+ where?: string | undefined;
128
+ level?: "error" | "warn" | undefined;
129
+ }, {
130
+ id: string;
131
+ op: "<=" | ">=";
132
+ valuePx: number;
133
+ where?: string | undefined;
134
+ level?: "error" | "warn" | undefined;
135
+ }>, "many">>;
136
+ }, "strict", z.ZodTypeAny, {
137
+ enableBuiltInWcagDefaults?: boolean | undefined;
138
+ enableBuiltInThreshold?: boolean | undefined;
139
+ wcag?: {
140
+ foreground: string;
141
+ background: string;
142
+ description?: string | undefined;
143
+ ratio?: number | undefined;
144
+ backdrop?: string | undefined;
145
+ }[] | undefined;
146
+ thresholds?: {
147
+ id: string;
148
+ op: "<=" | ">=";
149
+ valuePx: number;
150
+ where?: string | undefined;
151
+ level?: "error" | "warn" | undefined;
152
+ }[] | undefined;
153
+ }, {
154
+ enableBuiltInWcagDefaults?: boolean | undefined;
155
+ enableBuiltInThreshold?: boolean | undefined;
156
+ wcag?: {
157
+ foreground: string;
158
+ background: string;
159
+ description?: string | undefined;
160
+ ratio?: number | undefined;
161
+ backdrop?: string | undefined;
162
+ }[] | undefined;
163
+ thresholds?: {
164
+ id: string;
165
+ op: "<=" | ">=";
166
+ valuePx: number;
167
+ where?: string | undefined;
168
+ level?: "error" | "warn" | undefined;
169
+ }[] | undefined;
170
+ }>>;
21
171
  configPath: z.ZodOptional<z.ZodString>;
22
172
  constraintsDir: z.ZodOptional<z.ZodString>;
23
173
  breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
@@ -26,7 +176,82 @@ export declare const whyInputShape: {
26
176
  tokenId: z.ZodString;
27
177
  tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
28
178
  tokensPath: z.ZodOptional<z.ZodString>;
29
- constraints: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
179
+ constraints: z.ZodOptional<z.ZodObject<{
180
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
181
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
182
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
183
+ foreground: z.ZodString;
184
+ background: z.ZodString;
185
+ ratio: z.ZodOptional<z.ZodNumber>;
186
+ description: z.ZodOptional<z.ZodString>;
187
+ backdrop: z.ZodOptional<z.ZodString>;
188
+ }, "strict", z.ZodTypeAny, {
189
+ foreground: string;
190
+ background: string;
191
+ description?: string | undefined;
192
+ ratio?: number | undefined;
193
+ backdrop?: string | undefined;
194
+ }, {
195
+ foreground: string;
196
+ background: string;
197
+ description?: string | undefined;
198
+ ratio?: number | undefined;
199
+ backdrop?: string | undefined;
200
+ }>, "many">>;
201
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
202
+ id: z.ZodString;
203
+ op: z.ZodEnum<["<=", ">="]>;
204
+ valuePx: z.ZodNumber;
205
+ where: z.ZodOptional<z.ZodString>;
206
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
207
+ }, "strict", z.ZodTypeAny, {
208
+ id: string;
209
+ op: "<=" | ">=";
210
+ valuePx: number;
211
+ where?: string | undefined;
212
+ level?: "error" | "warn" | undefined;
213
+ }, {
214
+ id: string;
215
+ op: "<=" | ">=";
216
+ valuePx: number;
217
+ where?: string | undefined;
218
+ level?: "error" | "warn" | undefined;
219
+ }>, "many">>;
220
+ }, "strict", z.ZodTypeAny, {
221
+ enableBuiltInWcagDefaults?: boolean | undefined;
222
+ enableBuiltInThreshold?: boolean | undefined;
223
+ wcag?: {
224
+ foreground: string;
225
+ background: string;
226
+ description?: string | undefined;
227
+ ratio?: number | undefined;
228
+ backdrop?: string | undefined;
229
+ }[] | undefined;
230
+ thresholds?: {
231
+ id: string;
232
+ op: "<=" | ">=";
233
+ valuePx: number;
234
+ where?: string | undefined;
235
+ level?: "error" | "warn" | undefined;
236
+ }[] | undefined;
237
+ }, {
238
+ enableBuiltInWcagDefaults?: boolean | undefined;
239
+ enableBuiltInThreshold?: boolean | undefined;
240
+ wcag?: {
241
+ foreground: string;
242
+ background: string;
243
+ description?: string | undefined;
244
+ ratio?: number | undefined;
245
+ backdrop?: string | undefined;
246
+ }[] | undefined;
247
+ thresholds?: {
248
+ id: string;
249
+ op: "<=" | ">=";
250
+ valuePx: number;
251
+ where?: string | undefined;
252
+ level?: "error" | "warn" | undefined;
253
+ }[] | undefined;
254
+ }>>;
30
255
  configPath: z.ZodOptional<z.ZodString>;
31
256
  constraintsDir: z.ZodOptional<z.ZodString>;
32
257
  breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
@@ -35,7 +260,404 @@ export declare const graphInputShape: {
35
260
  format: z.ZodOptional<z.ZodLiteral<"json">>;
36
261
  tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
37
262
  tokensPath: z.ZodOptional<z.ZodString>;
38
- constraints: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
263
+ constraints: z.ZodOptional<z.ZodObject<{
264
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
265
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
266
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
267
+ foreground: z.ZodString;
268
+ background: z.ZodString;
269
+ ratio: z.ZodOptional<z.ZodNumber>;
270
+ description: z.ZodOptional<z.ZodString>;
271
+ backdrop: z.ZodOptional<z.ZodString>;
272
+ }, "strict", z.ZodTypeAny, {
273
+ foreground: string;
274
+ background: string;
275
+ description?: string | undefined;
276
+ ratio?: number | undefined;
277
+ backdrop?: string | undefined;
278
+ }, {
279
+ foreground: string;
280
+ background: string;
281
+ description?: string | undefined;
282
+ ratio?: number | undefined;
283
+ backdrop?: string | undefined;
284
+ }>, "many">>;
285
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
286
+ id: z.ZodString;
287
+ op: z.ZodEnum<["<=", ">="]>;
288
+ valuePx: z.ZodNumber;
289
+ where: z.ZodOptional<z.ZodString>;
290
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
291
+ }, "strict", z.ZodTypeAny, {
292
+ id: string;
293
+ op: "<=" | ">=";
294
+ valuePx: number;
295
+ where?: string | undefined;
296
+ level?: "error" | "warn" | undefined;
297
+ }, {
298
+ id: string;
299
+ op: "<=" | ">=";
300
+ valuePx: number;
301
+ where?: string | undefined;
302
+ level?: "error" | "warn" | undefined;
303
+ }>, "many">>;
304
+ }, "strict", z.ZodTypeAny, {
305
+ enableBuiltInWcagDefaults?: boolean | undefined;
306
+ enableBuiltInThreshold?: boolean | undefined;
307
+ wcag?: {
308
+ foreground: string;
309
+ background: string;
310
+ description?: string | undefined;
311
+ ratio?: number | undefined;
312
+ backdrop?: string | undefined;
313
+ }[] | undefined;
314
+ thresholds?: {
315
+ id: string;
316
+ op: "<=" | ">=";
317
+ valuePx: number;
318
+ where?: string | undefined;
319
+ level?: "error" | "warn" | undefined;
320
+ }[] | undefined;
321
+ }, {
322
+ enableBuiltInWcagDefaults?: boolean | undefined;
323
+ enableBuiltInThreshold?: boolean | undefined;
324
+ wcag?: {
325
+ foreground: string;
326
+ background: string;
327
+ description?: string | undefined;
328
+ ratio?: number | undefined;
329
+ backdrop?: string | undefined;
330
+ }[] | undefined;
331
+ thresholds?: {
332
+ id: string;
333
+ op: "<=" | ">=";
334
+ valuePx: number;
335
+ where?: string | undefined;
336
+ level?: "error" | "warn" | undefined;
337
+ }[] | undefined;
338
+ }>>;
339
+ configPath: z.ZodOptional<z.ZodString>;
340
+ constraintsDir: z.ZodOptional<z.ZodString>;
341
+ breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
342
+ };
343
+ export declare const violationInputSchema: z.ZodObject<{
344
+ ruleId: z.ZodString;
345
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
346
+ message: z.ZodOptional<z.ZodString>;
347
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
348
+ edges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">>;
349
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ ruleId: string;
352
+ message?: string | undefined;
353
+ level?: "error" | "warn" | undefined;
354
+ nodes?: string[] | undefined;
355
+ edges?: [string, string][] | undefined;
356
+ context?: Record<string, unknown> | undefined;
357
+ }, {
358
+ ruleId: string;
359
+ message?: string | undefined;
360
+ level?: "error" | "warn" | undefined;
361
+ nodes?: string[] | undefined;
362
+ edges?: [string, string][] | undefined;
363
+ context?: Record<string, unknown> | undefined;
364
+ }>;
365
+ export declare const listConstraintsInputShape: {
366
+ tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
367
+ tokensPath: z.ZodOptional<z.ZodString>;
368
+ constraints: z.ZodOptional<z.ZodObject<{
369
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
370
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
371
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
372
+ foreground: z.ZodString;
373
+ background: z.ZodString;
374
+ ratio: z.ZodOptional<z.ZodNumber>;
375
+ description: z.ZodOptional<z.ZodString>;
376
+ backdrop: z.ZodOptional<z.ZodString>;
377
+ }, "strict", z.ZodTypeAny, {
378
+ foreground: string;
379
+ background: string;
380
+ description?: string | undefined;
381
+ ratio?: number | undefined;
382
+ backdrop?: string | undefined;
383
+ }, {
384
+ foreground: string;
385
+ background: string;
386
+ description?: string | undefined;
387
+ ratio?: number | undefined;
388
+ backdrop?: string | undefined;
389
+ }>, "many">>;
390
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
391
+ id: z.ZodString;
392
+ op: z.ZodEnum<["<=", ">="]>;
393
+ valuePx: z.ZodNumber;
394
+ where: z.ZodOptional<z.ZodString>;
395
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
396
+ }, "strict", z.ZodTypeAny, {
397
+ id: string;
398
+ op: "<=" | ">=";
399
+ valuePx: number;
400
+ where?: string | undefined;
401
+ level?: "error" | "warn" | undefined;
402
+ }, {
403
+ id: string;
404
+ op: "<=" | ">=";
405
+ valuePx: number;
406
+ where?: string | undefined;
407
+ level?: "error" | "warn" | undefined;
408
+ }>, "many">>;
409
+ }, "strict", z.ZodTypeAny, {
410
+ enableBuiltInWcagDefaults?: boolean | undefined;
411
+ enableBuiltInThreshold?: boolean | undefined;
412
+ wcag?: {
413
+ foreground: string;
414
+ background: string;
415
+ description?: string | undefined;
416
+ ratio?: number | undefined;
417
+ backdrop?: string | undefined;
418
+ }[] | undefined;
419
+ thresholds?: {
420
+ id: string;
421
+ op: "<=" | ">=";
422
+ valuePx: number;
423
+ where?: string | undefined;
424
+ level?: "error" | "warn" | undefined;
425
+ }[] | undefined;
426
+ }, {
427
+ enableBuiltInWcagDefaults?: boolean | undefined;
428
+ enableBuiltInThreshold?: boolean | undefined;
429
+ wcag?: {
430
+ foreground: string;
431
+ background: string;
432
+ description?: string | undefined;
433
+ ratio?: number | undefined;
434
+ backdrop?: string | undefined;
435
+ }[] | undefined;
436
+ thresholds?: {
437
+ id: string;
438
+ op: "<=" | ">=";
439
+ valuePx: number;
440
+ where?: string | undefined;
441
+ level?: "error" | "warn" | undefined;
442
+ }[] | undefined;
443
+ }>>;
444
+ configPath: z.ZodOptional<z.ZodString>;
445
+ constraintsDir: z.ZodOptional<z.ZodString>;
446
+ breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
447
+ };
448
+ export declare const explainInputShape: {
449
+ violation: z.ZodOptional<z.ZodObject<{
450
+ ruleId: z.ZodString;
451
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
452
+ message: z.ZodOptional<z.ZodString>;
453
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
454
+ edges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">>;
455
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ ruleId: string;
458
+ message?: string | undefined;
459
+ level?: "error" | "warn" | undefined;
460
+ nodes?: string[] | undefined;
461
+ edges?: [string, string][] | undefined;
462
+ context?: Record<string, unknown> | undefined;
463
+ }, {
464
+ ruleId: string;
465
+ message?: string | undefined;
466
+ level?: "error" | "warn" | undefined;
467
+ nodes?: string[] | undefined;
468
+ edges?: [string, string][] | undefined;
469
+ context?: Record<string, unknown> | undefined;
470
+ }>>;
471
+ ruleId: z.ZodOptional<z.ZodString>;
472
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
473
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
474
+ tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
475
+ tokensPath: z.ZodOptional<z.ZodString>;
476
+ constraints: z.ZodOptional<z.ZodObject<{
477
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
478
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
479
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
480
+ foreground: z.ZodString;
481
+ background: z.ZodString;
482
+ ratio: z.ZodOptional<z.ZodNumber>;
483
+ description: z.ZodOptional<z.ZodString>;
484
+ backdrop: z.ZodOptional<z.ZodString>;
485
+ }, "strict", z.ZodTypeAny, {
486
+ foreground: string;
487
+ background: string;
488
+ description?: string | undefined;
489
+ ratio?: number | undefined;
490
+ backdrop?: string | undefined;
491
+ }, {
492
+ foreground: string;
493
+ background: string;
494
+ description?: string | undefined;
495
+ ratio?: number | undefined;
496
+ backdrop?: string | undefined;
497
+ }>, "many">>;
498
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
499
+ id: z.ZodString;
500
+ op: z.ZodEnum<["<=", ">="]>;
501
+ valuePx: z.ZodNumber;
502
+ where: z.ZodOptional<z.ZodString>;
503
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
504
+ }, "strict", z.ZodTypeAny, {
505
+ id: string;
506
+ op: "<=" | ">=";
507
+ valuePx: number;
508
+ where?: string | undefined;
509
+ level?: "error" | "warn" | undefined;
510
+ }, {
511
+ id: string;
512
+ op: "<=" | ">=";
513
+ valuePx: number;
514
+ where?: string | undefined;
515
+ level?: "error" | "warn" | undefined;
516
+ }>, "many">>;
517
+ }, "strict", z.ZodTypeAny, {
518
+ enableBuiltInWcagDefaults?: boolean | undefined;
519
+ enableBuiltInThreshold?: boolean | undefined;
520
+ wcag?: {
521
+ foreground: string;
522
+ background: string;
523
+ description?: string | undefined;
524
+ ratio?: number | undefined;
525
+ backdrop?: string | undefined;
526
+ }[] | undefined;
527
+ thresholds?: {
528
+ id: string;
529
+ op: "<=" | ">=";
530
+ valuePx: number;
531
+ where?: string | undefined;
532
+ level?: "error" | "warn" | undefined;
533
+ }[] | undefined;
534
+ }, {
535
+ enableBuiltInWcagDefaults?: boolean | undefined;
536
+ enableBuiltInThreshold?: boolean | undefined;
537
+ wcag?: {
538
+ foreground: string;
539
+ background: string;
540
+ description?: string | undefined;
541
+ ratio?: number | undefined;
542
+ backdrop?: string | undefined;
543
+ }[] | undefined;
544
+ thresholds?: {
545
+ id: string;
546
+ op: "<=" | ">=";
547
+ valuePx: number;
548
+ where?: string | undefined;
549
+ level?: "error" | "warn" | undefined;
550
+ }[] | undefined;
551
+ }>>;
552
+ configPath: z.ZodOptional<z.ZodString>;
553
+ constraintsDir: z.ZodOptional<z.ZodString>;
554
+ breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
555
+ };
556
+ export declare const suggestFixInputShape: {
557
+ target: z.ZodOptional<z.ZodEnum<["foreground", "background"]>>;
558
+ violation: z.ZodOptional<z.ZodObject<{
559
+ ruleId: z.ZodString;
560
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
561
+ message: z.ZodOptional<z.ZodString>;
562
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
563
+ edges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">>;
564
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
565
+ }, "strip", z.ZodTypeAny, {
566
+ ruleId: string;
567
+ message?: string | undefined;
568
+ level?: "error" | "warn" | undefined;
569
+ nodes?: string[] | undefined;
570
+ edges?: [string, string][] | undefined;
571
+ context?: Record<string, unknown> | undefined;
572
+ }, {
573
+ ruleId: string;
574
+ message?: string | undefined;
575
+ level?: "error" | "warn" | undefined;
576
+ nodes?: string[] | undefined;
577
+ edges?: [string, string][] | undefined;
578
+ context?: Record<string, unknown> | undefined;
579
+ }>>;
580
+ ruleId: z.ZodOptional<z.ZodString>;
581
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
582
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
583
+ tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
584
+ tokensPath: z.ZodOptional<z.ZodString>;
585
+ constraints: z.ZodOptional<z.ZodObject<{
586
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
587
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
588
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
589
+ foreground: z.ZodString;
590
+ background: z.ZodString;
591
+ ratio: z.ZodOptional<z.ZodNumber>;
592
+ description: z.ZodOptional<z.ZodString>;
593
+ backdrop: z.ZodOptional<z.ZodString>;
594
+ }, "strict", z.ZodTypeAny, {
595
+ foreground: string;
596
+ background: string;
597
+ description?: string | undefined;
598
+ ratio?: number | undefined;
599
+ backdrop?: string | undefined;
600
+ }, {
601
+ foreground: string;
602
+ background: string;
603
+ description?: string | undefined;
604
+ ratio?: number | undefined;
605
+ backdrop?: string | undefined;
606
+ }>, "many">>;
607
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
608
+ id: z.ZodString;
609
+ op: z.ZodEnum<["<=", ">="]>;
610
+ valuePx: z.ZodNumber;
611
+ where: z.ZodOptional<z.ZodString>;
612
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
613
+ }, "strict", z.ZodTypeAny, {
614
+ id: string;
615
+ op: "<=" | ">=";
616
+ valuePx: number;
617
+ where?: string | undefined;
618
+ level?: "error" | "warn" | undefined;
619
+ }, {
620
+ id: string;
621
+ op: "<=" | ">=";
622
+ valuePx: number;
623
+ where?: string | undefined;
624
+ level?: "error" | "warn" | undefined;
625
+ }>, "many">>;
626
+ }, "strict", z.ZodTypeAny, {
627
+ enableBuiltInWcagDefaults?: boolean | undefined;
628
+ enableBuiltInThreshold?: boolean | undefined;
629
+ wcag?: {
630
+ foreground: string;
631
+ background: string;
632
+ description?: string | undefined;
633
+ ratio?: number | undefined;
634
+ backdrop?: string | undefined;
635
+ }[] | undefined;
636
+ thresholds?: {
637
+ id: string;
638
+ op: "<=" | ">=";
639
+ valuePx: number;
640
+ where?: string | undefined;
641
+ level?: "error" | "warn" | undefined;
642
+ }[] | undefined;
643
+ }, {
644
+ enableBuiltInWcagDefaults?: boolean | undefined;
645
+ enableBuiltInThreshold?: boolean | undefined;
646
+ wcag?: {
647
+ foreground: string;
648
+ background: string;
649
+ description?: string | undefined;
650
+ ratio?: number | undefined;
651
+ backdrop?: string | undefined;
652
+ }[] | undefined;
653
+ thresholds?: {
654
+ id: string;
655
+ op: "<=" | ">=";
656
+ valuePx: number;
657
+ where?: string | undefined;
658
+ level?: "error" | "warn" | undefined;
659
+ }[] | undefined;
660
+ }>>;
39
661
  configPath: z.ZodOptional<z.ZodString>;
40
662
  constraintsDir: z.ZodOptional<z.ZodString>;
41
663
  breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
@@ -43,20 +665,129 @@ export declare const graphInputShape: {
43
665
  export declare const validateInputSchema: z.ZodObject<{
44
666
  tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
45
667
  tokensPath: z.ZodOptional<z.ZodString>;
46
- constraints: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
668
+ constraints: z.ZodOptional<z.ZodObject<{
669
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
670
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
671
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
672
+ foreground: z.ZodString;
673
+ background: z.ZodString;
674
+ ratio: z.ZodOptional<z.ZodNumber>;
675
+ description: z.ZodOptional<z.ZodString>;
676
+ backdrop: z.ZodOptional<z.ZodString>;
677
+ }, "strict", z.ZodTypeAny, {
678
+ foreground: string;
679
+ background: string;
680
+ description?: string | undefined;
681
+ ratio?: number | undefined;
682
+ backdrop?: string | undefined;
683
+ }, {
684
+ foreground: string;
685
+ background: string;
686
+ description?: string | undefined;
687
+ ratio?: number | undefined;
688
+ backdrop?: string | undefined;
689
+ }>, "many">>;
690
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
691
+ id: z.ZodString;
692
+ op: z.ZodEnum<["<=", ">="]>;
693
+ valuePx: z.ZodNumber;
694
+ where: z.ZodOptional<z.ZodString>;
695
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
696
+ }, "strict", z.ZodTypeAny, {
697
+ id: string;
698
+ op: "<=" | ">=";
699
+ valuePx: number;
700
+ where?: string | undefined;
701
+ level?: "error" | "warn" | undefined;
702
+ }, {
703
+ id: string;
704
+ op: "<=" | ">=";
705
+ valuePx: number;
706
+ where?: string | undefined;
707
+ level?: "error" | "warn" | undefined;
708
+ }>, "many">>;
709
+ }, "strict", z.ZodTypeAny, {
710
+ enableBuiltInWcagDefaults?: boolean | undefined;
711
+ enableBuiltInThreshold?: boolean | undefined;
712
+ wcag?: {
713
+ foreground: string;
714
+ background: string;
715
+ description?: string | undefined;
716
+ ratio?: number | undefined;
717
+ backdrop?: string | undefined;
718
+ }[] | undefined;
719
+ thresholds?: {
720
+ id: string;
721
+ op: "<=" | ">=";
722
+ valuePx: number;
723
+ where?: string | undefined;
724
+ level?: "error" | "warn" | undefined;
725
+ }[] | undefined;
726
+ }, {
727
+ enableBuiltInWcagDefaults?: boolean | undefined;
728
+ enableBuiltInThreshold?: boolean | undefined;
729
+ wcag?: {
730
+ foreground: string;
731
+ background: string;
732
+ description?: string | undefined;
733
+ ratio?: number | undefined;
734
+ backdrop?: string | undefined;
735
+ }[] | undefined;
736
+ thresholds?: {
737
+ id: string;
738
+ op: "<=" | ">=";
739
+ valuePx: number;
740
+ where?: string | undefined;
741
+ level?: "error" | "warn" | undefined;
742
+ }[] | undefined;
743
+ }>>;
47
744
  configPath: z.ZodOptional<z.ZodString>;
48
745
  constraintsDir: z.ZodOptional<z.ZodString>;
49
746
  breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
50
747
  }, "strip", z.ZodTypeAny, {
51
748
  tokens?: JsonObject | undefined;
52
- constraints?: JsonObject | undefined;
749
+ constraints?: {
750
+ enableBuiltInWcagDefaults?: boolean | undefined;
751
+ enableBuiltInThreshold?: boolean | undefined;
752
+ wcag?: {
753
+ foreground: string;
754
+ background: string;
755
+ description?: string | undefined;
756
+ ratio?: number | undefined;
757
+ backdrop?: string | undefined;
758
+ }[] | undefined;
759
+ thresholds?: {
760
+ id: string;
761
+ op: "<=" | ">=";
762
+ valuePx: number;
763
+ where?: string | undefined;
764
+ level?: "error" | "warn" | undefined;
765
+ }[] | undefined;
766
+ } | undefined;
53
767
  constraintsDir?: string | undefined;
54
768
  breakpoint?: "sm" | "md" | "lg" | undefined;
55
769
  tokensPath?: string | undefined;
56
770
  configPath?: string | undefined;
57
771
  }, {
58
772
  tokens?: JsonObject | undefined;
59
- constraints?: JsonObject | undefined;
773
+ constraints?: {
774
+ enableBuiltInWcagDefaults?: boolean | undefined;
775
+ enableBuiltInThreshold?: boolean | undefined;
776
+ wcag?: {
777
+ foreground: string;
778
+ background: string;
779
+ description?: string | undefined;
780
+ ratio?: number | undefined;
781
+ backdrop?: string | undefined;
782
+ }[] | undefined;
783
+ thresholds?: {
784
+ id: string;
785
+ op: "<=" | ">=";
786
+ valuePx: number;
787
+ where?: string | undefined;
788
+ level?: "error" | "warn" | undefined;
789
+ }[] | undefined;
790
+ } | undefined;
60
791
  constraintsDir?: string | undefined;
61
792
  breakpoint?: "sm" | "md" | "lg" | undefined;
62
793
  tokensPath?: string | undefined;
@@ -66,14 +797,106 @@ export declare const whyInputSchema: z.ZodObject<{
66
797
  tokenId: z.ZodString;
67
798
  tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
68
799
  tokensPath: z.ZodOptional<z.ZodString>;
69
- constraints: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
800
+ constraints: z.ZodOptional<z.ZodObject<{
801
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
802
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
803
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
804
+ foreground: z.ZodString;
805
+ background: z.ZodString;
806
+ ratio: z.ZodOptional<z.ZodNumber>;
807
+ description: z.ZodOptional<z.ZodString>;
808
+ backdrop: z.ZodOptional<z.ZodString>;
809
+ }, "strict", z.ZodTypeAny, {
810
+ foreground: string;
811
+ background: string;
812
+ description?: string | undefined;
813
+ ratio?: number | undefined;
814
+ backdrop?: string | undefined;
815
+ }, {
816
+ foreground: string;
817
+ background: string;
818
+ description?: string | undefined;
819
+ ratio?: number | undefined;
820
+ backdrop?: string | undefined;
821
+ }>, "many">>;
822
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
823
+ id: z.ZodString;
824
+ op: z.ZodEnum<["<=", ">="]>;
825
+ valuePx: z.ZodNumber;
826
+ where: z.ZodOptional<z.ZodString>;
827
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
828
+ }, "strict", z.ZodTypeAny, {
829
+ id: string;
830
+ op: "<=" | ">=";
831
+ valuePx: number;
832
+ where?: string | undefined;
833
+ level?: "error" | "warn" | undefined;
834
+ }, {
835
+ id: string;
836
+ op: "<=" | ">=";
837
+ valuePx: number;
838
+ where?: string | undefined;
839
+ level?: "error" | "warn" | undefined;
840
+ }>, "many">>;
841
+ }, "strict", z.ZodTypeAny, {
842
+ enableBuiltInWcagDefaults?: boolean | undefined;
843
+ enableBuiltInThreshold?: boolean | undefined;
844
+ wcag?: {
845
+ foreground: string;
846
+ background: string;
847
+ description?: string | undefined;
848
+ ratio?: number | undefined;
849
+ backdrop?: string | undefined;
850
+ }[] | undefined;
851
+ thresholds?: {
852
+ id: string;
853
+ op: "<=" | ">=";
854
+ valuePx: number;
855
+ where?: string | undefined;
856
+ level?: "error" | "warn" | undefined;
857
+ }[] | undefined;
858
+ }, {
859
+ enableBuiltInWcagDefaults?: boolean | undefined;
860
+ enableBuiltInThreshold?: boolean | undefined;
861
+ wcag?: {
862
+ foreground: string;
863
+ background: string;
864
+ description?: string | undefined;
865
+ ratio?: number | undefined;
866
+ backdrop?: string | undefined;
867
+ }[] | undefined;
868
+ thresholds?: {
869
+ id: string;
870
+ op: "<=" | ">=";
871
+ valuePx: number;
872
+ where?: string | undefined;
873
+ level?: "error" | "warn" | undefined;
874
+ }[] | undefined;
875
+ }>>;
70
876
  configPath: z.ZodOptional<z.ZodString>;
71
877
  constraintsDir: z.ZodOptional<z.ZodString>;
72
878
  breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
73
879
  }, "strip", z.ZodTypeAny, {
74
880
  tokenId: string;
75
881
  tokens?: JsonObject | undefined;
76
- constraints?: JsonObject | undefined;
882
+ constraints?: {
883
+ enableBuiltInWcagDefaults?: boolean | undefined;
884
+ enableBuiltInThreshold?: boolean | undefined;
885
+ wcag?: {
886
+ foreground: string;
887
+ background: string;
888
+ description?: string | undefined;
889
+ ratio?: number | undefined;
890
+ backdrop?: string | undefined;
891
+ }[] | undefined;
892
+ thresholds?: {
893
+ id: string;
894
+ op: "<=" | ">=";
895
+ valuePx: number;
896
+ where?: string | undefined;
897
+ level?: "error" | "warn" | undefined;
898
+ }[] | undefined;
899
+ } | undefined;
77
900
  constraintsDir?: string | undefined;
78
901
  breakpoint?: "sm" | "md" | "lg" | undefined;
79
902
  tokensPath?: string | undefined;
@@ -81,7 +904,24 @@ export declare const whyInputSchema: z.ZodObject<{
81
904
  }, {
82
905
  tokenId: string;
83
906
  tokens?: JsonObject | undefined;
84
- constraints?: JsonObject | undefined;
907
+ constraints?: {
908
+ enableBuiltInWcagDefaults?: boolean | undefined;
909
+ enableBuiltInThreshold?: boolean | undefined;
910
+ wcag?: {
911
+ foreground: string;
912
+ background: string;
913
+ description?: string | undefined;
914
+ ratio?: number | undefined;
915
+ backdrop?: string | undefined;
916
+ }[] | undefined;
917
+ thresholds?: {
918
+ id: string;
919
+ op: "<=" | ">=";
920
+ valuePx: number;
921
+ where?: string | undefined;
922
+ level?: "error" | "warn" | undefined;
923
+ }[] | undefined;
924
+ } | undefined;
85
925
  constraintsDir?: string | undefined;
86
926
  breakpoint?: "sm" | "md" | "lg" | undefined;
87
927
  tokensPath?: string | undefined;
@@ -91,13 +931,105 @@ export declare const graphInputSchema: z.ZodObject<{
91
931
  format: z.ZodOptional<z.ZodLiteral<"json">>;
92
932
  tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
93
933
  tokensPath: z.ZodOptional<z.ZodString>;
94
- constraints: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
934
+ constraints: z.ZodOptional<z.ZodObject<{
935
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
936
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
937
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
938
+ foreground: z.ZodString;
939
+ background: z.ZodString;
940
+ ratio: z.ZodOptional<z.ZodNumber>;
941
+ description: z.ZodOptional<z.ZodString>;
942
+ backdrop: z.ZodOptional<z.ZodString>;
943
+ }, "strict", z.ZodTypeAny, {
944
+ foreground: string;
945
+ background: string;
946
+ description?: string | undefined;
947
+ ratio?: number | undefined;
948
+ backdrop?: string | undefined;
949
+ }, {
950
+ foreground: string;
951
+ background: string;
952
+ description?: string | undefined;
953
+ ratio?: number | undefined;
954
+ backdrop?: string | undefined;
955
+ }>, "many">>;
956
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
957
+ id: z.ZodString;
958
+ op: z.ZodEnum<["<=", ">="]>;
959
+ valuePx: z.ZodNumber;
960
+ where: z.ZodOptional<z.ZodString>;
961
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
962
+ }, "strict", z.ZodTypeAny, {
963
+ id: string;
964
+ op: "<=" | ">=";
965
+ valuePx: number;
966
+ where?: string | undefined;
967
+ level?: "error" | "warn" | undefined;
968
+ }, {
969
+ id: string;
970
+ op: "<=" | ">=";
971
+ valuePx: number;
972
+ where?: string | undefined;
973
+ level?: "error" | "warn" | undefined;
974
+ }>, "many">>;
975
+ }, "strict", z.ZodTypeAny, {
976
+ enableBuiltInWcagDefaults?: boolean | undefined;
977
+ enableBuiltInThreshold?: boolean | undefined;
978
+ wcag?: {
979
+ foreground: string;
980
+ background: string;
981
+ description?: string | undefined;
982
+ ratio?: number | undefined;
983
+ backdrop?: string | undefined;
984
+ }[] | undefined;
985
+ thresholds?: {
986
+ id: string;
987
+ op: "<=" | ">=";
988
+ valuePx: number;
989
+ where?: string | undefined;
990
+ level?: "error" | "warn" | undefined;
991
+ }[] | undefined;
992
+ }, {
993
+ enableBuiltInWcagDefaults?: boolean | undefined;
994
+ enableBuiltInThreshold?: boolean | undefined;
995
+ wcag?: {
996
+ foreground: string;
997
+ background: string;
998
+ description?: string | undefined;
999
+ ratio?: number | undefined;
1000
+ backdrop?: string | undefined;
1001
+ }[] | undefined;
1002
+ thresholds?: {
1003
+ id: string;
1004
+ op: "<=" | ">=";
1005
+ valuePx: number;
1006
+ where?: string | undefined;
1007
+ level?: "error" | "warn" | undefined;
1008
+ }[] | undefined;
1009
+ }>>;
95
1010
  configPath: z.ZodOptional<z.ZodString>;
96
1011
  constraintsDir: z.ZodOptional<z.ZodString>;
97
1012
  breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
98
1013
  }, "strip", z.ZodTypeAny, {
99
1014
  tokens?: JsonObject | undefined;
100
- constraints?: JsonObject | undefined;
1015
+ constraints?: {
1016
+ enableBuiltInWcagDefaults?: boolean | undefined;
1017
+ enableBuiltInThreshold?: boolean | undefined;
1018
+ wcag?: {
1019
+ foreground: string;
1020
+ background: string;
1021
+ description?: string | undefined;
1022
+ ratio?: number | undefined;
1023
+ backdrop?: string | undefined;
1024
+ }[] | undefined;
1025
+ thresholds?: {
1026
+ id: string;
1027
+ op: "<=" | ">=";
1028
+ valuePx: number;
1029
+ where?: string | undefined;
1030
+ level?: "error" | "warn" | undefined;
1031
+ }[] | undefined;
1032
+ } | undefined;
101
1033
  format?: "json" | undefined;
102
1034
  constraintsDir?: string | undefined;
103
1035
  breakpoint?: "sm" | "md" | "lg" | undefined;
@@ -105,14 +1037,525 @@ export declare const graphInputSchema: z.ZodObject<{
105
1037
  configPath?: string | undefined;
106
1038
  }, {
107
1039
  tokens?: JsonObject | undefined;
108
- constraints?: JsonObject | undefined;
1040
+ constraints?: {
1041
+ enableBuiltInWcagDefaults?: boolean | undefined;
1042
+ enableBuiltInThreshold?: boolean | undefined;
1043
+ wcag?: {
1044
+ foreground: string;
1045
+ background: string;
1046
+ description?: string | undefined;
1047
+ ratio?: number | undefined;
1048
+ backdrop?: string | undefined;
1049
+ }[] | undefined;
1050
+ thresholds?: {
1051
+ id: string;
1052
+ op: "<=" | ">=";
1053
+ valuePx: number;
1054
+ where?: string | undefined;
1055
+ level?: "error" | "warn" | undefined;
1056
+ }[] | undefined;
1057
+ } | undefined;
109
1058
  format?: "json" | undefined;
110
1059
  constraintsDir?: string | undefined;
111
1060
  breakpoint?: "sm" | "md" | "lg" | undefined;
112
1061
  tokensPath?: string | undefined;
113
1062
  configPath?: string | undefined;
114
1063
  }>;
1064
+ export declare const listConstraintsInputSchema: z.ZodObject<{
1065
+ tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
1066
+ tokensPath: z.ZodOptional<z.ZodString>;
1067
+ constraints: z.ZodOptional<z.ZodObject<{
1068
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
1069
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
1070
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
1071
+ foreground: z.ZodString;
1072
+ background: z.ZodString;
1073
+ ratio: z.ZodOptional<z.ZodNumber>;
1074
+ description: z.ZodOptional<z.ZodString>;
1075
+ backdrop: z.ZodOptional<z.ZodString>;
1076
+ }, "strict", z.ZodTypeAny, {
1077
+ foreground: string;
1078
+ background: string;
1079
+ description?: string | undefined;
1080
+ ratio?: number | undefined;
1081
+ backdrop?: string | undefined;
1082
+ }, {
1083
+ foreground: string;
1084
+ background: string;
1085
+ description?: string | undefined;
1086
+ ratio?: number | undefined;
1087
+ backdrop?: string | undefined;
1088
+ }>, "many">>;
1089
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
1090
+ id: z.ZodString;
1091
+ op: z.ZodEnum<["<=", ">="]>;
1092
+ valuePx: z.ZodNumber;
1093
+ where: z.ZodOptional<z.ZodString>;
1094
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
1095
+ }, "strict", z.ZodTypeAny, {
1096
+ id: string;
1097
+ op: "<=" | ">=";
1098
+ valuePx: number;
1099
+ where?: string | undefined;
1100
+ level?: "error" | "warn" | undefined;
1101
+ }, {
1102
+ id: string;
1103
+ op: "<=" | ">=";
1104
+ valuePx: number;
1105
+ where?: string | undefined;
1106
+ level?: "error" | "warn" | undefined;
1107
+ }>, "many">>;
1108
+ }, "strict", z.ZodTypeAny, {
1109
+ enableBuiltInWcagDefaults?: boolean | undefined;
1110
+ enableBuiltInThreshold?: boolean | undefined;
1111
+ wcag?: {
1112
+ foreground: string;
1113
+ background: string;
1114
+ description?: string | undefined;
1115
+ ratio?: number | undefined;
1116
+ backdrop?: string | undefined;
1117
+ }[] | undefined;
1118
+ thresholds?: {
1119
+ id: string;
1120
+ op: "<=" | ">=";
1121
+ valuePx: number;
1122
+ where?: string | undefined;
1123
+ level?: "error" | "warn" | undefined;
1124
+ }[] | undefined;
1125
+ }, {
1126
+ enableBuiltInWcagDefaults?: boolean | undefined;
1127
+ enableBuiltInThreshold?: boolean | undefined;
1128
+ wcag?: {
1129
+ foreground: string;
1130
+ background: string;
1131
+ description?: string | undefined;
1132
+ ratio?: number | undefined;
1133
+ backdrop?: string | undefined;
1134
+ }[] | undefined;
1135
+ thresholds?: {
1136
+ id: string;
1137
+ op: "<=" | ">=";
1138
+ valuePx: number;
1139
+ where?: string | undefined;
1140
+ level?: "error" | "warn" | undefined;
1141
+ }[] | undefined;
1142
+ }>>;
1143
+ configPath: z.ZodOptional<z.ZodString>;
1144
+ constraintsDir: z.ZodOptional<z.ZodString>;
1145
+ breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ tokens?: JsonObject | undefined;
1148
+ constraints?: {
1149
+ enableBuiltInWcagDefaults?: boolean | undefined;
1150
+ enableBuiltInThreshold?: boolean | undefined;
1151
+ wcag?: {
1152
+ foreground: string;
1153
+ background: string;
1154
+ description?: string | undefined;
1155
+ ratio?: number | undefined;
1156
+ backdrop?: string | undefined;
1157
+ }[] | undefined;
1158
+ thresholds?: {
1159
+ id: string;
1160
+ op: "<=" | ">=";
1161
+ valuePx: number;
1162
+ where?: string | undefined;
1163
+ level?: "error" | "warn" | undefined;
1164
+ }[] | undefined;
1165
+ } | undefined;
1166
+ constraintsDir?: string | undefined;
1167
+ breakpoint?: "sm" | "md" | "lg" | undefined;
1168
+ tokensPath?: string | undefined;
1169
+ configPath?: string | undefined;
1170
+ }, {
1171
+ tokens?: JsonObject | undefined;
1172
+ constraints?: {
1173
+ enableBuiltInWcagDefaults?: boolean | undefined;
1174
+ enableBuiltInThreshold?: boolean | undefined;
1175
+ wcag?: {
1176
+ foreground: string;
1177
+ background: string;
1178
+ description?: string | undefined;
1179
+ ratio?: number | undefined;
1180
+ backdrop?: string | undefined;
1181
+ }[] | undefined;
1182
+ thresholds?: {
1183
+ id: string;
1184
+ op: "<=" | ">=";
1185
+ valuePx: number;
1186
+ where?: string | undefined;
1187
+ level?: "error" | "warn" | undefined;
1188
+ }[] | undefined;
1189
+ } | undefined;
1190
+ constraintsDir?: string | undefined;
1191
+ breakpoint?: "sm" | "md" | "lg" | undefined;
1192
+ tokensPath?: string | undefined;
1193
+ configPath?: string | undefined;
1194
+ }>;
1195
+ export declare const explainInputSchema: z.ZodObject<{
1196
+ violation: z.ZodOptional<z.ZodObject<{
1197
+ ruleId: z.ZodString;
1198
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
1199
+ message: z.ZodOptional<z.ZodString>;
1200
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1201
+ edges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">>;
1202
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1203
+ }, "strip", z.ZodTypeAny, {
1204
+ ruleId: string;
1205
+ message?: string | undefined;
1206
+ level?: "error" | "warn" | undefined;
1207
+ nodes?: string[] | undefined;
1208
+ edges?: [string, string][] | undefined;
1209
+ context?: Record<string, unknown> | undefined;
1210
+ }, {
1211
+ ruleId: string;
1212
+ message?: string | undefined;
1213
+ level?: "error" | "warn" | undefined;
1214
+ nodes?: string[] | undefined;
1215
+ edges?: [string, string][] | undefined;
1216
+ context?: Record<string, unknown> | undefined;
1217
+ }>>;
1218
+ ruleId: z.ZodOptional<z.ZodString>;
1219
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1220
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1221
+ tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
1222
+ tokensPath: z.ZodOptional<z.ZodString>;
1223
+ constraints: z.ZodOptional<z.ZodObject<{
1224
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
1225
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
1226
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
1227
+ foreground: z.ZodString;
1228
+ background: z.ZodString;
1229
+ ratio: z.ZodOptional<z.ZodNumber>;
1230
+ description: z.ZodOptional<z.ZodString>;
1231
+ backdrop: z.ZodOptional<z.ZodString>;
1232
+ }, "strict", z.ZodTypeAny, {
1233
+ foreground: string;
1234
+ background: string;
1235
+ description?: string | undefined;
1236
+ ratio?: number | undefined;
1237
+ backdrop?: string | undefined;
1238
+ }, {
1239
+ foreground: string;
1240
+ background: string;
1241
+ description?: string | undefined;
1242
+ ratio?: number | undefined;
1243
+ backdrop?: string | undefined;
1244
+ }>, "many">>;
1245
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
1246
+ id: z.ZodString;
1247
+ op: z.ZodEnum<["<=", ">="]>;
1248
+ valuePx: z.ZodNumber;
1249
+ where: z.ZodOptional<z.ZodString>;
1250
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
1251
+ }, "strict", z.ZodTypeAny, {
1252
+ id: string;
1253
+ op: "<=" | ">=";
1254
+ valuePx: number;
1255
+ where?: string | undefined;
1256
+ level?: "error" | "warn" | undefined;
1257
+ }, {
1258
+ id: string;
1259
+ op: "<=" | ">=";
1260
+ valuePx: number;
1261
+ where?: string | undefined;
1262
+ level?: "error" | "warn" | undefined;
1263
+ }>, "many">>;
1264
+ }, "strict", z.ZodTypeAny, {
1265
+ enableBuiltInWcagDefaults?: boolean | undefined;
1266
+ enableBuiltInThreshold?: boolean | undefined;
1267
+ wcag?: {
1268
+ foreground: string;
1269
+ background: string;
1270
+ description?: string | undefined;
1271
+ ratio?: number | undefined;
1272
+ backdrop?: string | undefined;
1273
+ }[] | undefined;
1274
+ thresholds?: {
1275
+ id: string;
1276
+ op: "<=" | ">=";
1277
+ valuePx: number;
1278
+ where?: string | undefined;
1279
+ level?: "error" | "warn" | undefined;
1280
+ }[] | undefined;
1281
+ }, {
1282
+ enableBuiltInWcagDefaults?: boolean | undefined;
1283
+ enableBuiltInThreshold?: boolean | undefined;
1284
+ wcag?: {
1285
+ foreground: string;
1286
+ background: string;
1287
+ description?: string | undefined;
1288
+ ratio?: number | undefined;
1289
+ backdrop?: string | undefined;
1290
+ }[] | undefined;
1291
+ thresholds?: {
1292
+ id: string;
1293
+ op: "<=" | ">=";
1294
+ valuePx: number;
1295
+ where?: string | undefined;
1296
+ level?: "error" | "warn" | undefined;
1297
+ }[] | undefined;
1298
+ }>>;
1299
+ configPath: z.ZodOptional<z.ZodString>;
1300
+ constraintsDir: z.ZodOptional<z.ZodString>;
1301
+ breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ tokens?: JsonObject | undefined;
1304
+ constraints?: {
1305
+ enableBuiltInWcagDefaults?: boolean | undefined;
1306
+ enableBuiltInThreshold?: boolean | undefined;
1307
+ wcag?: {
1308
+ foreground: string;
1309
+ background: string;
1310
+ description?: string | undefined;
1311
+ ratio?: number | undefined;
1312
+ backdrop?: string | undefined;
1313
+ }[] | undefined;
1314
+ thresholds?: {
1315
+ id: string;
1316
+ op: "<=" | ">=";
1317
+ valuePx: number;
1318
+ where?: string | undefined;
1319
+ level?: "error" | "warn" | undefined;
1320
+ }[] | undefined;
1321
+ } | undefined;
1322
+ nodes?: string[] | undefined;
1323
+ constraintsDir?: string | undefined;
1324
+ violation?: {
1325
+ ruleId: string;
1326
+ message?: string | undefined;
1327
+ level?: "error" | "warn" | undefined;
1328
+ nodes?: string[] | undefined;
1329
+ edges?: [string, string][] | undefined;
1330
+ context?: Record<string, unknown> | undefined;
1331
+ } | undefined;
1332
+ breakpoint?: "sm" | "md" | "lg" | undefined;
1333
+ tokensPath?: string | undefined;
1334
+ ruleId?: string | undefined;
1335
+ context?: Record<string, unknown> | undefined;
1336
+ configPath?: string | undefined;
1337
+ }, {
1338
+ tokens?: JsonObject | undefined;
1339
+ constraints?: {
1340
+ enableBuiltInWcagDefaults?: boolean | undefined;
1341
+ enableBuiltInThreshold?: boolean | undefined;
1342
+ wcag?: {
1343
+ foreground: string;
1344
+ background: string;
1345
+ description?: string | undefined;
1346
+ ratio?: number | undefined;
1347
+ backdrop?: string | undefined;
1348
+ }[] | undefined;
1349
+ thresholds?: {
1350
+ id: string;
1351
+ op: "<=" | ">=";
1352
+ valuePx: number;
1353
+ where?: string | undefined;
1354
+ level?: "error" | "warn" | undefined;
1355
+ }[] | undefined;
1356
+ } | undefined;
1357
+ nodes?: string[] | undefined;
1358
+ constraintsDir?: string | undefined;
1359
+ violation?: {
1360
+ ruleId: string;
1361
+ message?: string | undefined;
1362
+ level?: "error" | "warn" | undefined;
1363
+ nodes?: string[] | undefined;
1364
+ edges?: [string, string][] | undefined;
1365
+ context?: Record<string, unknown> | undefined;
1366
+ } | undefined;
1367
+ breakpoint?: "sm" | "md" | "lg" | undefined;
1368
+ tokensPath?: string | undefined;
1369
+ ruleId?: string | undefined;
1370
+ context?: Record<string, unknown> | undefined;
1371
+ configPath?: string | undefined;
1372
+ }>;
1373
+ export declare const suggestFixInputSchema: z.ZodObject<{
1374
+ target: z.ZodOptional<z.ZodEnum<["foreground", "background"]>>;
1375
+ violation: z.ZodOptional<z.ZodObject<{
1376
+ ruleId: z.ZodString;
1377
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
1378
+ message: z.ZodOptional<z.ZodString>;
1379
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1380
+ edges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">>;
1381
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ ruleId: string;
1384
+ message?: string | undefined;
1385
+ level?: "error" | "warn" | undefined;
1386
+ nodes?: string[] | undefined;
1387
+ edges?: [string, string][] | undefined;
1388
+ context?: Record<string, unknown> | undefined;
1389
+ }, {
1390
+ ruleId: string;
1391
+ message?: string | undefined;
1392
+ level?: "error" | "warn" | undefined;
1393
+ nodes?: string[] | undefined;
1394
+ edges?: [string, string][] | undefined;
1395
+ context?: Record<string, unknown> | undefined;
1396
+ }>>;
1397
+ ruleId: z.ZodOptional<z.ZodString>;
1398
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1399
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1400
+ tokens: z.ZodOptional<z.ZodType<JsonObject, z.ZodTypeDef, JsonObject>>;
1401
+ tokensPath: z.ZodOptional<z.ZodString>;
1402
+ constraints: z.ZodOptional<z.ZodObject<{
1403
+ enableBuiltInWcagDefaults: z.ZodOptional<z.ZodBoolean>;
1404
+ enableBuiltInThreshold: z.ZodOptional<z.ZodBoolean>;
1405
+ wcag: z.ZodOptional<z.ZodArray<z.ZodObject<{
1406
+ foreground: z.ZodString;
1407
+ background: z.ZodString;
1408
+ ratio: z.ZodOptional<z.ZodNumber>;
1409
+ description: z.ZodOptional<z.ZodString>;
1410
+ backdrop: z.ZodOptional<z.ZodString>;
1411
+ }, "strict", z.ZodTypeAny, {
1412
+ foreground: string;
1413
+ background: string;
1414
+ description?: string | undefined;
1415
+ ratio?: number | undefined;
1416
+ backdrop?: string | undefined;
1417
+ }, {
1418
+ foreground: string;
1419
+ background: string;
1420
+ description?: string | undefined;
1421
+ ratio?: number | undefined;
1422
+ backdrop?: string | undefined;
1423
+ }>, "many">>;
1424
+ thresholds: z.ZodOptional<z.ZodArray<z.ZodObject<{
1425
+ id: z.ZodString;
1426
+ op: z.ZodEnum<["<=", ">="]>;
1427
+ valuePx: z.ZodNumber;
1428
+ where: z.ZodOptional<z.ZodString>;
1429
+ level: z.ZodOptional<z.ZodEnum<["error", "warn"]>>;
1430
+ }, "strict", z.ZodTypeAny, {
1431
+ id: string;
1432
+ op: "<=" | ">=";
1433
+ valuePx: number;
1434
+ where?: string | undefined;
1435
+ level?: "error" | "warn" | undefined;
1436
+ }, {
1437
+ id: string;
1438
+ op: "<=" | ">=";
1439
+ valuePx: number;
1440
+ where?: string | undefined;
1441
+ level?: "error" | "warn" | undefined;
1442
+ }>, "many">>;
1443
+ }, "strict", z.ZodTypeAny, {
1444
+ enableBuiltInWcagDefaults?: boolean | undefined;
1445
+ enableBuiltInThreshold?: boolean | undefined;
1446
+ wcag?: {
1447
+ foreground: string;
1448
+ background: string;
1449
+ description?: string | undefined;
1450
+ ratio?: number | undefined;
1451
+ backdrop?: string | undefined;
1452
+ }[] | undefined;
1453
+ thresholds?: {
1454
+ id: string;
1455
+ op: "<=" | ">=";
1456
+ valuePx: number;
1457
+ where?: string | undefined;
1458
+ level?: "error" | "warn" | undefined;
1459
+ }[] | undefined;
1460
+ }, {
1461
+ enableBuiltInWcagDefaults?: boolean | undefined;
1462
+ enableBuiltInThreshold?: boolean | undefined;
1463
+ wcag?: {
1464
+ foreground: string;
1465
+ background: string;
1466
+ description?: string | undefined;
1467
+ ratio?: number | undefined;
1468
+ backdrop?: string | undefined;
1469
+ }[] | undefined;
1470
+ thresholds?: {
1471
+ id: string;
1472
+ op: "<=" | ">=";
1473
+ valuePx: number;
1474
+ where?: string | undefined;
1475
+ level?: "error" | "warn" | undefined;
1476
+ }[] | undefined;
1477
+ }>>;
1478
+ configPath: z.ZodOptional<z.ZodString>;
1479
+ constraintsDir: z.ZodOptional<z.ZodString>;
1480
+ breakpoint: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
1481
+ }, "strip", z.ZodTypeAny, {
1482
+ tokens?: JsonObject | undefined;
1483
+ constraints?: {
1484
+ enableBuiltInWcagDefaults?: boolean | undefined;
1485
+ enableBuiltInThreshold?: boolean | undefined;
1486
+ wcag?: {
1487
+ foreground: string;
1488
+ background: string;
1489
+ description?: string | undefined;
1490
+ ratio?: number | undefined;
1491
+ backdrop?: string | undefined;
1492
+ }[] | undefined;
1493
+ thresholds?: {
1494
+ id: string;
1495
+ op: "<=" | ">=";
1496
+ valuePx: number;
1497
+ where?: string | undefined;
1498
+ level?: "error" | "warn" | undefined;
1499
+ }[] | undefined;
1500
+ } | undefined;
1501
+ nodes?: string[] | undefined;
1502
+ constraintsDir?: string | undefined;
1503
+ violation?: {
1504
+ ruleId: string;
1505
+ message?: string | undefined;
1506
+ level?: "error" | "warn" | undefined;
1507
+ nodes?: string[] | undefined;
1508
+ edges?: [string, string][] | undefined;
1509
+ context?: Record<string, unknown> | undefined;
1510
+ } | undefined;
1511
+ breakpoint?: "sm" | "md" | "lg" | undefined;
1512
+ tokensPath?: string | undefined;
1513
+ ruleId?: string | undefined;
1514
+ context?: Record<string, unknown> | undefined;
1515
+ configPath?: string | undefined;
1516
+ target?: "foreground" | "background" | undefined;
1517
+ }, {
1518
+ tokens?: JsonObject | undefined;
1519
+ constraints?: {
1520
+ enableBuiltInWcagDefaults?: boolean | undefined;
1521
+ enableBuiltInThreshold?: boolean | undefined;
1522
+ wcag?: {
1523
+ foreground: string;
1524
+ background: string;
1525
+ description?: string | undefined;
1526
+ ratio?: number | undefined;
1527
+ backdrop?: string | undefined;
1528
+ }[] | undefined;
1529
+ thresholds?: {
1530
+ id: string;
1531
+ op: "<=" | ">=";
1532
+ valuePx: number;
1533
+ where?: string | undefined;
1534
+ level?: "error" | "warn" | undefined;
1535
+ }[] | undefined;
1536
+ } | undefined;
1537
+ nodes?: string[] | undefined;
1538
+ constraintsDir?: string | undefined;
1539
+ violation?: {
1540
+ ruleId: string;
1541
+ message?: string | undefined;
1542
+ level?: "error" | "warn" | undefined;
1543
+ nodes?: string[] | undefined;
1544
+ edges?: [string, string][] | undefined;
1545
+ context?: Record<string, unknown> | undefined;
1546
+ } | undefined;
1547
+ breakpoint?: "sm" | "md" | "lg" | undefined;
1548
+ tokensPath?: string | undefined;
1549
+ ruleId?: string | undefined;
1550
+ context?: Record<string, unknown> | undefined;
1551
+ configPath?: string | undefined;
1552
+ target?: "foreground" | "background" | undefined;
1553
+ }>;
115
1554
  export type ValidateToolInput = z.infer<typeof validateInputSchema>;
116
1555
  export type WhyToolInput = z.infer<typeof whyInputSchema>;
117
1556
  export type GraphToolInput = z.infer<typeof graphInputSchema>;
1557
+ export type ListConstraintsToolInput = z.infer<typeof listConstraintsInputSchema>;
1558
+ export type ExplainToolInput = z.infer<typeof explainInputSchema>;
1559
+ export type SuggestFixToolInput = z.infer<typeof suggestFixInputSchema>;
1560
+ export type ViolationInput = z.infer<typeof violationInputSchema>;
118
1561
  //# sourceMappingURL=contracts.d.ts.map