qrdx 0.0.46 → 0.0.48

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 (212) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +358 -300
  3. package/dist/index.js +27 -7
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +27 -7
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/qr-code-canvas.js +12 -0
  8. package/dist/qr-code-canvas.js.map +1 -0
  9. package/dist/qr-code-canvas.mjs +12 -0
  10. package/dist/qr-code-canvas.mjs.map +1 -0
  11. package/dist/src/api.d.ts.map +1 -1
  12. package/dist/src/art-trace.d.ts +46 -0
  13. package/dist/src/art-trace.d.ts.map +1 -0
  14. package/dist/src/art.d.ts +138 -0
  15. package/dist/src/art.d.ts.map +1 -0
  16. package/dist/src/body-patterns.d.ts +34 -0
  17. package/dist/src/body-patterns.d.ts.map +1 -0
  18. package/dist/src/codegen.d.ts +5 -5
  19. package/dist/src/codegen.d.ts.map +1 -1
  20. package/dist/src/codeword-map.d.ts +40 -0
  21. package/dist/src/codeword-map.d.ts.map +1 -0
  22. package/dist/src/constants.d.ts +4 -7
  23. package/dist/src/constants.d.ts.map +1 -1
  24. package/dist/src/corner-dot.d.ts +3 -1
  25. package/dist/src/corner-dot.d.ts.map +1 -1
  26. package/dist/src/corner-eye.d.ts +5 -2
  27. package/dist/src/corner-eye.d.ts.map +1 -1
  28. package/dist/src/detection.d.ts.map +1 -1
  29. package/dist/src/download.d.ts +50 -6
  30. package/dist/src/download.d.ts.map +1 -1
  31. package/dist/src/eps.d.ts +62 -0
  32. package/dist/src/eps.d.ts.map +1 -0
  33. package/dist/src/frame-icons.d.ts +11 -0
  34. package/dist/src/frame-icons.d.ts.map +1 -0
  35. package/dist/src/frame-import.d.ts +61 -0
  36. package/dist/src/frame-import.d.ts.map +1 -0
  37. package/dist/src/frame-spec.d.ts +24 -0
  38. package/dist/src/frame-spec.d.ts.map +1 -0
  39. package/dist/src/frame-styles.d.ts +50 -0
  40. package/dist/src/frame-styles.d.ts.map +1 -0
  41. package/dist/src/frame.d.ts +126 -0
  42. package/dist/src/frame.d.ts.map +1 -0
  43. package/dist/src/frames/builtin.d.ts +8 -0
  44. package/dist/src/frames/builtin.d.ts.map +1 -0
  45. package/dist/src/frames/official.d.ts +18 -0
  46. package/dist/src/frames/official.d.ts.map +1 -0
  47. package/dist/src/helpers.d.ts +15 -2
  48. package/dist/src/helpers.d.ts.map +1 -1
  49. package/dist/src/index.d.ts +25 -13
  50. package/dist/src/index.d.ts.map +1 -1
  51. package/dist/src/logo-budget.d.ts +54 -0
  52. package/dist/src/logo-budget.d.ts.map +1 -0
  53. package/dist/src/logo-cleanup.d.ts +25 -0
  54. package/dist/src/logo-cleanup.d.ts.map +1 -0
  55. package/dist/src/logo.d.ts +28 -0
  56. package/dist/src/logo.d.ts.map +1 -0
  57. package/dist/src/print.d.ts +73 -0
  58. package/dist/src/print.d.ts.map +1 -0
  59. package/dist/src/qr-code-canvas.d.ts +13 -0
  60. package/dist/src/qr-code-canvas.d.ts.map +1 -0
  61. package/dist/src/qr-code.d.ts +4 -2
  62. package/dist/src/qr-code.d.ts.map +1 -1
  63. package/dist/src/qr-outline.d.ts +41 -0
  64. package/dist/src/qr-outline.d.ts.map +1 -0
  65. package/dist/src/qr-shape.d.ts +72 -0
  66. package/dist/src/qr-shape.d.ts.map +1 -0
  67. package/dist/src/scan-risk.d.ts +40 -0
  68. package/dist/src/scan-risk.d.ts.map +1 -0
  69. package/dist/src/scan-score.d.ts +154 -0
  70. package/dist/src/scan-score.d.ts.map +1 -0
  71. package/dist/src/shapes.d.ts +36 -0
  72. package/dist/src/shapes.d.ts.map +1 -0
  73. package/dist/src/silhouette.d.ts +28 -0
  74. package/dist/src/silhouette.d.ts.map +1 -0
  75. package/dist/src/utils/color.d.ts.map +1 -1
  76. package/dist/src/utils/fmt.d.ts +24 -0
  77. package/dist/src/utils/fmt.d.ts.map +1 -0
  78. package/dist/src/utils/paint.d.ts +80 -0
  79. package/dist/src/utils/paint.d.ts.map +1 -0
  80. package/dist/src/utils/parse-color.d.ts +21 -0
  81. package/dist/src/utils/parse-color.d.ts.map +1 -0
  82. package/dist/src/utils/path-data.d.ts +24 -0
  83. package/dist/src/utils/path-data.d.ts.map +1 -0
  84. package/dist/src/utils/png.d.ts +16 -0
  85. package/dist/src/utils/png.d.ts.map +1 -0
  86. package/dist/src/utils/polygon-clip.d.ts +26 -0
  87. package/dist/src/utils/polygon-clip.d.ts.map +1 -0
  88. package/dist/src/utils/print-shared.d.ts +20 -0
  89. package/dist/src/utils/print-shared.d.ts.map +1 -0
  90. package/dist/src/utils/svg-geometry.d.ts +49 -0
  91. package/dist/src/utils/svg-geometry.d.ts.map +1 -0
  92. package/dist/src/utils/svg-gradient.d.ts +59 -0
  93. package/dist/src/utils/svg-gradient.d.ts.map +1 -0
  94. package/dist/src/utils/svg-painter.d.ts +152 -0
  95. package/dist/src/utils/svg-painter.d.ts.map +1 -0
  96. package/dist/src/utils/webp.d.ts +25 -0
  97. package/dist/src/utils/webp.d.ts.map +1 -0
  98. package/dist/src/utils.d.ts +18 -2
  99. package/dist/src/utils.d.ts.map +1 -1
  100. package/dist/src/webp.d.ts +19 -0
  101. package/dist/src/webp.d.ts.map +1 -0
  102. package/dist/types/art.d.ts +64 -0
  103. package/dist/types/art.d.ts.map +1 -0
  104. package/dist/types/color.d.ts +125 -7
  105. package/dist/types/color.d.ts.map +1 -1
  106. package/dist/types/corner-dot.d.ts +52 -2
  107. package/dist/types/corner-dot.d.ts.map +1 -1
  108. package/dist/types/corner-eye.d.ts +43 -2
  109. package/dist/types/corner-eye.d.ts.map +1 -1
  110. package/dist/types/frame-spec.d.ts +3509 -0
  111. package/dist/types/frame-spec.d.ts.map +1 -0
  112. package/dist/types/frame.d.ts +68 -0
  113. package/dist/types/frame.d.ts.map +1 -0
  114. package/dist/types/image-pattern.d.ts +15 -1
  115. package/dist/types/image-pattern.d.ts.map +1 -1
  116. package/dist/types/index.d.ts +15 -9
  117. package/dist/types/index.d.ts.map +1 -1
  118. package/dist/types/index.js +6 -0
  119. package/dist/types/index.js.map +1 -0
  120. package/dist/types/index.mjs +6 -0
  121. package/dist/types/index.mjs.map +1 -0
  122. package/dist/types/qr.d.ts +1684 -4
  123. package/dist/types/qr.d.ts.map +1 -1
  124. package/dist/types/template.d.ts +2 -2
  125. package/dist/types/template.d.ts.map +1 -1
  126. package/package.json +70 -25
  127. package/src/api.tsx +67 -17
  128. package/src/art-trace.ts +554 -0
  129. package/src/art.tsx +2226 -0
  130. package/src/body-patterns.tsx +389 -0
  131. package/src/codegen.ts +10 -5
  132. package/src/codeword-map.ts +265 -0
  133. package/src/constants.ts +4 -8
  134. package/src/corner-dot.tsx +209 -33
  135. package/src/corner-eye.ts +328 -60
  136. package/src/detection.ts +5 -11
  137. package/src/download.tsx +174 -70
  138. package/src/eps.ts +701 -0
  139. package/src/frame-icons.ts +325 -0
  140. package/src/frame-import.ts +1198 -0
  141. package/src/frame-spec.ts +518 -0
  142. package/src/frame-styles.ts +1095 -0
  143. package/src/frame.tsx +630 -0
  144. package/src/frames/builtin/banner-bottom.json +58 -0
  145. package/src/frames/builtin/circle.json +81 -0
  146. package/src/frames/builtin/rounded-border.json +60 -0
  147. package/src/frames/builtin/ticket.json +51 -0
  148. package/src/frames/builtin.ts +20 -0
  149. package/src/frames/official/attendance.json +110 -0
  150. package/src/frames/official/audio-guide.json +95 -0
  151. package/src/frames/official/book-now.json +103 -0
  152. package/src/frames/official/check-in.json +110 -0
  153. package/src/frames/official/christmas.json +131 -0
  154. package/src/frames/official/donate.json +77 -0
  155. package/src/frames/official/event-ticket.json +77 -0
  156. package/src/frames/official/feedback-bubble.json +73 -0
  157. package/src/frames/official/follow-us.json +83 -0
  158. package/src/frames/official/get-the-app.json +107 -0
  159. package/src/frames/official/halloween.json +80 -0
  160. package/src/frames/official/new-year.json +94 -0
  161. package/src/frames/official/order-at-table.json +86 -0
  162. package/src/frames/official/product-info.json +119 -0
  163. package/src/frames/official/register-product.json +77 -0
  164. package/src/frames/official/review-us.json +127 -0
  165. package/src/frames/official/rsvp-card.json +112 -0
  166. package/src/frames/official/save-contact.json +117 -0
  167. package/src/frames/official/scan-to-pay.json +94 -0
  168. package/src/frames/official/shop-window.json +81 -0
  169. package/src/frames/official/sign-rider.json +81 -0
  170. package/src/frames/official/table-tent.json +75 -0
  171. package/src/frames/official/wifi-card.json +89 -0
  172. package/src/frames/official/winter.json +142 -0
  173. package/src/frames/official.ts +77 -0
  174. package/src/helpers.ts +168 -11
  175. package/src/index.tsx +150 -172
  176. package/src/logo-budget.ts +226 -0
  177. package/src/logo-cleanup.ts +146 -0
  178. package/src/logo.tsx +137 -0
  179. package/src/print.ts +794 -0
  180. package/src/qr-code-canvas.tsx +241 -0
  181. package/src/qr-code.tsx +51 -16
  182. package/src/qr-outline.ts +511 -0
  183. package/src/qr-shape.ts +255 -0
  184. package/src/scan-risk.ts +197 -0
  185. package/src/scan-score.ts +1629 -0
  186. package/src/shapes.ts +169 -0
  187. package/src/silhouette.ts +334 -0
  188. package/src/utils/color.ts +10 -1
  189. package/src/utils/fmt.ts +59 -0
  190. package/src/utils/paint.ts +317 -0
  191. package/src/utils/parse-color.ts +135 -0
  192. package/src/utils/path-data.ts +182 -0
  193. package/src/utils/png.ts +175 -0
  194. package/src/utils/polygon-clip.ts +163 -0
  195. package/src/utils/print-shared.ts +74 -0
  196. package/src/utils/svg-geometry.ts +838 -0
  197. package/src/utils/svg-gradient.ts +407 -0
  198. package/src/utils/svg-painter.ts +946 -0
  199. package/src/utils/webp.ts +556 -0
  200. package/src/utils.tsx +794 -385
  201. package/src/webp.ts +84 -0
  202. package/types/art.ts +74 -0
  203. package/types/color.ts +132 -12
  204. package/types/corner-dot.ts +41 -4
  205. package/types/corner-eye.ts +31 -4
  206. package/types/frame-spec.ts +748 -0
  207. package/types/frame.ts +67 -0
  208. package/types/image-pattern.ts +15 -0
  209. package/types/index.ts +106 -4
  210. package/types/qr.ts +180 -2
  211. package/types/template.ts +2 -2
  212. package/dist/cli.js +0 -4319
@@ -0,0 +1,3509 @@
1
+ /** biome-ignore-all lint/style/noMagicNumbers: spec limits */
2
+ import { z } from "zod";
3
+ export declare const FRAME_SPEC_KIND = "qrdx.frame";
4
+ export declare const FRAME_SPEC_VERSION = 1;
5
+ /** Value of `frame.style` that draws `frame.spec`. */
6
+ export declare const CUSTOM_FRAME_STYLE = "custom";
7
+ export declare const FRAME_SPEC_LIMITS: {
8
+ /** Artboard sides, in spec units */
9
+ readonly minArtboard: 50;
10
+ readonly maxArtboard: 2000;
11
+ /** Largest absolute coordinate anywhere in a spec */
12
+ readonly maxCoordinate: 4000;
13
+ /** Decimals a number may have */
14
+ readonly maxDecimals: 3;
15
+ readonly maxShapes: 64;
16
+ readonly maxLabels: 8;
17
+ readonly maxPolygonPoints: 256;
18
+ /** Characters in one path's data */
19
+ readonly maxPathLength: 16000;
20
+ /** Segments across the spec: path commands (arcs count 4), polygon points, dashes */
21
+ readonly maxSegments: 2000;
22
+ /** Gradient steps on one shape */
23
+ readonly maxGradientSteps: 64;
24
+ /** Gradient work across the spec: steps × the shape's segments */
25
+ readonly maxGradientWork: 16000;
26
+ /** Size of the spec as JSON, in UTF-8 bytes */
27
+ readonly maxBytes: 32768;
28
+ /** The code must be at least this share of the artboard's shorter side */
29
+ readonly minQrShare: 0.5;
30
+ /** Light padding around the code, as a share of its size */
31
+ readonly minPadding: 0.04;
32
+ readonly defaultPadding: 0.08;
33
+ /** Characters in a label */
34
+ readonly maxTextLength: 24;
35
+ };
36
+ /** Built-in glyphs a spec can place with an `icon` shape (no images). */
37
+ export declare const FRAME_ICONS: readonly ["wifi", "star", "heart", "phone", "headphones", "calendar", "user", "chat", "bag", "bell", "cup", "card", "check", "info", "home", "pin", "share", "download", "clock", "snowflake", "pumpkin", "tree", "sparkle", "gift"];
38
+ /**
39
+ * Largest label font as a share of its row height, so ascenders and
40
+ * descenders stay inside the row (and so off the code's padding).
41
+ */
42
+ export declare const FRAME_SPEC_LABEL_MAX_FONT = 0.95;
43
+ /** Most segments any built-in icon has (counted against maxSegments). */
44
+ export declare const FRAME_ICON_MAX_SEGMENTS = 200;
45
+ /**
46
+ * Theme colors a spec can bind to: `frame` is `frame.color`, `text` is
47
+ * `frame.textColor`, `accent` is `frame.secondaryColor` (the gradient end)
48
+ * and `background` is the code's background color.
49
+ */
50
+ export declare const FRAME_COLOR_TOKENS: readonly ["frame", "text", "accent", "background"];
51
+ /**
52
+ * Label text as a frame may draw it: NFC, no control, invisible or
53
+ * bidirectional-override characters, single spaces, trimmed and at most
54
+ * `maxLength` characters (code points).
55
+ */
56
+ export declare function sanitizeFrameText(text: string, maxLength?: number): string;
57
+ /** True when `text` uses only Latin-1 (what PDF and EPS labels can print). */
58
+ export declare function isLatin1Text(text: string): boolean;
59
+ /** A theme token, a fixed hex color, or an opaque mix of two of them. */
60
+ export declare const frameSpecColorSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
61
+ text: "text";
62
+ frame: "frame";
63
+ accent: "accent";
64
+ background: "background";
65
+ }>, z.ZodString]>, z.ZodObject<{
66
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
67
+ text: "text";
68
+ frame: "frame";
69
+ accent: "accent";
70
+ background: "background";
71
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
72
+ text: "text";
73
+ frame: "frame";
74
+ accent: "accent";
75
+ background: "background";
76
+ }>, z.ZodString]>], null>;
77
+ amount: z.ZodNumber;
78
+ }, z.core.$strict>]>;
79
+ /**
80
+ * A solid color, or a gradient drawn as solid color steps (so EPS, which
81
+ * has no transparency or blending, draws it the same as SVG).
82
+ */
83
+ export declare const frameSpecPaintSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
84
+ text: "text";
85
+ frame: "frame";
86
+ accent: "accent";
87
+ background: "background";
88
+ }>, z.ZodString]>, z.ZodObject<{
89
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
90
+ text: "text";
91
+ frame: "frame";
92
+ accent: "accent";
93
+ background: "background";
94
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
95
+ text: "text";
96
+ frame: "frame";
97
+ accent: "accent";
98
+ background: "background";
99
+ }>, z.ZodString]>], null>;
100
+ amount: z.ZodNumber;
101
+ }, z.core.$strict>]>, z.ZodObject<{
102
+ gradient: z.ZodObject<{
103
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
104
+ text: "text";
105
+ frame: "frame";
106
+ accent: "accent";
107
+ background: "background";
108
+ }>, z.ZodString]>, z.ZodObject<{
109
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
110
+ text: "text";
111
+ frame: "frame";
112
+ accent: "accent";
113
+ background: "background";
114
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
115
+ text: "text";
116
+ frame: "frame";
117
+ accent: "accent";
118
+ background: "background";
119
+ }>, z.ZodString]>], null>;
120
+ amount: z.ZodNumber;
121
+ }, z.core.$strict>]>;
122
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
123
+ text: "text";
124
+ frame: "frame";
125
+ accent: "accent";
126
+ background: "background";
127
+ }>, z.ZodString]>, z.ZodObject<{
128
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
129
+ text: "text";
130
+ frame: "frame";
131
+ accent: "accent";
132
+ background: "background";
133
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
134
+ text: "text";
135
+ frame: "frame";
136
+ accent: "accent";
137
+ background: "background";
138
+ }>, z.ZodString]>], null>;
139
+ amount: z.ZodNumber;
140
+ }, z.core.$strict>]>;
141
+ direction: z.ZodOptional<z.ZodEnum<{
142
+ horizontal: "horizontal";
143
+ vertical: "vertical";
144
+ }>>;
145
+ steps: z.ZodOptional<z.ZodInt>;
146
+ }, z.core.$strict>;
147
+ }, z.core.$strict>]>;
148
+ export declare const frameSpecShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
149
+ radius: z.ZodOptional<z.ZodNumber>;
150
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
151
+ text: "text";
152
+ frame: "frame";
153
+ accent: "accent";
154
+ background: "background";
155
+ }>, z.ZodString]>, z.ZodObject<{
156
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
157
+ text: "text";
158
+ frame: "frame";
159
+ accent: "accent";
160
+ background: "background";
161
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
162
+ text: "text";
163
+ frame: "frame";
164
+ accent: "accent";
165
+ background: "background";
166
+ }>, z.ZodString]>], null>;
167
+ amount: z.ZodNumber;
168
+ }, z.core.$strict>]>, z.ZodObject<{
169
+ gradient: z.ZodObject<{
170
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
171
+ text: "text";
172
+ frame: "frame";
173
+ accent: "accent";
174
+ background: "background";
175
+ }>, z.ZodString]>, z.ZodObject<{
176
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
177
+ text: "text";
178
+ frame: "frame";
179
+ accent: "accent";
180
+ background: "background";
181
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
182
+ text: "text";
183
+ frame: "frame";
184
+ accent: "accent";
185
+ background: "background";
186
+ }>, z.ZodString]>], null>;
187
+ amount: z.ZodNumber;
188
+ }, z.core.$strict>]>;
189
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
190
+ text: "text";
191
+ frame: "frame";
192
+ accent: "accent";
193
+ background: "background";
194
+ }>, z.ZodString]>, z.ZodObject<{
195
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
196
+ text: "text";
197
+ frame: "frame";
198
+ accent: "accent";
199
+ background: "background";
200
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
201
+ text: "text";
202
+ frame: "frame";
203
+ accent: "accent";
204
+ background: "background";
205
+ }>, z.ZodString]>], null>;
206
+ amount: z.ZodNumber;
207
+ }, z.core.$strict>]>;
208
+ direction: z.ZodOptional<z.ZodEnum<{
209
+ horizontal: "horizontal";
210
+ vertical: "vertical";
211
+ }>>;
212
+ steps: z.ZodOptional<z.ZodInt>;
213
+ }, z.core.$strict>;
214
+ }, z.core.$strict>]>;
215
+ hole: z.ZodOptional<z.ZodObject<{
216
+ radius: z.ZodOptional<z.ZodNumber>;
217
+ x: z.ZodNumber;
218
+ y: z.ZodNumber;
219
+ width: z.ZodNumber;
220
+ height: z.ZodNumber;
221
+ }, z.core.$strict>>;
222
+ x: z.ZodNumber;
223
+ y: z.ZodNumber;
224
+ width: z.ZodNumber;
225
+ height: z.ZodNumber;
226
+ type: z.ZodLiteral<"rect">;
227
+ }, z.core.$strict>, z.ZodObject<{
228
+ type: z.ZodLiteral<"circle">;
229
+ cx: z.ZodNumber;
230
+ cy: z.ZodNumber;
231
+ r: z.ZodNumber;
232
+ hole: z.ZodOptional<z.ZodNumber>;
233
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
234
+ text: "text";
235
+ frame: "frame";
236
+ accent: "accent";
237
+ background: "background";
238
+ }>, z.ZodString]>, z.ZodObject<{
239
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
240
+ text: "text";
241
+ frame: "frame";
242
+ accent: "accent";
243
+ background: "background";
244
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
245
+ text: "text";
246
+ frame: "frame";
247
+ accent: "accent";
248
+ background: "background";
249
+ }>, z.ZodString]>], null>;
250
+ amount: z.ZodNumber;
251
+ }, z.core.$strict>]>, z.ZodObject<{
252
+ gradient: z.ZodObject<{
253
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
254
+ text: "text";
255
+ frame: "frame";
256
+ accent: "accent";
257
+ background: "background";
258
+ }>, z.ZodString]>, z.ZodObject<{
259
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
260
+ text: "text";
261
+ frame: "frame";
262
+ accent: "accent";
263
+ background: "background";
264
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
265
+ text: "text";
266
+ frame: "frame";
267
+ accent: "accent";
268
+ background: "background";
269
+ }>, z.ZodString]>], null>;
270
+ amount: z.ZodNumber;
271
+ }, z.core.$strict>]>;
272
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
273
+ text: "text";
274
+ frame: "frame";
275
+ accent: "accent";
276
+ background: "background";
277
+ }>, z.ZodString]>, z.ZodObject<{
278
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
279
+ text: "text";
280
+ frame: "frame";
281
+ accent: "accent";
282
+ background: "background";
283
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
284
+ text: "text";
285
+ frame: "frame";
286
+ accent: "accent";
287
+ background: "background";
288
+ }>, z.ZodString]>], null>;
289
+ amount: z.ZodNumber;
290
+ }, z.core.$strict>]>;
291
+ direction: z.ZodOptional<z.ZodEnum<{
292
+ horizontal: "horizontal";
293
+ vertical: "vertical";
294
+ }>>;
295
+ steps: z.ZodOptional<z.ZodInt>;
296
+ }, z.core.$strict>;
297
+ }, z.core.$strict>]>;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ type: z.ZodLiteral<"ellipse">;
300
+ cx: z.ZodNumber;
301
+ cy: z.ZodNumber;
302
+ rx: z.ZodNumber;
303
+ ry: z.ZodNumber;
304
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
305
+ text: "text";
306
+ frame: "frame";
307
+ accent: "accent";
308
+ background: "background";
309
+ }>, z.ZodString]>, z.ZodObject<{
310
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
311
+ text: "text";
312
+ frame: "frame";
313
+ accent: "accent";
314
+ background: "background";
315
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
316
+ text: "text";
317
+ frame: "frame";
318
+ accent: "accent";
319
+ background: "background";
320
+ }>, z.ZodString]>], null>;
321
+ amount: z.ZodNumber;
322
+ }, z.core.$strict>]>, z.ZodObject<{
323
+ gradient: z.ZodObject<{
324
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
325
+ text: "text";
326
+ frame: "frame";
327
+ accent: "accent";
328
+ background: "background";
329
+ }>, z.ZodString]>, z.ZodObject<{
330
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
331
+ text: "text";
332
+ frame: "frame";
333
+ accent: "accent";
334
+ background: "background";
335
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
336
+ text: "text";
337
+ frame: "frame";
338
+ accent: "accent";
339
+ background: "background";
340
+ }>, z.ZodString]>], null>;
341
+ amount: z.ZodNumber;
342
+ }, z.core.$strict>]>;
343
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
344
+ text: "text";
345
+ frame: "frame";
346
+ accent: "accent";
347
+ background: "background";
348
+ }>, z.ZodString]>, z.ZodObject<{
349
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
350
+ text: "text";
351
+ frame: "frame";
352
+ accent: "accent";
353
+ background: "background";
354
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
355
+ text: "text";
356
+ frame: "frame";
357
+ accent: "accent";
358
+ background: "background";
359
+ }>, z.ZodString]>], null>;
360
+ amount: z.ZodNumber;
361
+ }, z.core.$strict>]>;
362
+ direction: z.ZodOptional<z.ZodEnum<{
363
+ horizontal: "horizontal";
364
+ vertical: "vertical";
365
+ }>>;
366
+ steps: z.ZodOptional<z.ZodInt>;
367
+ }, z.core.$strict>;
368
+ }, z.core.$strict>]>;
369
+ }, z.core.$strict>, z.ZodObject<{
370
+ type: z.ZodLiteral<"polygon">;
371
+ points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
372
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
373
+ text: "text";
374
+ frame: "frame";
375
+ accent: "accent";
376
+ background: "background";
377
+ }>, z.ZodString]>, z.ZodObject<{
378
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
379
+ text: "text";
380
+ frame: "frame";
381
+ accent: "accent";
382
+ background: "background";
383
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
384
+ text: "text";
385
+ frame: "frame";
386
+ accent: "accent";
387
+ background: "background";
388
+ }>, z.ZodString]>], null>;
389
+ amount: z.ZodNumber;
390
+ }, z.core.$strict>]>, z.ZodObject<{
391
+ gradient: z.ZodObject<{
392
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
393
+ text: "text";
394
+ frame: "frame";
395
+ accent: "accent";
396
+ background: "background";
397
+ }>, z.ZodString]>, z.ZodObject<{
398
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
399
+ text: "text";
400
+ frame: "frame";
401
+ accent: "accent";
402
+ background: "background";
403
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
404
+ text: "text";
405
+ frame: "frame";
406
+ accent: "accent";
407
+ background: "background";
408
+ }>, z.ZodString]>], null>;
409
+ amount: z.ZodNumber;
410
+ }, z.core.$strict>]>;
411
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
412
+ text: "text";
413
+ frame: "frame";
414
+ accent: "accent";
415
+ background: "background";
416
+ }>, z.ZodString]>, z.ZodObject<{
417
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
418
+ text: "text";
419
+ frame: "frame";
420
+ accent: "accent";
421
+ background: "background";
422
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
423
+ text: "text";
424
+ frame: "frame";
425
+ accent: "accent";
426
+ background: "background";
427
+ }>, z.ZodString]>], null>;
428
+ amount: z.ZodNumber;
429
+ }, z.core.$strict>]>;
430
+ direction: z.ZodOptional<z.ZodEnum<{
431
+ horizontal: "horizontal";
432
+ vertical: "vertical";
433
+ }>>;
434
+ steps: z.ZodOptional<z.ZodInt>;
435
+ }, z.core.$strict>;
436
+ }, z.core.$strict>]>;
437
+ }, z.core.$strict>, z.ZodObject<{
438
+ type: z.ZodLiteral<"path">;
439
+ d: z.ZodString;
440
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
441
+ text: "text";
442
+ frame: "frame";
443
+ accent: "accent";
444
+ background: "background";
445
+ }>, z.ZodString]>, z.ZodObject<{
446
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
447
+ text: "text";
448
+ frame: "frame";
449
+ accent: "accent";
450
+ background: "background";
451
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
452
+ text: "text";
453
+ frame: "frame";
454
+ accent: "accent";
455
+ background: "background";
456
+ }>, z.ZodString]>], null>;
457
+ amount: z.ZodNumber;
458
+ }, z.core.$strict>]>, z.ZodObject<{
459
+ gradient: z.ZodObject<{
460
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
461
+ text: "text";
462
+ frame: "frame";
463
+ accent: "accent";
464
+ background: "background";
465
+ }>, z.ZodString]>, z.ZodObject<{
466
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
467
+ text: "text";
468
+ frame: "frame";
469
+ accent: "accent";
470
+ background: "background";
471
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
472
+ text: "text";
473
+ frame: "frame";
474
+ accent: "accent";
475
+ background: "background";
476
+ }>, z.ZodString]>], null>;
477
+ amount: z.ZodNumber;
478
+ }, z.core.$strict>]>;
479
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
480
+ text: "text";
481
+ frame: "frame";
482
+ accent: "accent";
483
+ background: "background";
484
+ }>, z.ZodString]>, z.ZodObject<{
485
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
486
+ text: "text";
487
+ frame: "frame";
488
+ accent: "accent";
489
+ background: "background";
490
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
491
+ text: "text";
492
+ frame: "frame";
493
+ accent: "accent";
494
+ background: "background";
495
+ }>, z.ZodString]>], null>;
496
+ amount: z.ZodNumber;
497
+ }, z.core.$strict>]>;
498
+ direction: z.ZodOptional<z.ZodEnum<{
499
+ horizontal: "horizontal";
500
+ vertical: "vertical";
501
+ }>>;
502
+ steps: z.ZodOptional<z.ZodInt>;
503
+ }, z.core.$strict>;
504
+ }, z.core.$strict>]>;
505
+ fillRule: z.ZodOptional<z.ZodEnum<{
506
+ nonzero: "nonzero";
507
+ evenodd: "evenodd";
508
+ }>>;
509
+ }, z.core.$strict>, z.ZodObject<{
510
+ type: z.ZodLiteral<"line">;
511
+ x1: z.ZodNumber;
512
+ y1: z.ZodNumber;
513
+ x2: z.ZodNumber;
514
+ y2: z.ZodNumber;
515
+ width: z.ZodNumber;
516
+ cap: z.ZodOptional<z.ZodEnum<{
517
+ butt: "butt";
518
+ round: "round";
519
+ }>>;
520
+ dash: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
521
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
522
+ text: "text";
523
+ frame: "frame";
524
+ accent: "accent";
525
+ background: "background";
526
+ }>, z.ZodString]>, z.ZodObject<{
527
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
528
+ text: "text";
529
+ frame: "frame";
530
+ accent: "accent";
531
+ background: "background";
532
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
533
+ text: "text";
534
+ frame: "frame";
535
+ accent: "accent";
536
+ background: "background";
537
+ }>, z.ZodString]>], null>;
538
+ amount: z.ZodNumber;
539
+ }, z.core.$strict>]>, z.ZodObject<{
540
+ gradient: z.ZodObject<{
541
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
542
+ text: "text";
543
+ frame: "frame";
544
+ accent: "accent";
545
+ background: "background";
546
+ }>, z.ZodString]>, z.ZodObject<{
547
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
548
+ text: "text";
549
+ frame: "frame";
550
+ accent: "accent";
551
+ background: "background";
552
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
553
+ text: "text";
554
+ frame: "frame";
555
+ accent: "accent";
556
+ background: "background";
557
+ }>, z.ZodString]>], null>;
558
+ amount: z.ZodNumber;
559
+ }, z.core.$strict>]>;
560
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
561
+ text: "text";
562
+ frame: "frame";
563
+ accent: "accent";
564
+ background: "background";
565
+ }>, z.ZodString]>, z.ZodObject<{
566
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
567
+ text: "text";
568
+ frame: "frame";
569
+ accent: "accent";
570
+ background: "background";
571
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
572
+ text: "text";
573
+ frame: "frame";
574
+ accent: "accent";
575
+ background: "background";
576
+ }>, z.ZodString]>], null>;
577
+ amount: z.ZodNumber;
578
+ }, z.core.$strict>]>;
579
+ direction: z.ZodOptional<z.ZodEnum<{
580
+ horizontal: "horizontal";
581
+ vertical: "vertical";
582
+ }>>;
583
+ steps: z.ZodOptional<z.ZodInt>;
584
+ }, z.core.$strict>;
585
+ }, z.core.$strict>]>;
586
+ }, z.core.$strict>, z.ZodObject<{
587
+ type: z.ZodLiteral<"icon">;
588
+ icon: z.ZodEnum<{
589
+ check: "check";
590
+ heart: "heart";
591
+ star: "star";
592
+ phone: "phone";
593
+ wifi: "wifi";
594
+ headphones: "headphones";
595
+ calendar: "calendar";
596
+ user: "user";
597
+ chat: "chat";
598
+ bag: "bag";
599
+ bell: "bell";
600
+ cup: "cup";
601
+ card: "card";
602
+ info: "info";
603
+ home: "home";
604
+ pin: "pin";
605
+ share: "share";
606
+ download: "download";
607
+ clock: "clock";
608
+ snowflake: "snowflake";
609
+ pumpkin: "pumpkin";
610
+ tree: "tree";
611
+ sparkle: "sparkle";
612
+ gift: "gift";
613
+ }>;
614
+ x: z.ZodNumber;
615
+ y: z.ZodNumber;
616
+ size: z.ZodNumber;
617
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
618
+ text: "text";
619
+ frame: "frame";
620
+ accent: "accent";
621
+ background: "background";
622
+ }>, z.ZodString]>, z.ZodObject<{
623
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
624
+ text: "text";
625
+ frame: "frame";
626
+ accent: "accent";
627
+ background: "background";
628
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
629
+ text: "text";
630
+ frame: "frame";
631
+ accent: "accent";
632
+ background: "background";
633
+ }>, z.ZodString]>], null>;
634
+ amount: z.ZodNumber;
635
+ }, z.core.$strict>]>, z.ZodObject<{
636
+ gradient: z.ZodObject<{
637
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
638
+ text: "text";
639
+ frame: "frame";
640
+ accent: "accent";
641
+ background: "background";
642
+ }>, z.ZodString]>, z.ZodObject<{
643
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
644
+ text: "text";
645
+ frame: "frame";
646
+ accent: "accent";
647
+ background: "background";
648
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
649
+ text: "text";
650
+ frame: "frame";
651
+ accent: "accent";
652
+ background: "background";
653
+ }>, z.ZodString]>], null>;
654
+ amount: z.ZodNumber;
655
+ }, z.core.$strict>]>;
656
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
657
+ text: "text";
658
+ frame: "frame";
659
+ accent: "accent";
660
+ background: "background";
661
+ }>, z.ZodString]>, z.ZodObject<{
662
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
663
+ text: "text";
664
+ frame: "frame";
665
+ accent: "accent";
666
+ background: "background";
667
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
668
+ text: "text";
669
+ frame: "frame";
670
+ accent: "accent";
671
+ background: "background";
672
+ }>, z.ZodString]>], null>;
673
+ amount: z.ZodNumber;
674
+ }, z.core.$strict>]>;
675
+ direction: z.ZodOptional<z.ZodEnum<{
676
+ horizontal: "horizontal";
677
+ vertical: "vertical";
678
+ }>>;
679
+ steps: z.ZodOptional<z.ZodInt>;
680
+ }, z.core.$strict>;
681
+ }, z.core.$strict>]>;
682
+ }, z.core.$strict>], "type">;
683
+ export declare const frameSpecLabelSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
684
+ box: z.ZodObject<{
685
+ x: z.ZodNumber;
686
+ y: z.ZodNumber;
687
+ width: z.ZodNumber;
688
+ height: z.ZodNumber;
689
+ }, z.core.$strict>;
690
+ align: z.ZodOptional<z.ZodEnum<{
691
+ start: "start";
692
+ middle: "middle";
693
+ end: "end";
694
+ }>>;
695
+ fontSize: z.ZodOptional<z.ZodNumber>;
696
+ id: z.ZodString;
697
+ slot: z.ZodEnum<{
698
+ primary: "primary";
699
+ secondary: "secondary";
700
+ fixed: "fixed";
701
+ }>;
702
+ text: z.ZodString;
703
+ maxLength: z.ZodOptional<z.ZodInt>;
704
+ color: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
705
+ text: "text";
706
+ frame: "frame";
707
+ accent: "accent";
708
+ background: "background";
709
+ }>, z.ZodString]>, z.ZodObject<{
710
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
711
+ text: "text";
712
+ frame: "frame";
713
+ accent: "accent";
714
+ background: "background";
715
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
716
+ text: "text";
717
+ frame: "frame";
718
+ accent: "accent";
719
+ background: "background";
720
+ }>, z.ZodString]>], null>;
721
+ amount: z.ZodNumber;
722
+ }, z.core.$strict>]>;
723
+ weight: z.ZodOptional<z.ZodEnum<{
724
+ bold: "bold";
725
+ regular: "regular";
726
+ }>>;
727
+ type: z.ZodLiteral<"text">;
728
+ }, z.core.$strict>, z.ZodObject<{
729
+ curve: z.ZodObject<{
730
+ cx: z.ZodNumber;
731
+ cy: z.ZodNumber;
732
+ radius: z.ZodNumber;
733
+ side: z.ZodEnum<{
734
+ top: "top";
735
+ bottom: "bottom";
736
+ }>;
737
+ spread: z.ZodOptional<z.ZodNumber>;
738
+ }, z.core.$strict>;
739
+ fontSize: z.ZodNumber;
740
+ id: z.ZodString;
741
+ slot: z.ZodEnum<{
742
+ primary: "primary";
743
+ secondary: "secondary";
744
+ fixed: "fixed";
745
+ }>;
746
+ text: z.ZodString;
747
+ maxLength: z.ZodOptional<z.ZodInt>;
748
+ color: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
749
+ text: "text";
750
+ frame: "frame";
751
+ accent: "accent";
752
+ background: "background";
753
+ }>, z.ZodString]>, z.ZodObject<{
754
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
755
+ text: "text";
756
+ frame: "frame";
757
+ accent: "accent";
758
+ background: "background";
759
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
760
+ text: "text";
761
+ frame: "frame";
762
+ accent: "accent";
763
+ background: "background";
764
+ }>, z.ZodString]>], null>;
765
+ amount: z.ZodNumber;
766
+ }, z.core.$strict>]>;
767
+ weight: z.ZodOptional<z.ZodEnum<{
768
+ bold: "bold";
769
+ regular: "regular";
770
+ }>>;
771
+ type: z.ZodLiteral<"curved">;
772
+ }, z.core.$strict>], "type">;
773
+ declare const frameSpecObjectSchema: z.ZodObject<{
774
+ kind: z.ZodLiteral<"qrdx.frame">;
775
+ version: z.ZodLiteral<1>;
776
+ artboard: z.ZodObject<{
777
+ width: z.ZodNumber;
778
+ height: z.ZodNumber;
779
+ }, z.core.$strict>;
780
+ qr: z.ZodObject<{
781
+ x: z.ZodNumber;
782
+ y: z.ZodNumber;
783
+ size: z.ZodNumber;
784
+ padding: z.ZodOptional<z.ZodNumber>;
785
+ radius: z.ZodOptional<z.ZodNumber>;
786
+ }, z.core.$strict>;
787
+ colors: z.ZodObject<{
788
+ frame: z.ZodString;
789
+ text: z.ZodOptional<z.ZodString>;
790
+ accent: z.ZodOptional<z.ZodString>;
791
+ }, z.core.$strict>;
792
+ shapes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
793
+ radius: z.ZodOptional<z.ZodNumber>;
794
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
795
+ text: "text";
796
+ frame: "frame";
797
+ accent: "accent";
798
+ background: "background";
799
+ }>, z.ZodString]>, z.ZodObject<{
800
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
801
+ text: "text";
802
+ frame: "frame";
803
+ accent: "accent";
804
+ background: "background";
805
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
806
+ text: "text";
807
+ frame: "frame";
808
+ accent: "accent";
809
+ background: "background";
810
+ }>, z.ZodString]>], null>;
811
+ amount: z.ZodNumber;
812
+ }, z.core.$strict>]>, z.ZodObject<{
813
+ gradient: z.ZodObject<{
814
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
815
+ text: "text";
816
+ frame: "frame";
817
+ accent: "accent";
818
+ background: "background";
819
+ }>, z.ZodString]>, z.ZodObject<{
820
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
821
+ text: "text";
822
+ frame: "frame";
823
+ accent: "accent";
824
+ background: "background";
825
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
826
+ text: "text";
827
+ frame: "frame";
828
+ accent: "accent";
829
+ background: "background";
830
+ }>, z.ZodString]>], null>;
831
+ amount: z.ZodNumber;
832
+ }, z.core.$strict>]>;
833
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
834
+ text: "text";
835
+ frame: "frame";
836
+ accent: "accent";
837
+ background: "background";
838
+ }>, z.ZodString]>, z.ZodObject<{
839
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
840
+ text: "text";
841
+ frame: "frame";
842
+ accent: "accent";
843
+ background: "background";
844
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
845
+ text: "text";
846
+ frame: "frame";
847
+ accent: "accent";
848
+ background: "background";
849
+ }>, z.ZodString]>], null>;
850
+ amount: z.ZodNumber;
851
+ }, z.core.$strict>]>;
852
+ direction: z.ZodOptional<z.ZodEnum<{
853
+ horizontal: "horizontal";
854
+ vertical: "vertical";
855
+ }>>;
856
+ steps: z.ZodOptional<z.ZodInt>;
857
+ }, z.core.$strict>;
858
+ }, z.core.$strict>]>;
859
+ hole: z.ZodOptional<z.ZodObject<{
860
+ radius: z.ZodOptional<z.ZodNumber>;
861
+ x: z.ZodNumber;
862
+ y: z.ZodNumber;
863
+ width: z.ZodNumber;
864
+ height: z.ZodNumber;
865
+ }, z.core.$strict>>;
866
+ x: z.ZodNumber;
867
+ y: z.ZodNumber;
868
+ width: z.ZodNumber;
869
+ height: z.ZodNumber;
870
+ type: z.ZodLiteral<"rect">;
871
+ }, z.core.$strict>, z.ZodObject<{
872
+ type: z.ZodLiteral<"circle">;
873
+ cx: z.ZodNumber;
874
+ cy: z.ZodNumber;
875
+ r: z.ZodNumber;
876
+ hole: z.ZodOptional<z.ZodNumber>;
877
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
878
+ text: "text";
879
+ frame: "frame";
880
+ accent: "accent";
881
+ background: "background";
882
+ }>, z.ZodString]>, z.ZodObject<{
883
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
884
+ text: "text";
885
+ frame: "frame";
886
+ accent: "accent";
887
+ background: "background";
888
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
889
+ text: "text";
890
+ frame: "frame";
891
+ accent: "accent";
892
+ background: "background";
893
+ }>, z.ZodString]>], null>;
894
+ amount: z.ZodNumber;
895
+ }, z.core.$strict>]>, z.ZodObject<{
896
+ gradient: z.ZodObject<{
897
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
898
+ text: "text";
899
+ frame: "frame";
900
+ accent: "accent";
901
+ background: "background";
902
+ }>, z.ZodString]>, z.ZodObject<{
903
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
904
+ text: "text";
905
+ frame: "frame";
906
+ accent: "accent";
907
+ background: "background";
908
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
909
+ text: "text";
910
+ frame: "frame";
911
+ accent: "accent";
912
+ background: "background";
913
+ }>, z.ZodString]>], null>;
914
+ amount: z.ZodNumber;
915
+ }, z.core.$strict>]>;
916
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
917
+ text: "text";
918
+ frame: "frame";
919
+ accent: "accent";
920
+ background: "background";
921
+ }>, z.ZodString]>, z.ZodObject<{
922
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
923
+ text: "text";
924
+ frame: "frame";
925
+ accent: "accent";
926
+ background: "background";
927
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
928
+ text: "text";
929
+ frame: "frame";
930
+ accent: "accent";
931
+ background: "background";
932
+ }>, z.ZodString]>], null>;
933
+ amount: z.ZodNumber;
934
+ }, z.core.$strict>]>;
935
+ direction: z.ZodOptional<z.ZodEnum<{
936
+ horizontal: "horizontal";
937
+ vertical: "vertical";
938
+ }>>;
939
+ steps: z.ZodOptional<z.ZodInt>;
940
+ }, z.core.$strict>;
941
+ }, z.core.$strict>]>;
942
+ }, z.core.$strict>, z.ZodObject<{
943
+ type: z.ZodLiteral<"ellipse">;
944
+ cx: z.ZodNumber;
945
+ cy: z.ZodNumber;
946
+ rx: z.ZodNumber;
947
+ ry: z.ZodNumber;
948
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
949
+ text: "text";
950
+ frame: "frame";
951
+ accent: "accent";
952
+ background: "background";
953
+ }>, z.ZodString]>, z.ZodObject<{
954
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
955
+ text: "text";
956
+ frame: "frame";
957
+ accent: "accent";
958
+ background: "background";
959
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
960
+ text: "text";
961
+ frame: "frame";
962
+ accent: "accent";
963
+ background: "background";
964
+ }>, z.ZodString]>], null>;
965
+ amount: z.ZodNumber;
966
+ }, z.core.$strict>]>, z.ZodObject<{
967
+ gradient: z.ZodObject<{
968
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
969
+ text: "text";
970
+ frame: "frame";
971
+ accent: "accent";
972
+ background: "background";
973
+ }>, z.ZodString]>, z.ZodObject<{
974
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
975
+ text: "text";
976
+ frame: "frame";
977
+ accent: "accent";
978
+ background: "background";
979
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
980
+ text: "text";
981
+ frame: "frame";
982
+ accent: "accent";
983
+ background: "background";
984
+ }>, z.ZodString]>], null>;
985
+ amount: z.ZodNumber;
986
+ }, z.core.$strict>]>;
987
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
988
+ text: "text";
989
+ frame: "frame";
990
+ accent: "accent";
991
+ background: "background";
992
+ }>, z.ZodString]>, z.ZodObject<{
993
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
994
+ text: "text";
995
+ frame: "frame";
996
+ accent: "accent";
997
+ background: "background";
998
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
999
+ text: "text";
1000
+ frame: "frame";
1001
+ accent: "accent";
1002
+ background: "background";
1003
+ }>, z.ZodString]>], null>;
1004
+ amount: z.ZodNumber;
1005
+ }, z.core.$strict>]>;
1006
+ direction: z.ZodOptional<z.ZodEnum<{
1007
+ horizontal: "horizontal";
1008
+ vertical: "vertical";
1009
+ }>>;
1010
+ steps: z.ZodOptional<z.ZodInt>;
1011
+ }, z.core.$strict>;
1012
+ }, z.core.$strict>]>;
1013
+ }, z.core.$strict>, z.ZodObject<{
1014
+ type: z.ZodLiteral<"polygon">;
1015
+ points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1016
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1017
+ text: "text";
1018
+ frame: "frame";
1019
+ accent: "accent";
1020
+ background: "background";
1021
+ }>, z.ZodString]>, z.ZodObject<{
1022
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1023
+ text: "text";
1024
+ frame: "frame";
1025
+ accent: "accent";
1026
+ background: "background";
1027
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1028
+ text: "text";
1029
+ frame: "frame";
1030
+ accent: "accent";
1031
+ background: "background";
1032
+ }>, z.ZodString]>], null>;
1033
+ amount: z.ZodNumber;
1034
+ }, z.core.$strict>]>, z.ZodObject<{
1035
+ gradient: z.ZodObject<{
1036
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1037
+ text: "text";
1038
+ frame: "frame";
1039
+ accent: "accent";
1040
+ background: "background";
1041
+ }>, z.ZodString]>, z.ZodObject<{
1042
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1043
+ text: "text";
1044
+ frame: "frame";
1045
+ accent: "accent";
1046
+ background: "background";
1047
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1048
+ text: "text";
1049
+ frame: "frame";
1050
+ accent: "accent";
1051
+ background: "background";
1052
+ }>, z.ZodString]>], null>;
1053
+ amount: z.ZodNumber;
1054
+ }, z.core.$strict>]>;
1055
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1056
+ text: "text";
1057
+ frame: "frame";
1058
+ accent: "accent";
1059
+ background: "background";
1060
+ }>, z.ZodString]>, z.ZodObject<{
1061
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1062
+ text: "text";
1063
+ frame: "frame";
1064
+ accent: "accent";
1065
+ background: "background";
1066
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1067
+ text: "text";
1068
+ frame: "frame";
1069
+ accent: "accent";
1070
+ background: "background";
1071
+ }>, z.ZodString]>], null>;
1072
+ amount: z.ZodNumber;
1073
+ }, z.core.$strict>]>;
1074
+ direction: z.ZodOptional<z.ZodEnum<{
1075
+ horizontal: "horizontal";
1076
+ vertical: "vertical";
1077
+ }>>;
1078
+ steps: z.ZodOptional<z.ZodInt>;
1079
+ }, z.core.$strict>;
1080
+ }, z.core.$strict>]>;
1081
+ }, z.core.$strict>, z.ZodObject<{
1082
+ type: z.ZodLiteral<"path">;
1083
+ d: z.ZodString;
1084
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1085
+ text: "text";
1086
+ frame: "frame";
1087
+ accent: "accent";
1088
+ background: "background";
1089
+ }>, z.ZodString]>, z.ZodObject<{
1090
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1091
+ text: "text";
1092
+ frame: "frame";
1093
+ accent: "accent";
1094
+ background: "background";
1095
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1096
+ text: "text";
1097
+ frame: "frame";
1098
+ accent: "accent";
1099
+ background: "background";
1100
+ }>, z.ZodString]>], null>;
1101
+ amount: z.ZodNumber;
1102
+ }, z.core.$strict>]>, z.ZodObject<{
1103
+ gradient: z.ZodObject<{
1104
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1105
+ text: "text";
1106
+ frame: "frame";
1107
+ accent: "accent";
1108
+ background: "background";
1109
+ }>, z.ZodString]>, z.ZodObject<{
1110
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1111
+ text: "text";
1112
+ frame: "frame";
1113
+ accent: "accent";
1114
+ background: "background";
1115
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1116
+ text: "text";
1117
+ frame: "frame";
1118
+ accent: "accent";
1119
+ background: "background";
1120
+ }>, z.ZodString]>], null>;
1121
+ amount: z.ZodNumber;
1122
+ }, z.core.$strict>]>;
1123
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1124
+ text: "text";
1125
+ frame: "frame";
1126
+ accent: "accent";
1127
+ background: "background";
1128
+ }>, z.ZodString]>, z.ZodObject<{
1129
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1130
+ text: "text";
1131
+ frame: "frame";
1132
+ accent: "accent";
1133
+ background: "background";
1134
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1135
+ text: "text";
1136
+ frame: "frame";
1137
+ accent: "accent";
1138
+ background: "background";
1139
+ }>, z.ZodString]>], null>;
1140
+ amount: z.ZodNumber;
1141
+ }, z.core.$strict>]>;
1142
+ direction: z.ZodOptional<z.ZodEnum<{
1143
+ horizontal: "horizontal";
1144
+ vertical: "vertical";
1145
+ }>>;
1146
+ steps: z.ZodOptional<z.ZodInt>;
1147
+ }, z.core.$strict>;
1148
+ }, z.core.$strict>]>;
1149
+ fillRule: z.ZodOptional<z.ZodEnum<{
1150
+ nonzero: "nonzero";
1151
+ evenodd: "evenodd";
1152
+ }>>;
1153
+ }, z.core.$strict>, z.ZodObject<{
1154
+ type: z.ZodLiteral<"line">;
1155
+ x1: z.ZodNumber;
1156
+ y1: z.ZodNumber;
1157
+ x2: z.ZodNumber;
1158
+ y2: z.ZodNumber;
1159
+ width: z.ZodNumber;
1160
+ cap: z.ZodOptional<z.ZodEnum<{
1161
+ butt: "butt";
1162
+ round: "round";
1163
+ }>>;
1164
+ dash: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1165
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1166
+ text: "text";
1167
+ frame: "frame";
1168
+ accent: "accent";
1169
+ background: "background";
1170
+ }>, z.ZodString]>, z.ZodObject<{
1171
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1172
+ text: "text";
1173
+ frame: "frame";
1174
+ accent: "accent";
1175
+ background: "background";
1176
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1177
+ text: "text";
1178
+ frame: "frame";
1179
+ accent: "accent";
1180
+ background: "background";
1181
+ }>, z.ZodString]>], null>;
1182
+ amount: z.ZodNumber;
1183
+ }, z.core.$strict>]>, z.ZodObject<{
1184
+ gradient: z.ZodObject<{
1185
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1186
+ text: "text";
1187
+ frame: "frame";
1188
+ accent: "accent";
1189
+ background: "background";
1190
+ }>, z.ZodString]>, z.ZodObject<{
1191
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1192
+ text: "text";
1193
+ frame: "frame";
1194
+ accent: "accent";
1195
+ background: "background";
1196
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1197
+ text: "text";
1198
+ frame: "frame";
1199
+ accent: "accent";
1200
+ background: "background";
1201
+ }>, z.ZodString]>], null>;
1202
+ amount: z.ZodNumber;
1203
+ }, z.core.$strict>]>;
1204
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1205
+ text: "text";
1206
+ frame: "frame";
1207
+ accent: "accent";
1208
+ background: "background";
1209
+ }>, z.ZodString]>, z.ZodObject<{
1210
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1211
+ text: "text";
1212
+ frame: "frame";
1213
+ accent: "accent";
1214
+ background: "background";
1215
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1216
+ text: "text";
1217
+ frame: "frame";
1218
+ accent: "accent";
1219
+ background: "background";
1220
+ }>, z.ZodString]>], null>;
1221
+ amount: z.ZodNumber;
1222
+ }, z.core.$strict>]>;
1223
+ direction: z.ZodOptional<z.ZodEnum<{
1224
+ horizontal: "horizontal";
1225
+ vertical: "vertical";
1226
+ }>>;
1227
+ steps: z.ZodOptional<z.ZodInt>;
1228
+ }, z.core.$strict>;
1229
+ }, z.core.$strict>]>;
1230
+ }, z.core.$strict>, z.ZodObject<{
1231
+ type: z.ZodLiteral<"icon">;
1232
+ icon: z.ZodEnum<{
1233
+ check: "check";
1234
+ heart: "heart";
1235
+ star: "star";
1236
+ phone: "phone";
1237
+ wifi: "wifi";
1238
+ headphones: "headphones";
1239
+ calendar: "calendar";
1240
+ user: "user";
1241
+ chat: "chat";
1242
+ bag: "bag";
1243
+ bell: "bell";
1244
+ cup: "cup";
1245
+ card: "card";
1246
+ info: "info";
1247
+ home: "home";
1248
+ pin: "pin";
1249
+ share: "share";
1250
+ download: "download";
1251
+ clock: "clock";
1252
+ snowflake: "snowflake";
1253
+ pumpkin: "pumpkin";
1254
+ tree: "tree";
1255
+ sparkle: "sparkle";
1256
+ gift: "gift";
1257
+ }>;
1258
+ x: z.ZodNumber;
1259
+ y: z.ZodNumber;
1260
+ size: z.ZodNumber;
1261
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1262
+ text: "text";
1263
+ frame: "frame";
1264
+ accent: "accent";
1265
+ background: "background";
1266
+ }>, z.ZodString]>, z.ZodObject<{
1267
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1268
+ text: "text";
1269
+ frame: "frame";
1270
+ accent: "accent";
1271
+ background: "background";
1272
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1273
+ text: "text";
1274
+ frame: "frame";
1275
+ accent: "accent";
1276
+ background: "background";
1277
+ }>, z.ZodString]>], null>;
1278
+ amount: z.ZodNumber;
1279
+ }, z.core.$strict>]>, z.ZodObject<{
1280
+ gradient: z.ZodObject<{
1281
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1282
+ text: "text";
1283
+ frame: "frame";
1284
+ accent: "accent";
1285
+ background: "background";
1286
+ }>, z.ZodString]>, z.ZodObject<{
1287
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1288
+ text: "text";
1289
+ frame: "frame";
1290
+ accent: "accent";
1291
+ background: "background";
1292
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1293
+ text: "text";
1294
+ frame: "frame";
1295
+ accent: "accent";
1296
+ background: "background";
1297
+ }>, z.ZodString]>], null>;
1298
+ amount: z.ZodNumber;
1299
+ }, z.core.$strict>]>;
1300
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1301
+ text: "text";
1302
+ frame: "frame";
1303
+ accent: "accent";
1304
+ background: "background";
1305
+ }>, z.ZodString]>, z.ZodObject<{
1306
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1307
+ text: "text";
1308
+ frame: "frame";
1309
+ accent: "accent";
1310
+ background: "background";
1311
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1312
+ text: "text";
1313
+ frame: "frame";
1314
+ accent: "accent";
1315
+ background: "background";
1316
+ }>, z.ZodString]>], null>;
1317
+ amount: z.ZodNumber;
1318
+ }, z.core.$strict>]>;
1319
+ direction: z.ZodOptional<z.ZodEnum<{
1320
+ horizontal: "horizontal";
1321
+ vertical: "vertical";
1322
+ }>>;
1323
+ steps: z.ZodOptional<z.ZodInt>;
1324
+ }, z.core.$strict>;
1325
+ }, z.core.$strict>]>;
1326
+ }, z.core.$strict>], "type">>;
1327
+ labels: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1328
+ box: z.ZodObject<{
1329
+ x: z.ZodNumber;
1330
+ y: z.ZodNumber;
1331
+ width: z.ZodNumber;
1332
+ height: z.ZodNumber;
1333
+ }, z.core.$strict>;
1334
+ align: z.ZodOptional<z.ZodEnum<{
1335
+ start: "start";
1336
+ middle: "middle";
1337
+ end: "end";
1338
+ }>>;
1339
+ fontSize: z.ZodOptional<z.ZodNumber>;
1340
+ id: z.ZodString;
1341
+ slot: z.ZodEnum<{
1342
+ primary: "primary";
1343
+ secondary: "secondary";
1344
+ fixed: "fixed";
1345
+ }>;
1346
+ text: z.ZodString;
1347
+ maxLength: z.ZodOptional<z.ZodInt>;
1348
+ color: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1349
+ text: "text";
1350
+ frame: "frame";
1351
+ accent: "accent";
1352
+ background: "background";
1353
+ }>, z.ZodString]>, z.ZodObject<{
1354
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1355
+ text: "text";
1356
+ frame: "frame";
1357
+ accent: "accent";
1358
+ background: "background";
1359
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1360
+ text: "text";
1361
+ frame: "frame";
1362
+ accent: "accent";
1363
+ background: "background";
1364
+ }>, z.ZodString]>], null>;
1365
+ amount: z.ZodNumber;
1366
+ }, z.core.$strict>]>;
1367
+ weight: z.ZodOptional<z.ZodEnum<{
1368
+ bold: "bold";
1369
+ regular: "regular";
1370
+ }>>;
1371
+ type: z.ZodLiteral<"text">;
1372
+ }, z.core.$strict>, z.ZodObject<{
1373
+ curve: z.ZodObject<{
1374
+ cx: z.ZodNumber;
1375
+ cy: z.ZodNumber;
1376
+ radius: z.ZodNumber;
1377
+ side: z.ZodEnum<{
1378
+ top: "top";
1379
+ bottom: "bottom";
1380
+ }>;
1381
+ spread: z.ZodOptional<z.ZodNumber>;
1382
+ }, z.core.$strict>;
1383
+ fontSize: z.ZodNumber;
1384
+ id: z.ZodString;
1385
+ slot: z.ZodEnum<{
1386
+ primary: "primary";
1387
+ secondary: "secondary";
1388
+ fixed: "fixed";
1389
+ }>;
1390
+ text: z.ZodString;
1391
+ maxLength: z.ZodOptional<z.ZodInt>;
1392
+ color: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1393
+ text: "text";
1394
+ frame: "frame";
1395
+ accent: "accent";
1396
+ background: "background";
1397
+ }>, z.ZodString]>, z.ZodObject<{
1398
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1399
+ text: "text";
1400
+ frame: "frame";
1401
+ accent: "accent";
1402
+ background: "background";
1403
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1404
+ text: "text";
1405
+ frame: "frame";
1406
+ accent: "accent";
1407
+ background: "background";
1408
+ }>, z.ZodString]>], null>;
1409
+ amount: z.ZodNumber;
1410
+ }, z.core.$strict>]>;
1411
+ weight: z.ZodOptional<z.ZodEnum<{
1412
+ bold: "bold";
1413
+ regular: "regular";
1414
+ }>>;
1415
+ type: z.ZodLiteral<"curved">;
1416
+ }, z.core.$strict>], "type">>;
1417
+ bleed: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1418
+ text: "text";
1419
+ frame: "frame";
1420
+ accent: "accent";
1421
+ background: "background";
1422
+ }>, z.ZodString]>, z.ZodObject<{
1423
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1424
+ text: "text";
1425
+ frame: "frame";
1426
+ accent: "accent";
1427
+ background: "background";
1428
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1429
+ text: "text";
1430
+ frame: "frame";
1431
+ accent: "accent";
1432
+ background: "background";
1433
+ }>, z.ZodString]>], null>;
1434
+ amount: z.ZodNumber;
1435
+ }, z.core.$strict>]>]>>;
1436
+ }, z.core.$strict>;
1437
+ export type FrameSpecColor = z.infer<typeof frameSpecColorSchema>;
1438
+ export type FrameSpecPaint = z.infer<typeof frameSpecPaintSchema>;
1439
+ export type FrameSpecShape = z.infer<typeof frameSpecShapeSchema>;
1440
+ export type FrameSpecLabel = z.infer<typeof frameSpecLabelSchema>;
1441
+ export type FrameSpecIcon = (typeof FRAME_ICONS)[number];
1442
+ export type FrameSpec = z.infer<typeof frameSpecObjectSchema>;
1443
+ interface Box {
1444
+ x0: number;
1445
+ y0: number;
1446
+ x1: number;
1447
+ y1: number;
1448
+ }
1449
+ /** The code plus its padding: nothing may be drawn over it. */
1450
+ export declare function frameSpecQrZone(spec: FrameSpec): Box;
1451
+ /** The plate's padding around the code, in spec units. */
1452
+ export declare function frameSpecPadding(spec: FrameSpec): number;
1453
+ /**
1454
+ * Zod schema for a frame spec, with every limit and cross-field check
1455
+ * (FRAME_SPEC_LIMITS). Validate specs from users with this before storing
1456
+ * them; the engine validates again before drawing.
1457
+ */
1458
+ export declare const frameSpecSchema: z.ZodObject<{
1459
+ kind: z.ZodLiteral<"qrdx.frame">;
1460
+ version: z.ZodLiteral<1>;
1461
+ artboard: z.ZodObject<{
1462
+ width: z.ZodNumber;
1463
+ height: z.ZodNumber;
1464
+ }, z.core.$strict>;
1465
+ qr: z.ZodObject<{
1466
+ x: z.ZodNumber;
1467
+ y: z.ZodNumber;
1468
+ size: z.ZodNumber;
1469
+ padding: z.ZodOptional<z.ZodNumber>;
1470
+ radius: z.ZodOptional<z.ZodNumber>;
1471
+ }, z.core.$strict>;
1472
+ colors: z.ZodObject<{
1473
+ frame: z.ZodString;
1474
+ text: z.ZodOptional<z.ZodString>;
1475
+ accent: z.ZodOptional<z.ZodString>;
1476
+ }, z.core.$strict>;
1477
+ shapes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1478
+ radius: z.ZodOptional<z.ZodNumber>;
1479
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1480
+ text: "text";
1481
+ frame: "frame";
1482
+ accent: "accent";
1483
+ background: "background";
1484
+ }>, z.ZodString]>, z.ZodObject<{
1485
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1486
+ text: "text";
1487
+ frame: "frame";
1488
+ accent: "accent";
1489
+ background: "background";
1490
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1491
+ text: "text";
1492
+ frame: "frame";
1493
+ accent: "accent";
1494
+ background: "background";
1495
+ }>, z.ZodString]>], null>;
1496
+ amount: z.ZodNumber;
1497
+ }, z.core.$strict>]>, z.ZodObject<{
1498
+ gradient: z.ZodObject<{
1499
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1500
+ text: "text";
1501
+ frame: "frame";
1502
+ accent: "accent";
1503
+ background: "background";
1504
+ }>, z.ZodString]>, z.ZodObject<{
1505
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1506
+ text: "text";
1507
+ frame: "frame";
1508
+ accent: "accent";
1509
+ background: "background";
1510
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1511
+ text: "text";
1512
+ frame: "frame";
1513
+ accent: "accent";
1514
+ background: "background";
1515
+ }>, z.ZodString]>], null>;
1516
+ amount: z.ZodNumber;
1517
+ }, z.core.$strict>]>;
1518
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1519
+ text: "text";
1520
+ frame: "frame";
1521
+ accent: "accent";
1522
+ background: "background";
1523
+ }>, z.ZodString]>, z.ZodObject<{
1524
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1525
+ text: "text";
1526
+ frame: "frame";
1527
+ accent: "accent";
1528
+ background: "background";
1529
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1530
+ text: "text";
1531
+ frame: "frame";
1532
+ accent: "accent";
1533
+ background: "background";
1534
+ }>, z.ZodString]>], null>;
1535
+ amount: z.ZodNumber;
1536
+ }, z.core.$strict>]>;
1537
+ direction: z.ZodOptional<z.ZodEnum<{
1538
+ horizontal: "horizontal";
1539
+ vertical: "vertical";
1540
+ }>>;
1541
+ steps: z.ZodOptional<z.ZodInt>;
1542
+ }, z.core.$strict>;
1543
+ }, z.core.$strict>]>;
1544
+ hole: z.ZodOptional<z.ZodObject<{
1545
+ radius: z.ZodOptional<z.ZodNumber>;
1546
+ x: z.ZodNumber;
1547
+ y: z.ZodNumber;
1548
+ width: z.ZodNumber;
1549
+ height: z.ZodNumber;
1550
+ }, z.core.$strict>>;
1551
+ x: z.ZodNumber;
1552
+ y: z.ZodNumber;
1553
+ width: z.ZodNumber;
1554
+ height: z.ZodNumber;
1555
+ type: z.ZodLiteral<"rect">;
1556
+ }, z.core.$strict>, z.ZodObject<{
1557
+ type: z.ZodLiteral<"circle">;
1558
+ cx: z.ZodNumber;
1559
+ cy: z.ZodNumber;
1560
+ r: z.ZodNumber;
1561
+ hole: z.ZodOptional<z.ZodNumber>;
1562
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1563
+ text: "text";
1564
+ frame: "frame";
1565
+ accent: "accent";
1566
+ background: "background";
1567
+ }>, z.ZodString]>, z.ZodObject<{
1568
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1569
+ text: "text";
1570
+ frame: "frame";
1571
+ accent: "accent";
1572
+ background: "background";
1573
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1574
+ text: "text";
1575
+ frame: "frame";
1576
+ accent: "accent";
1577
+ background: "background";
1578
+ }>, z.ZodString]>], null>;
1579
+ amount: z.ZodNumber;
1580
+ }, z.core.$strict>]>, z.ZodObject<{
1581
+ gradient: z.ZodObject<{
1582
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1583
+ text: "text";
1584
+ frame: "frame";
1585
+ accent: "accent";
1586
+ background: "background";
1587
+ }>, z.ZodString]>, z.ZodObject<{
1588
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1589
+ text: "text";
1590
+ frame: "frame";
1591
+ accent: "accent";
1592
+ background: "background";
1593
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1594
+ text: "text";
1595
+ frame: "frame";
1596
+ accent: "accent";
1597
+ background: "background";
1598
+ }>, z.ZodString]>], null>;
1599
+ amount: z.ZodNumber;
1600
+ }, z.core.$strict>]>;
1601
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1602
+ text: "text";
1603
+ frame: "frame";
1604
+ accent: "accent";
1605
+ background: "background";
1606
+ }>, z.ZodString]>, z.ZodObject<{
1607
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1608
+ text: "text";
1609
+ frame: "frame";
1610
+ accent: "accent";
1611
+ background: "background";
1612
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1613
+ text: "text";
1614
+ frame: "frame";
1615
+ accent: "accent";
1616
+ background: "background";
1617
+ }>, z.ZodString]>], null>;
1618
+ amount: z.ZodNumber;
1619
+ }, z.core.$strict>]>;
1620
+ direction: z.ZodOptional<z.ZodEnum<{
1621
+ horizontal: "horizontal";
1622
+ vertical: "vertical";
1623
+ }>>;
1624
+ steps: z.ZodOptional<z.ZodInt>;
1625
+ }, z.core.$strict>;
1626
+ }, z.core.$strict>]>;
1627
+ }, z.core.$strict>, z.ZodObject<{
1628
+ type: z.ZodLiteral<"ellipse">;
1629
+ cx: z.ZodNumber;
1630
+ cy: z.ZodNumber;
1631
+ rx: z.ZodNumber;
1632
+ ry: z.ZodNumber;
1633
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1634
+ text: "text";
1635
+ frame: "frame";
1636
+ accent: "accent";
1637
+ background: "background";
1638
+ }>, z.ZodString]>, z.ZodObject<{
1639
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1640
+ text: "text";
1641
+ frame: "frame";
1642
+ accent: "accent";
1643
+ background: "background";
1644
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1645
+ text: "text";
1646
+ frame: "frame";
1647
+ accent: "accent";
1648
+ background: "background";
1649
+ }>, z.ZodString]>], null>;
1650
+ amount: z.ZodNumber;
1651
+ }, z.core.$strict>]>, z.ZodObject<{
1652
+ gradient: z.ZodObject<{
1653
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1654
+ text: "text";
1655
+ frame: "frame";
1656
+ accent: "accent";
1657
+ background: "background";
1658
+ }>, z.ZodString]>, z.ZodObject<{
1659
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1660
+ text: "text";
1661
+ frame: "frame";
1662
+ accent: "accent";
1663
+ background: "background";
1664
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1665
+ text: "text";
1666
+ frame: "frame";
1667
+ accent: "accent";
1668
+ background: "background";
1669
+ }>, z.ZodString]>], null>;
1670
+ amount: z.ZodNumber;
1671
+ }, z.core.$strict>]>;
1672
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1673
+ text: "text";
1674
+ frame: "frame";
1675
+ accent: "accent";
1676
+ background: "background";
1677
+ }>, z.ZodString]>, z.ZodObject<{
1678
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1679
+ text: "text";
1680
+ frame: "frame";
1681
+ accent: "accent";
1682
+ background: "background";
1683
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1684
+ text: "text";
1685
+ frame: "frame";
1686
+ accent: "accent";
1687
+ background: "background";
1688
+ }>, z.ZodString]>], null>;
1689
+ amount: z.ZodNumber;
1690
+ }, z.core.$strict>]>;
1691
+ direction: z.ZodOptional<z.ZodEnum<{
1692
+ horizontal: "horizontal";
1693
+ vertical: "vertical";
1694
+ }>>;
1695
+ steps: z.ZodOptional<z.ZodInt>;
1696
+ }, z.core.$strict>;
1697
+ }, z.core.$strict>]>;
1698
+ }, z.core.$strict>, z.ZodObject<{
1699
+ type: z.ZodLiteral<"polygon">;
1700
+ points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1701
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1702
+ text: "text";
1703
+ frame: "frame";
1704
+ accent: "accent";
1705
+ background: "background";
1706
+ }>, z.ZodString]>, z.ZodObject<{
1707
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1708
+ text: "text";
1709
+ frame: "frame";
1710
+ accent: "accent";
1711
+ background: "background";
1712
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1713
+ text: "text";
1714
+ frame: "frame";
1715
+ accent: "accent";
1716
+ background: "background";
1717
+ }>, z.ZodString]>], null>;
1718
+ amount: z.ZodNumber;
1719
+ }, z.core.$strict>]>, z.ZodObject<{
1720
+ gradient: z.ZodObject<{
1721
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1722
+ text: "text";
1723
+ frame: "frame";
1724
+ accent: "accent";
1725
+ background: "background";
1726
+ }>, z.ZodString]>, z.ZodObject<{
1727
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1728
+ text: "text";
1729
+ frame: "frame";
1730
+ accent: "accent";
1731
+ background: "background";
1732
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1733
+ text: "text";
1734
+ frame: "frame";
1735
+ accent: "accent";
1736
+ background: "background";
1737
+ }>, z.ZodString]>], null>;
1738
+ amount: z.ZodNumber;
1739
+ }, z.core.$strict>]>;
1740
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1741
+ text: "text";
1742
+ frame: "frame";
1743
+ accent: "accent";
1744
+ background: "background";
1745
+ }>, z.ZodString]>, z.ZodObject<{
1746
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1747
+ text: "text";
1748
+ frame: "frame";
1749
+ accent: "accent";
1750
+ background: "background";
1751
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1752
+ text: "text";
1753
+ frame: "frame";
1754
+ accent: "accent";
1755
+ background: "background";
1756
+ }>, z.ZodString]>], null>;
1757
+ amount: z.ZodNumber;
1758
+ }, z.core.$strict>]>;
1759
+ direction: z.ZodOptional<z.ZodEnum<{
1760
+ horizontal: "horizontal";
1761
+ vertical: "vertical";
1762
+ }>>;
1763
+ steps: z.ZodOptional<z.ZodInt>;
1764
+ }, z.core.$strict>;
1765
+ }, z.core.$strict>]>;
1766
+ }, z.core.$strict>, z.ZodObject<{
1767
+ type: z.ZodLiteral<"path">;
1768
+ d: z.ZodString;
1769
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1770
+ text: "text";
1771
+ frame: "frame";
1772
+ accent: "accent";
1773
+ background: "background";
1774
+ }>, z.ZodString]>, z.ZodObject<{
1775
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1776
+ text: "text";
1777
+ frame: "frame";
1778
+ accent: "accent";
1779
+ background: "background";
1780
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1781
+ text: "text";
1782
+ frame: "frame";
1783
+ accent: "accent";
1784
+ background: "background";
1785
+ }>, z.ZodString]>], null>;
1786
+ amount: z.ZodNumber;
1787
+ }, z.core.$strict>]>, z.ZodObject<{
1788
+ gradient: z.ZodObject<{
1789
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1790
+ text: "text";
1791
+ frame: "frame";
1792
+ accent: "accent";
1793
+ background: "background";
1794
+ }>, z.ZodString]>, z.ZodObject<{
1795
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1796
+ text: "text";
1797
+ frame: "frame";
1798
+ accent: "accent";
1799
+ background: "background";
1800
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1801
+ text: "text";
1802
+ frame: "frame";
1803
+ accent: "accent";
1804
+ background: "background";
1805
+ }>, z.ZodString]>], null>;
1806
+ amount: z.ZodNumber;
1807
+ }, z.core.$strict>]>;
1808
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1809
+ text: "text";
1810
+ frame: "frame";
1811
+ accent: "accent";
1812
+ background: "background";
1813
+ }>, z.ZodString]>, z.ZodObject<{
1814
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1815
+ text: "text";
1816
+ frame: "frame";
1817
+ accent: "accent";
1818
+ background: "background";
1819
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1820
+ text: "text";
1821
+ frame: "frame";
1822
+ accent: "accent";
1823
+ background: "background";
1824
+ }>, z.ZodString]>], null>;
1825
+ amount: z.ZodNumber;
1826
+ }, z.core.$strict>]>;
1827
+ direction: z.ZodOptional<z.ZodEnum<{
1828
+ horizontal: "horizontal";
1829
+ vertical: "vertical";
1830
+ }>>;
1831
+ steps: z.ZodOptional<z.ZodInt>;
1832
+ }, z.core.$strict>;
1833
+ }, z.core.$strict>]>;
1834
+ fillRule: z.ZodOptional<z.ZodEnum<{
1835
+ nonzero: "nonzero";
1836
+ evenodd: "evenodd";
1837
+ }>>;
1838
+ }, z.core.$strict>, z.ZodObject<{
1839
+ type: z.ZodLiteral<"line">;
1840
+ x1: z.ZodNumber;
1841
+ y1: z.ZodNumber;
1842
+ x2: z.ZodNumber;
1843
+ y2: z.ZodNumber;
1844
+ width: z.ZodNumber;
1845
+ cap: z.ZodOptional<z.ZodEnum<{
1846
+ butt: "butt";
1847
+ round: "round";
1848
+ }>>;
1849
+ dash: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1850
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1851
+ text: "text";
1852
+ frame: "frame";
1853
+ accent: "accent";
1854
+ background: "background";
1855
+ }>, z.ZodString]>, z.ZodObject<{
1856
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1857
+ text: "text";
1858
+ frame: "frame";
1859
+ accent: "accent";
1860
+ background: "background";
1861
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1862
+ text: "text";
1863
+ frame: "frame";
1864
+ accent: "accent";
1865
+ background: "background";
1866
+ }>, z.ZodString]>], null>;
1867
+ amount: z.ZodNumber;
1868
+ }, z.core.$strict>]>, z.ZodObject<{
1869
+ gradient: z.ZodObject<{
1870
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1871
+ text: "text";
1872
+ frame: "frame";
1873
+ accent: "accent";
1874
+ background: "background";
1875
+ }>, z.ZodString]>, z.ZodObject<{
1876
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1877
+ text: "text";
1878
+ frame: "frame";
1879
+ accent: "accent";
1880
+ background: "background";
1881
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1882
+ text: "text";
1883
+ frame: "frame";
1884
+ accent: "accent";
1885
+ background: "background";
1886
+ }>, z.ZodString]>], null>;
1887
+ amount: z.ZodNumber;
1888
+ }, z.core.$strict>]>;
1889
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1890
+ text: "text";
1891
+ frame: "frame";
1892
+ accent: "accent";
1893
+ background: "background";
1894
+ }>, z.ZodString]>, z.ZodObject<{
1895
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1896
+ text: "text";
1897
+ frame: "frame";
1898
+ accent: "accent";
1899
+ background: "background";
1900
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1901
+ text: "text";
1902
+ frame: "frame";
1903
+ accent: "accent";
1904
+ background: "background";
1905
+ }>, z.ZodString]>], null>;
1906
+ amount: z.ZodNumber;
1907
+ }, z.core.$strict>]>;
1908
+ direction: z.ZodOptional<z.ZodEnum<{
1909
+ horizontal: "horizontal";
1910
+ vertical: "vertical";
1911
+ }>>;
1912
+ steps: z.ZodOptional<z.ZodInt>;
1913
+ }, z.core.$strict>;
1914
+ }, z.core.$strict>]>;
1915
+ }, z.core.$strict>, z.ZodObject<{
1916
+ type: z.ZodLiteral<"icon">;
1917
+ icon: z.ZodEnum<{
1918
+ check: "check";
1919
+ heart: "heart";
1920
+ star: "star";
1921
+ phone: "phone";
1922
+ wifi: "wifi";
1923
+ headphones: "headphones";
1924
+ calendar: "calendar";
1925
+ user: "user";
1926
+ chat: "chat";
1927
+ bag: "bag";
1928
+ bell: "bell";
1929
+ cup: "cup";
1930
+ card: "card";
1931
+ info: "info";
1932
+ home: "home";
1933
+ pin: "pin";
1934
+ share: "share";
1935
+ download: "download";
1936
+ clock: "clock";
1937
+ snowflake: "snowflake";
1938
+ pumpkin: "pumpkin";
1939
+ tree: "tree";
1940
+ sparkle: "sparkle";
1941
+ gift: "gift";
1942
+ }>;
1943
+ x: z.ZodNumber;
1944
+ y: z.ZodNumber;
1945
+ size: z.ZodNumber;
1946
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1947
+ text: "text";
1948
+ frame: "frame";
1949
+ accent: "accent";
1950
+ background: "background";
1951
+ }>, z.ZodString]>, z.ZodObject<{
1952
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1953
+ text: "text";
1954
+ frame: "frame";
1955
+ accent: "accent";
1956
+ background: "background";
1957
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1958
+ text: "text";
1959
+ frame: "frame";
1960
+ accent: "accent";
1961
+ background: "background";
1962
+ }>, z.ZodString]>], null>;
1963
+ amount: z.ZodNumber;
1964
+ }, z.core.$strict>]>, z.ZodObject<{
1965
+ gradient: z.ZodObject<{
1966
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1967
+ text: "text";
1968
+ frame: "frame";
1969
+ accent: "accent";
1970
+ background: "background";
1971
+ }>, z.ZodString]>, z.ZodObject<{
1972
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1973
+ text: "text";
1974
+ frame: "frame";
1975
+ accent: "accent";
1976
+ background: "background";
1977
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1978
+ text: "text";
1979
+ frame: "frame";
1980
+ accent: "accent";
1981
+ background: "background";
1982
+ }>, z.ZodString]>], null>;
1983
+ amount: z.ZodNumber;
1984
+ }, z.core.$strict>]>;
1985
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
1986
+ text: "text";
1987
+ frame: "frame";
1988
+ accent: "accent";
1989
+ background: "background";
1990
+ }>, z.ZodString]>, z.ZodObject<{
1991
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
1992
+ text: "text";
1993
+ frame: "frame";
1994
+ accent: "accent";
1995
+ background: "background";
1996
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
1997
+ text: "text";
1998
+ frame: "frame";
1999
+ accent: "accent";
2000
+ background: "background";
2001
+ }>, z.ZodString]>], null>;
2002
+ amount: z.ZodNumber;
2003
+ }, z.core.$strict>]>;
2004
+ direction: z.ZodOptional<z.ZodEnum<{
2005
+ horizontal: "horizontal";
2006
+ vertical: "vertical";
2007
+ }>>;
2008
+ steps: z.ZodOptional<z.ZodInt>;
2009
+ }, z.core.$strict>;
2010
+ }, z.core.$strict>]>;
2011
+ }, z.core.$strict>], "type">>;
2012
+ labels: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2013
+ box: z.ZodObject<{
2014
+ x: z.ZodNumber;
2015
+ y: z.ZodNumber;
2016
+ width: z.ZodNumber;
2017
+ height: z.ZodNumber;
2018
+ }, z.core.$strict>;
2019
+ align: z.ZodOptional<z.ZodEnum<{
2020
+ start: "start";
2021
+ middle: "middle";
2022
+ end: "end";
2023
+ }>>;
2024
+ fontSize: z.ZodOptional<z.ZodNumber>;
2025
+ id: z.ZodString;
2026
+ slot: z.ZodEnum<{
2027
+ primary: "primary";
2028
+ secondary: "secondary";
2029
+ fixed: "fixed";
2030
+ }>;
2031
+ text: z.ZodString;
2032
+ maxLength: z.ZodOptional<z.ZodInt>;
2033
+ color: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2034
+ text: "text";
2035
+ frame: "frame";
2036
+ accent: "accent";
2037
+ background: "background";
2038
+ }>, z.ZodString]>, z.ZodObject<{
2039
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2040
+ text: "text";
2041
+ frame: "frame";
2042
+ accent: "accent";
2043
+ background: "background";
2044
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2045
+ text: "text";
2046
+ frame: "frame";
2047
+ accent: "accent";
2048
+ background: "background";
2049
+ }>, z.ZodString]>], null>;
2050
+ amount: z.ZodNumber;
2051
+ }, z.core.$strict>]>;
2052
+ weight: z.ZodOptional<z.ZodEnum<{
2053
+ bold: "bold";
2054
+ regular: "regular";
2055
+ }>>;
2056
+ type: z.ZodLiteral<"text">;
2057
+ }, z.core.$strict>, z.ZodObject<{
2058
+ curve: z.ZodObject<{
2059
+ cx: z.ZodNumber;
2060
+ cy: z.ZodNumber;
2061
+ radius: z.ZodNumber;
2062
+ side: z.ZodEnum<{
2063
+ top: "top";
2064
+ bottom: "bottom";
2065
+ }>;
2066
+ spread: z.ZodOptional<z.ZodNumber>;
2067
+ }, z.core.$strict>;
2068
+ fontSize: z.ZodNumber;
2069
+ id: z.ZodString;
2070
+ slot: z.ZodEnum<{
2071
+ primary: "primary";
2072
+ secondary: "secondary";
2073
+ fixed: "fixed";
2074
+ }>;
2075
+ text: z.ZodString;
2076
+ maxLength: z.ZodOptional<z.ZodInt>;
2077
+ color: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2078
+ text: "text";
2079
+ frame: "frame";
2080
+ accent: "accent";
2081
+ background: "background";
2082
+ }>, z.ZodString]>, z.ZodObject<{
2083
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2084
+ text: "text";
2085
+ frame: "frame";
2086
+ accent: "accent";
2087
+ background: "background";
2088
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2089
+ text: "text";
2090
+ frame: "frame";
2091
+ accent: "accent";
2092
+ background: "background";
2093
+ }>, z.ZodString]>], null>;
2094
+ amount: z.ZodNumber;
2095
+ }, z.core.$strict>]>;
2096
+ weight: z.ZodOptional<z.ZodEnum<{
2097
+ bold: "bold";
2098
+ regular: "regular";
2099
+ }>>;
2100
+ type: z.ZodLiteral<"curved">;
2101
+ }, z.core.$strict>], "type">>;
2102
+ bleed: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2103
+ text: "text";
2104
+ frame: "frame";
2105
+ accent: "accent";
2106
+ background: "background";
2107
+ }>, z.ZodString]>, z.ZodObject<{
2108
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2109
+ text: "text";
2110
+ frame: "frame";
2111
+ accent: "accent";
2112
+ background: "background";
2113
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2114
+ text: "text";
2115
+ frame: "frame";
2116
+ accent: "accent";
2117
+ background: "background";
2118
+ }>, z.ZodString]>], null>;
2119
+ amount: z.ZodNumber;
2120
+ }, z.core.$strict>]>]>>;
2121
+ }, z.core.$strict>;
2122
+ /** Human-readable problems with `input` as a frame spec (empty when valid). */
2123
+ export declare function getFrameSpecIssues(input: unknown): string[];
2124
+ /**
2125
+ * A frame drawn from a spec: `{ style: "custom", spec }`. `text` and
2126
+ * `secondaryText` fill the spec's primary and secondary labels; `color`,
2127
+ * `textColor` and `secondaryColor` override its frame, text and accent
2128
+ * colors; `fontScale` scales its labels.
2129
+ */
2130
+ export declare const customFrameSchema: z.ZodObject<{
2131
+ text: z.ZodOptional<z.ZodString>;
2132
+ color: z.ZodOptional<z.ZodString>;
2133
+ textColor: z.ZodOptional<z.ZodString>;
2134
+ secondaryText: z.ZodOptional<z.ZodString>;
2135
+ secondaryColor: z.ZodOptional<z.ZodString>;
2136
+ fontScale: z.ZodOptional<z.ZodNumber>;
2137
+ style: z.ZodLiteral<"custom">;
2138
+ spec: z.ZodObject<{
2139
+ kind: z.ZodLiteral<"qrdx.frame">;
2140
+ version: z.ZodLiteral<1>;
2141
+ artboard: z.ZodObject<{
2142
+ width: z.ZodNumber;
2143
+ height: z.ZodNumber;
2144
+ }, z.core.$strict>;
2145
+ qr: z.ZodObject<{
2146
+ x: z.ZodNumber;
2147
+ y: z.ZodNumber;
2148
+ size: z.ZodNumber;
2149
+ padding: z.ZodOptional<z.ZodNumber>;
2150
+ radius: z.ZodOptional<z.ZodNumber>;
2151
+ }, z.core.$strict>;
2152
+ colors: z.ZodObject<{
2153
+ frame: z.ZodString;
2154
+ text: z.ZodOptional<z.ZodString>;
2155
+ accent: z.ZodOptional<z.ZodString>;
2156
+ }, z.core.$strict>;
2157
+ shapes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2158
+ radius: z.ZodOptional<z.ZodNumber>;
2159
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2160
+ text: "text";
2161
+ frame: "frame";
2162
+ accent: "accent";
2163
+ background: "background";
2164
+ }>, z.ZodString]>, z.ZodObject<{
2165
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2166
+ text: "text";
2167
+ frame: "frame";
2168
+ accent: "accent";
2169
+ background: "background";
2170
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2171
+ text: "text";
2172
+ frame: "frame";
2173
+ accent: "accent";
2174
+ background: "background";
2175
+ }>, z.ZodString]>], null>;
2176
+ amount: z.ZodNumber;
2177
+ }, z.core.$strict>]>, z.ZodObject<{
2178
+ gradient: z.ZodObject<{
2179
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2180
+ text: "text";
2181
+ frame: "frame";
2182
+ accent: "accent";
2183
+ background: "background";
2184
+ }>, z.ZodString]>, z.ZodObject<{
2185
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2186
+ text: "text";
2187
+ frame: "frame";
2188
+ accent: "accent";
2189
+ background: "background";
2190
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2191
+ text: "text";
2192
+ frame: "frame";
2193
+ accent: "accent";
2194
+ background: "background";
2195
+ }>, z.ZodString]>], null>;
2196
+ amount: z.ZodNumber;
2197
+ }, z.core.$strict>]>;
2198
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2199
+ text: "text";
2200
+ frame: "frame";
2201
+ accent: "accent";
2202
+ background: "background";
2203
+ }>, z.ZodString]>, z.ZodObject<{
2204
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2205
+ text: "text";
2206
+ frame: "frame";
2207
+ accent: "accent";
2208
+ background: "background";
2209
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2210
+ text: "text";
2211
+ frame: "frame";
2212
+ accent: "accent";
2213
+ background: "background";
2214
+ }>, z.ZodString]>], null>;
2215
+ amount: z.ZodNumber;
2216
+ }, z.core.$strict>]>;
2217
+ direction: z.ZodOptional<z.ZodEnum<{
2218
+ horizontal: "horizontal";
2219
+ vertical: "vertical";
2220
+ }>>;
2221
+ steps: z.ZodOptional<z.ZodInt>;
2222
+ }, z.core.$strict>;
2223
+ }, z.core.$strict>]>;
2224
+ hole: z.ZodOptional<z.ZodObject<{
2225
+ radius: z.ZodOptional<z.ZodNumber>;
2226
+ x: z.ZodNumber;
2227
+ y: z.ZodNumber;
2228
+ width: z.ZodNumber;
2229
+ height: z.ZodNumber;
2230
+ }, z.core.$strict>>;
2231
+ x: z.ZodNumber;
2232
+ y: z.ZodNumber;
2233
+ width: z.ZodNumber;
2234
+ height: z.ZodNumber;
2235
+ type: z.ZodLiteral<"rect">;
2236
+ }, z.core.$strict>, z.ZodObject<{
2237
+ type: z.ZodLiteral<"circle">;
2238
+ cx: z.ZodNumber;
2239
+ cy: z.ZodNumber;
2240
+ r: z.ZodNumber;
2241
+ hole: z.ZodOptional<z.ZodNumber>;
2242
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2243
+ text: "text";
2244
+ frame: "frame";
2245
+ accent: "accent";
2246
+ background: "background";
2247
+ }>, z.ZodString]>, z.ZodObject<{
2248
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2249
+ text: "text";
2250
+ frame: "frame";
2251
+ accent: "accent";
2252
+ background: "background";
2253
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2254
+ text: "text";
2255
+ frame: "frame";
2256
+ accent: "accent";
2257
+ background: "background";
2258
+ }>, z.ZodString]>], null>;
2259
+ amount: z.ZodNumber;
2260
+ }, z.core.$strict>]>, z.ZodObject<{
2261
+ gradient: z.ZodObject<{
2262
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2263
+ text: "text";
2264
+ frame: "frame";
2265
+ accent: "accent";
2266
+ background: "background";
2267
+ }>, z.ZodString]>, z.ZodObject<{
2268
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2269
+ text: "text";
2270
+ frame: "frame";
2271
+ accent: "accent";
2272
+ background: "background";
2273
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2274
+ text: "text";
2275
+ frame: "frame";
2276
+ accent: "accent";
2277
+ background: "background";
2278
+ }>, z.ZodString]>], null>;
2279
+ amount: z.ZodNumber;
2280
+ }, z.core.$strict>]>;
2281
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2282
+ text: "text";
2283
+ frame: "frame";
2284
+ accent: "accent";
2285
+ background: "background";
2286
+ }>, z.ZodString]>, z.ZodObject<{
2287
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2288
+ text: "text";
2289
+ frame: "frame";
2290
+ accent: "accent";
2291
+ background: "background";
2292
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2293
+ text: "text";
2294
+ frame: "frame";
2295
+ accent: "accent";
2296
+ background: "background";
2297
+ }>, z.ZodString]>], null>;
2298
+ amount: z.ZodNumber;
2299
+ }, z.core.$strict>]>;
2300
+ direction: z.ZodOptional<z.ZodEnum<{
2301
+ horizontal: "horizontal";
2302
+ vertical: "vertical";
2303
+ }>>;
2304
+ steps: z.ZodOptional<z.ZodInt>;
2305
+ }, z.core.$strict>;
2306
+ }, z.core.$strict>]>;
2307
+ }, z.core.$strict>, z.ZodObject<{
2308
+ type: z.ZodLiteral<"ellipse">;
2309
+ cx: z.ZodNumber;
2310
+ cy: z.ZodNumber;
2311
+ rx: z.ZodNumber;
2312
+ ry: z.ZodNumber;
2313
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2314
+ text: "text";
2315
+ frame: "frame";
2316
+ accent: "accent";
2317
+ background: "background";
2318
+ }>, z.ZodString]>, z.ZodObject<{
2319
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2320
+ text: "text";
2321
+ frame: "frame";
2322
+ accent: "accent";
2323
+ background: "background";
2324
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2325
+ text: "text";
2326
+ frame: "frame";
2327
+ accent: "accent";
2328
+ background: "background";
2329
+ }>, z.ZodString]>], null>;
2330
+ amount: z.ZodNumber;
2331
+ }, z.core.$strict>]>, z.ZodObject<{
2332
+ gradient: z.ZodObject<{
2333
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2334
+ text: "text";
2335
+ frame: "frame";
2336
+ accent: "accent";
2337
+ background: "background";
2338
+ }>, z.ZodString]>, z.ZodObject<{
2339
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2340
+ text: "text";
2341
+ frame: "frame";
2342
+ accent: "accent";
2343
+ background: "background";
2344
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2345
+ text: "text";
2346
+ frame: "frame";
2347
+ accent: "accent";
2348
+ background: "background";
2349
+ }>, z.ZodString]>], null>;
2350
+ amount: z.ZodNumber;
2351
+ }, z.core.$strict>]>;
2352
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2353
+ text: "text";
2354
+ frame: "frame";
2355
+ accent: "accent";
2356
+ background: "background";
2357
+ }>, z.ZodString]>, z.ZodObject<{
2358
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2359
+ text: "text";
2360
+ frame: "frame";
2361
+ accent: "accent";
2362
+ background: "background";
2363
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2364
+ text: "text";
2365
+ frame: "frame";
2366
+ accent: "accent";
2367
+ background: "background";
2368
+ }>, z.ZodString]>], null>;
2369
+ amount: z.ZodNumber;
2370
+ }, z.core.$strict>]>;
2371
+ direction: z.ZodOptional<z.ZodEnum<{
2372
+ horizontal: "horizontal";
2373
+ vertical: "vertical";
2374
+ }>>;
2375
+ steps: z.ZodOptional<z.ZodInt>;
2376
+ }, z.core.$strict>;
2377
+ }, z.core.$strict>]>;
2378
+ }, z.core.$strict>, z.ZodObject<{
2379
+ type: z.ZodLiteral<"polygon">;
2380
+ points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
2381
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2382
+ text: "text";
2383
+ frame: "frame";
2384
+ accent: "accent";
2385
+ background: "background";
2386
+ }>, z.ZodString]>, z.ZodObject<{
2387
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2388
+ text: "text";
2389
+ frame: "frame";
2390
+ accent: "accent";
2391
+ background: "background";
2392
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2393
+ text: "text";
2394
+ frame: "frame";
2395
+ accent: "accent";
2396
+ background: "background";
2397
+ }>, z.ZodString]>], null>;
2398
+ amount: z.ZodNumber;
2399
+ }, z.core.$strict>]>, z.ZodObject<{
2400
+ gradient: z.ZodObject<{
2401
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2402
+ text: "text";
2403
+ frame: "frame";
2404
+ accent: "accent";
2405
+ background: "background";
2406
+ }>, z.ZodString]>, z.ZodObject<{
2407
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2408
+ text: "text";
2409
+ frame: "frame";
2410
+ accent: "accent";
2411
+ background: "background";
2412
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2413
+ text: "text";
2414
+ frame: "frame";
2415
+ accent: "accent";
2416
+ background: "background";
2417
+ }>, z.ZodString]>], null>;
2418
+ amount: z.ZodNumber;
2419
+ }, z.core.$strict>]>;
2420
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2421
+ text: "text";
2422
+ frame: "frame";
2423
+ accent: "accent";
2424
+ background: "background";
2425
+ }>, z.ZodString]>, z.ZodObject<{
2426
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2427
+ text: "text";
2428
+ frame: "frame";
2429
+ accent: "accent";
2430
+ background: "background";
2431
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2432
+ text: "text";
2433
+ frame: "frame";
2434
+ accent: "accent";
2435
+ background: "background";
2436
+ }>, z.ZodString]>], null>;
2437
+ amount: z.ZodNumber;
2438
+ }, z.core.$strict>]>;
2439
+ direction: z.ZodOptional<z.ZodEnum<{
2440
+ horizontal: "horizontal";
2441
+ vertical: "vertical";
2442
+ }>>;
2443
+ steps: z.ZodOptional<z.ZodInt>;
2444
+ }, z.core.$strict>;
2445
+ }, z.core.$strict>]>;
2446
+ }, z.core.$strict>, z.ZodObject<{
2447
+ type: z.ZodLiteral<"path">;
2448
+ d: z.ZodString;
2449
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2450
+ text: "text";
2451
+ frame: "frame";
2452
+ accent: "accent";
2453
+ background: "background";
2454
+ }>, z.ZodString]>, z.ZodObject<{
2455
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2456
+ text: "text";
2457
+ frame: "frame";
2458
+ accent: "accent";
2459
+ background: "background";
2460
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2461
+ text: "text";
2462
+ frame: "frame";
2463
+ accent: "accent";
2464
+ background: "background";
2465
+ }>, z.ZodString]>], null>;
2466
+ amount: z.ZodNumber;
2467
+ }, z.core.$strict>]>, z.ZodObject<{
2468
+ gradient: z.ZodObject<{
2469
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2470
+ text: "text";
2471
+ frame: "frame";
2472
+ accent: "accent";
2473
+ background: "background";
2474
+ }>, z.ZodString]>, z.ZodObject<{
2475
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2476
+ text: "text";
2477
+ frame: "frame";
2478
+ accent: "accent";
2479
+ background: "background";
2480
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2481
+ text: "text";
2482
+ frame: "frame";
2483
+ accent: "accent";
2484
+ background: "background";
2485
+ }>, z.ZodString]>], null>;
2486
+ amount: z.ZodNumber;
2487
+ }, z.core.$strict>]>;
2488
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2489
+ text: "text";
2490
+ frame: "frame";
2491
+ accent: "accent";
2492
+ background: "background";
2493
+ }>, z.ZodString]>, z.ZodObject<{
2494
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2495
+ text: "text";
2496
+ frame: "frame";
2497
+ accent: "accent";
2498
+ background: "background";
2499
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2500
+ text: "text";
2501
+ frame: "frame";
2502
+ accent: "accent";
2503
+ background: "background";
2504
+ }>, z.ZodString]>], null>;
2505
+ amount: z.ZodNumber;
2506
+ }, z.core.$strict>]>;
2507
+ direction: z.ZodOptional<z.ZodEnum<{
2508
+ horizontal: "horizontal";
2509
+ vertical: "vertical";
2510
+ }>>;
2511
+ steps: z.ZodOptional<z.ZodInt>;
2512
+ }, z.core.$strict>;
2513
+ }, z.core.$strict>]>;
2514
+ fillRule: z.ZodOptional<z.ZodEnum<{
2515
+ nonzero: "nonzero";
2516
+ evenodd: "evenodd";
2517
+ }>>;
2518
+ }, z.core.$strict>, z.ZodObject<{
2519
+ type: z.ZodLiteral<"line">;
2520
+ x1: z.ZodNumber;
2521
+ y1: z.ZodNumber;
2522
+ x2: z.ZodNumber;
2523
+ y2: z.ZodNumber;
2524
+ width: z.ZodNumber;
2525
+ cap: z.ZodOptional<z.ZodEnum<{
2526
+ butt: "butt";
2527
+ round: "round";
2528
+ }>>;
2529
+ dash: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
2530
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2531
+ text: "text";
2532
+ frame: "frame";
2533
+ accent: "accent";
2534
+ background: "background";
2535
+ }>, z.ZodString]>, z.ZodObject<{
2536
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2537
+ text: "text";
2538
+ frame: "frame";
2539
+ accent: "accent";
2540
+ background: "background";
2541
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2542
+ text: "text";
2543
+ frame: "frame";
2544
+ accent: "accent";
2545
+ background: "background";
2546
+ }>, z.ZodString]>], null>;
2547
+ amount: z.ZodNumber;
2548
+ }, z.core.$strict>]>, z.ZodObject<{
2549
+ gradient: z.ZodObject<{
2550
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2551
+ text: "text";
2552
+ frame: "frame";
2553
+ accent: "accent";
2554
+ background: "background";
2555
+ }>, z.ZodString]>, z.ZodObject<{
2556
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2557
+ text: "text";
2558
+ frame: "frame";
2559
+ accent: "accent";
2560
+ background: "background";
2561
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2562
+ text: "text";
2563
+ frame: "frame";
2564
+ accent: "accent";
2565
+ background: "background";
2566
+ }>, z.ZodString]>], null>;
2567
+ amount: z.ZodNumber;
2568
+ }, z.core.$strict>]>;
2569
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2570
+ text: "text";
2571
+ frame: "frame";
2572
+ accent: "accent";
2573
+ background: "background";
2574
+ }>, z.ZodString]>, z.ZodObject<{
2575
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2576
+ text: "text";
2577
+ frame: "frame";
2578
+ accent: "accent";
2579
+ background: "background";
2580
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2581
+ text: "text";
2582
+ frame: "frame";
2583
+ accent: "accent";
2584
+ background: "background";
2585
+ }>, z.ZodString]>], null>;
2586
+ amount: z.ZodNumber;
2587
+ }, z.core.$strict>]>;
2588
+ direction: z.ZodOptional<z.ZodEnum<{
2589
+ horizontal: "horizontal";
2590
+ vertical: "vertical";
2591
+ }>>;
2592
+ steps: z.ZodOptional<z.ZodInt>;
2593
+ }, z.core.$strict>;
2594
+ }, z.core.$strict>]>;
2595
+ }, z.core.$strict>, z.ZodObject<{
2596
+ type: z.ZodLiteral<"icon">;
2597
+ icon: z.ZodEnum<{
2598
+ check: "check";
2599
+ heart: "heart";
2600
+ star: "star";
2601
+ phone: "phone";
2602
+ wifi: "wifi";
2603
+ headphones: "headphones";
2604
+ calendar: "calendar";
2605
+ user: "user";
2606
+ chat: "chat";
2607
+ bag: "bag";
2608
+ bell: "bell";
2609
+ cup: "cup";
2610
+ card: "card";
2611
+ info: "info";
2612
+ home: "home";
2613
+ pin: "pin";
2614
+ share: "share";
2615
+ download: "download";
2616
+ clock: "clock";
2617
+ snowflake: "snowflake";
2618
+ pumpkin: "pumpkin";
2619
+ tree: "tree";
2620
+ sparkle: "sparkle";
2621
+ gift: "gift";
2622
+ }>;
2623
+ x: z.ZodNumber;
2624
+ y: z.ZodNumber;
2625
+ size: z.ZodNumber;
2626
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2627
+ text: "text";
2628
+ frame: "frame";
2629
+ accent: "accent";
2630
+ background: "background";
2631
+ }>, z.ZodString]>, z.ZodObject<{
2632
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2633
+ text: "text";
2634
+ frame: "frame";
2635
+ accent: "accent";
2636
+ background: "background";
2637
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2638
+ text: "text";
2639
+ frame: "frame";
2640
+ accent: "accent";
2641
+ background: "background";
2642
+ }>, z.ZodString]>], null>;
2643
+ amount: z.ZodNumber;
2644
+ }, z.core.$strict>]>, z.ZodObject<{
2645
+ gradient: z.ZodObject<{
2646
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2647
+ text: "text";
2648
+ frame: "frame";
2649
+ accent: "accent";
2650
+ background: "background";
2651
+ }>, z.ZodString]>, z.ZodObject<{
2652
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2653
+ text: "text";
2654
+ frame: "frame";
2655
+ accent: "accent";
2656
+ background: "background";
2657
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2658
+ text: "text";
2659
+ frame: "frame";
2660
+ accent: "accent";
2661
+ background: "background";
2662
+ }>, z.ZodString]>], null>;
2663
+ amount: z.ZodNumber;
2664
+ }, z.core.$strict>]>;
2665
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2666
+ text: "text";
2667
+ frame: "frame";
2668
+ accent: "accent";
2669
+ background: "background";
2670
+ }>, z.ZodString]>, z.ZodObject<{
2671
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2672
+ text: "text";
2673
+ frame: "frame";
2674
+ accent: "accent";
2675
+ background: "background";
2676
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2677
+ text: "text";
2678
+ frame: "frame";
2679
+ accent: "accent";
2680
+ background: "background";
2681
+ }>, z.ZodString]>], null>;
2682
+ amount: z.ZodNumber;
2683
+ }, z.core.$strict>]>;
2684
+ direction: z.ZodOptional<z.ZodEnum<{
2685
+ horizontal: "horizontal";
2686
+ vertical: "vertical";
2687
+ }>>;
2688
+ steps: z.ZodOptional<z.ZodInt>;
2689
+ }, z.core.$strict>;
2690
+ }, z.core.$strict>]>;
2691
+ }, z.core.$strict>], "type">>;
2692
+ labels: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2693
+ box: z.ZodObject<{
2694
+ x: z.ZodNumber;
2695
+ y: z.ZodNumber;
2696
+ width: z.ZodNumber;
2697
+ height: z.ZodNumber;
2698
+ }, z.core.$strict>;
2699
+ align: z.ZodOptional<z.ZodEnum<{
2700
+ start: "start";
2701
+ middle: "middle";
2702
+ end: "end";
2703
+ }>>;
2704
+ fontSize: z.ZodOptional<z.ZodNumber>;
2705
+ id: z.ZodString;
2706
+ slot: z.ZodEnum<{
2707
+ primary: "primary";
2708
+ secondary: "secondary";
2709
+ fixed: "fixed";
2710
+ }>;
2711
+ text: z.ZodString;
2712
+ maxLength: z.ZodOptional<z.ZodInt>;
2713
+ color: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2714
+ text: "text";
2715
+ frame: "frame";
2716
+ accent: "accent";
2717
+ background: "background";
2718
+ }>, z.ZodString]>, z.ZodObject<{
2719
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2720
+ text: "text";
2721
+ frame: "frame";
2722
+ accent: "accent";
2723
+ background: "background";
2724
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2725
+ text: "text";
2726
+ frame: "frame";
2727
+ accent: "accent";
2728
+ background: "background";
2729
+ }>, z.ZodString]>], null>;
2730
+ amount: z.ZodNumber;
2731
+ }, z.core.$strict>]>;
2732
+ weight: z.ZodOptional<z.ZodEnum<{
2733
+ bold: "bold";
2734
+ regular: "regular";
2735
+ }>>;
2736
+ type: z.ZodLiteral<"text">;
2737
+ }, z.core.$strict>, z.ZodObject<{
2738
+ curve: z.ZodObject<{
2739
+ cx: z.ZodNumber;
2740
+ cy: z.ZodNumber;
2741
+ radius: z.ZodNumber;
2742
+ side: z.ZodEnum<{
2743
+ top: "top";
2744
+ bottom: "bottom";
2745
+ }>;
2746
+ spread: z.ZodOptional<z.ZodNumber>;
2747
+ }, z.core.$strict>;
2748
+ fontSize: z.ZodNumber;
2749
+ id: z.ZodString;
2750
+ slot: z.ZodEnum<{
2751
+ primary: "primary";
2752
+ secondary: "secondary";
2753
+ fixed: "fixed";
2754
+ }>;
2755
+ text: z.ZodString;
2756
+ maxLength: z.ZodOptional<z.ZodInt>;
2757
+ color: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2758
+ text: "text";
2759
+ frame: "frame";
2760
+ accent: "accent";
2761
+ background: "background";
2762
+ }>, z.ZodString]>, z.ZodObject<{
2763
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2764
+ text: "text";
2765
+ frame: "frame";
2766
+ accent: "accent";
2767
+ background: "background";
2768
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2769
+ text: "text";
2770
+ frame: "frame";
2771
+ accent: "accent";
2772
+ background: "background";
2773
+ }>, z.ZodString]>], null>;
2774
+ amount: z.ZodNumber;
2775
+ }, z.core.$strict>]>;
2776
+ weight: z.ZodOptional<z.ZodEnum<{
2777
+ bold: "bold";
2778
+ regular: "regular";
2779
+ }>>;
2780
+ type: z.ZodLiteral<"curved">;
2781
+ }, z.core.$strict>], "type">>;
2782
+ bleed: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2783
+ text: "text";
2784
+ frame: "frame";
2785
+ accent: "accent";
2786
+ background: "background";
2787
+ }>, z.ZodString]>, z.ZodObject<{
2788
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2789
+ text: "text";
2790
+ frame: "frame";
2791
+ accent: "accent";
2792
+ background: "background";
2793
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2794
+ text: "text";
2795
+ frame: "frame";
2796
+ accent: "accent";
2797
+ background: "background";
2798
+ }>, z.ZodString]>], null>;
2799
+ amount: z.ZodNumber;
2800
+ }, z.core.$strict>]>]>>;
2801
+ }, z.core.$strict>;
2802
+ }, z.core.$strip>;
2803
+ /** A built-in frame (`frameSchema`) or a custom one (`customFrameSchema`). */
2804
+ export declare const anyFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2805
+ style: z.ZodEnum<{
2806
+ badge: "badge";
2807
+ circle: "circle";
2808
+ none: "none";
2809
+ "banner-bottom": "banner-bottom";
2810
+ "banner-top": "banner-top";
2811
+ border: "border";
2812
+ "rounded-border": "rounded-border";
2813
+ "speech-bubble": "speech-bubble";
2814
+ "banner-top-bottom": "banner-top-bottom";
2815
+ "speech-bubble-top": "speech-bubble-top";
2816
+ "chat-bubble": "chat-bubble";
2817
+ polaroid: "polaroid";
2818
+ phone: "phone";
2819
+ ticket: "ticket";
2820
+ envelope: "envelope";
2821
+ tag: "tag";
2822
+ "menu-card": "menu-card";
2823
+ sticker: "sticker";
2824
+ "gradient-border": "gradient-border";
2825
+ focus: "focus";
2826
+ }>;
2827
+ text: z.ZodOptional<z.ZodString>;
2828
+ color: z.ZodOptional<z.ZodString>;
2829
+ textColor: z.ZodOptional<z.ZodString>;
2830
+ secondaryText: z.ZodOptional<z.ZodString>;
2831
+ secondaryColor: z.ZodOptional<z.ZodString>;
2832
+ fontScale: z.ZodOptional<z.ZodNumber>;
2833
+ }, z.core.$strip>, z.ZodObject<{
2834
+ text: z.ZodOptional<z.ZodString>;
2835
+ color: z.ZodOptional<z.ZodString>;
2836
+ textColor: z.ZodOptional<z.ZodString>;
2837
+ secondaryText: z.ZodOptional<z.ZodString>;
2838
+ secondaryColor: z.ZodOptional<z.ZodString>;
2839
+ fontScale: z.ZodOptional<z.ZodNumber>;
2840
+ style: z.ZodLiteral<"custom">;
2841
+ spec: z.ZodObject<{
2842
+ kind: z.ZodLiteral<"qrdx.frame">;
2843
+ version: z.ZodLiteral<1>;
2844
+ artboard: z.ZodObject<{
2845
+ width: z.ZodNumber;
2846
+ height: z.ZodNumber;
2847
+ }, z.core.$strict>;
2848
+ qr: z.ZodObject<{
2849
+ x: z.ZodNumber;
2850
+ y: z.ZodNumber;
2851
+ size: z.ZodNumber;
2852
+ padding: z.ZodOptional<z.ZodNumber>;
2853
+ radius: z.ZodOptional<z.ZodNumber>;
2854
+ }, z.core.$strict>;
2855
+ colors: z.ZodObject<{
2856
+ frame: z.ZodString;
2857
+ text: z.ZodOptional<z.ZodString>;
2858
+ accent: z.ZodOptional<z.ZodString>;
2859
+ }, z.core.$strict>;
2860
+ shapes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2861
+ radius: z.ZodOptional<z.ZodNumber>;
2862
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2863
+ text: "text";
2864
+ frame: "frame";
2865
+ accent: "accent";
2866
+ background: "background";
2867
+ }>, z.ZodString]>, z.ZodObject<{
2868
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2869
+ text: "text";
2870
+ frame: "frame";
2871
+ accent: "accent";
2872
+ background: "background";
2873
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2874
+ text: "text";
2875
+ frame: "frame";
2876
+ accent: "accent";
2877
+ background: "background";
2878
+ }>, z.ZodString]>], null>;
2879
+ amount: z.ZodNumber;
2880
+ }, z.core.$strict>]>, z.ZodObject<{
2881
+ gradient: z.ZodObject<{
2882
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2883
+ text: "text";
2884
+ frame: "frame";
2885
+ accent: "accent";
2886
+ background: "background";
2887
+ }>, z.ZodString]>, z.ZodObject<{
2888
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2889
+ text: "text";
2890
+ frame: "frame";
2891
+ accent: "accent";
2892
+ background: "background";
2893
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2894
+ text: "text";
2895
+ frame: "frame";
2896
+ accent: "accent";
2897
+ background: "background";
2898
+ }>, z.ZodString]>], null>;
2899
+ amount: z.ZodNumber;
2900
+ }, z.core.$strict>]>;
2901
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2902
+ text: "text";
2903
+ frame: "frame";
2904
+ accent: "accent";
2905
+ background: "background";
2906
+ }>, z.ZodString]>, z.ZodObject<{
2907
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2908
+ text: "text";
2909
+ frame: "frame";
2910
+ accent: "accent";
2911
+ background: "background";
2912
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2913
+ text: "text";
2914
+ frame: "frame";
2915
+ accent: "accent";
2916
+ background: "background";
2917
+ }>, z.ZodString]>], null>;
2918
+ amount: z.ZodNumber;
2919
+ }, z.core.$strict>]>;
2920
+ direction: z.ZodOptional<z.ZodEnum<{
2921
+ horizontal: "horizontal";
2922
+ vertical: "vertical";
2923
+ }>>;
2924
+ steps: z.ZodOptional<z.ZodInt>;
2925
+ }, z.core.$strict>;
2926
+ }, z.core.$strict>]>;
2927
+ hole: z.ZodOptional<z.ZodObject<{
2928
+ radius: z.ZodOptional<z.ZodNumber>;
2929
+ x: z.ZodNumber;
2930
+ y: z.ZodNumber;
2931
+ width: z.ZodNumber;
2932
+ height: z.ZodNumber;
2933
+ }, z.core.$strict>>;
2934
+ x: z.ZodNumber;
2935
+ y: z.ZodNumber;
2936
+ width: z.ZodNumber;
2937
+ height: z.ZodNumber;
2938
+ type: z.ZodLiteral<"rect">;
2939
+ }, z.core.$strict>, z.ZodObject<{
2940
+ type: z.ZodLiteral<"circle">;
2941
+ cx: z.ZodNumber;
2942
+ cy: z.ZodNumber;
2943
+ r: z.ZodNumber;
2944
+ hole: z.ZodOptional<z.ZodNumber>;
2945
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2946
+ text: "text";
2947
+ frame: "frame";
2948
+ accent: "accent";
2949
+ background: "background";
2950
+ }>, z.ZodString]>, z.ZodObject<{
2951
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2952
+ text: "text";
2953
+ frame: "frame";
2954
+ accent: "accent";
2955
+ background: "background";
2956
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2957
+ text: "text";
2958
+ frame: "frame";
2959
+ accent: "accent";
2960
+ background: "background";
2961
+ }>, z.ZodString]>], null>;
2962
+ amount: z.ZodNumber;
2963
+ }, z.core.$strict>]>, z.ZodObject<{
2964
+ gradient: z.ZodObject<{
2965
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2966
+ text: "text";
2967
+ frame: "frame";
2968
+ accent: "accent";
2969
+ background: "background";
2970
+ }>, z.ZodString]>, z.ZodObject<{
2971
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2972
+ text: "text";
2973
+ frame: "frame";
2974
+ accent: "accent";
2975
+ background: "background";
2976
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2977
+ text: "text";
2978
+ frame: "frame";
2979
+ accent: "accent";
2980
+ background: "background";
2981
+ }>, z.ZodString]>], null>;
2982
+ amount: z.ZodNumber;
2983
+ }, z.core.$strict>]>;
2984
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
2985
+ text: "text";
2986
+ frame: "frame";
2987
+ accent: "accent";
2988
+ background: "background";
2989
+ }>, z.ZodString]>, z.ZodObject<{
2990
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
2991
+ text: "text";
2992
+ frame: "frame";
2993
+ accent: "accent";
2994
+ background: "background";
2995
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
2996
+ text: "text";
2997
+ frame: "frame";
2998
+ accent: "accent";
2999
+ background: "background";
3000
+ }>, z.ZodString]>], null>;
3001
+ amount: z.ZodNumber;
3002
+ }, z.core.$strict>]>;
3003
+ direction: z.ZodOptional<z.ZodEnum<{
3004
+ horizontal: "horizontal";
3005
+ vertical: "vertical";
3006
+ }>>;
3007
+ steps: z.ZodOptional<z.ZodInt>;
3008
+ }, z.core.$strict>;
3009
+ }, z.core.$strict>]>;
3010
+ }, z.core.$strict>, z.ZodObject<{
3011
+ type: z.ZodLiteral<"ellipse">;
3012
+ cx: z.ZodNumber;
3013
+ cy: z.ZodNumber;
3014
+ rx: z.ZodNumber;
3015
+ ry: z.ZodNumber;
3016
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3017
+ text: "text";
3018
+ frame: "frame";
3019
+ accent: "accent";
3020
+ background: "background";
3021
+ }>, z.ZodString]>, z.ZodObject<{
3022
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3023
+ text: "text";
3024
+ frame: "frame";
3025
+ accent: "accent";
3026
+ background: "background";
3027
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3028
+ text: "text";
3029
+ frame: "frame";
3030
+ accent: "accent";
3031
+ background: "background";
3032
+ }>, z.ZodString]>], null>;
3033
+ amount: z.ZodNumber;
3034
+ }, z.core.$strict>]>, z.ZodObject<{
3035
+ gradient: z.ZodObject<{
3036
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3037
+ text: "text";
3038
+ frame: "frame";
3039
+ accent: "accent";
3040
+ background: "background";
3041
+ }>, z.ZodString]>, z.ZodObject<{
3042
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3043
+ text: "text";
3044
+ frame: "frame";
3045
+ accent: "accent";
3046
+ background: "background";
3047
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3048
+ text: "text";
3049
+ frame: "frame";
3050
+ accent: "accent";
3051
+ background: "background";
3052
+ }>, z.ZodString]>], null>;
3053
+ amount: z.ZodNumber;
3054
+ }, z.core.$strict>]>;
3055
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3056
+ text: "text";
3057
+ frame: "frame";
3058
+ accent: "accent";
3059
+ background: "background";
3060
+ }>, z.ZodString]>, z.ZodObject<{
3061
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3062
+ text: "text";
3063
+ frame: "frame";
3064
+ accent: "accent";
3065
+ background: "background";
3066
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3067
+ text: "text";
3068
+ frame: "frame";
3069
+ accent: "accent";
3070
+ background: "background";
3071
+ }>, z.ZodString]>], null>;
3072
+ amount: z.ZodNumber;
3073
+ }, z.core.$strict>]>;
3074
+ direction: z.ZodOptional<z.ZodEnum<{
3075
+ horizontal: "horizontal";
3076
+ vertical: "vertical";
3077
+ }>>;
3078
+ steps: z.ZodOptional<z.ZodInt>;
3079
+ }, z.core.$strict>;
3080
+ }, z.core.$strict>]>;
3081
+ }, z.core.$strict>, z.ZodObject<{
3082
+ type: z.ZodLiteral<"polygon">;
3083
+ points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
3084
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3085
+ text: "text";
3086
+ frame: "frame";
3087
+ accent: "accent";
3088
+ background: "background";
3089
+ }>, z.ZodString]>, z.ZodObject<{
3090
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3091
+ text: "text";
3092
+ frame: "frame";
3093
+ accent: "accent";
3094
+ background: "background";
3095
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3096
+ text: "text";
3097
+ frame: "frame";
3098
+ accent: "accent";
3099
+ background: "background";
3100
+ }>, z.ZodString]>], null>;
3101
+ amount: z.ZodNumber;
3102
+ }, z.core.$strict>]>, z.ZodObject<{
3103
+ gradient: z.ZodObject<{
3104
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3105
+ text: "text";
3106
+ frame: "frame";
3107
+ accent: "accent";
3108
+ background: "background";
3109
+ }>, z.ZodString]>, z.ZodObject<{
3110
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3111
+ text: "text";
3112
+ frame: "frame";
3113
+ accent: "accent";
3114
+ background: "background";
3115
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3116
+ text: "text";
3117
+ frame: "frame";
3118
+ accent: "accent";
3119
+ background: "background";
3120
+ }>, z.ZodString]>], null>;
3121
+ amount: z.ZodNumber;
3122
+ }, z.core.$strict>]>;
3123
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3124
+ text: "text";
3125
+ frame: "frame";
3126
+ accent: "accent";
3127
+ background: "background";
3128
+ }>, z.ZodString]>, z.ZodObject<{
3129
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3130
+ text: "text";
3131
+ frame: "frame";
3132
+ accent: "accent";
3133
+ background: "background";
3134
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3135
+ text: "text";
3136
+ frame: "frame";
3137
+ accent: "accent";
3138
+ background: "background";
3139
+ }>, z.ZodString]>], null>;
3140
+ amount: z.ZodNumber;
3141
+ }, z.core.$strict>]>;
3142
+ direction: z.ZodOptional<z.ZodEnum<{
3143
+ horizontal: "horizontal";
3144
+ vertical: "vertical";
3145
+ }>>;
3146
+ steps: z.ZodOptional<z.ZodInt>;
3147
+ }, z.core.$strict>;
3148
+ }, z.core.$strict>]>;
3149
+ }, z.core.$strict>, z.ZodObject<{
3150
+ type: z.ZodLiteral<"path">;
3151
+ d: z.ZodString;
3152
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3153
+ text: "text";
3154
+ frame: "frame";
3155
+ accent: "accent";
3156
+ background: "background";
3157
+ }>, z.ZodString]>, z.ZodObject<{
3158
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3159
+ text: "text";
3160
+ frame: "frame";
3161
+ accent: "accent";
3162
+ background: "background";
3163
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3164
+ text: "text";
3165
+ frame: "frame";
3166
+ accent: "accent";
3167
+ background: "background";
3168
+ }>, z.ZodString]>], null>;
3169
+ amount: z.ZodNumber;
3170
+ }, z.core.$strict>]>, z.ZodObject<{
3171
+ gradient: z.ZodObject<{
3172
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3173
+ text: "text";
3174
+ frame: "frame";
3175
+ accent: "accent";
3176
+ background: "background";
3177
+ }>, z.ZodString]>, z.ZodObject<{
3178
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3179
+ text: "text";
3180
+ frame: "frame";
3181
+ accent: "accent";
3182
+ background: "background";
3183
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3184
+ text: "text";
3185
+ frame: "frame";
3186
+ accent: "accent";
3187
+ background: "background";
3188
+ }>, z.ZodString]>], null>;
3189
+ amount: z.ZodNumber;
3190
+ }, z.core.$strict>]>;
3191
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3192
+ text: "text";
3193
+ frame: "frame";
3194
+ accent: "accent";
3195
+ background: "background";
3196
+ }>, z.ZodString]>, z.ZodObject<{
3197
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3198
+ text: "text";
3199
+ frame: "frame";
3200
+ accent: "accent";
3201
+ background: "background";
3202
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3203
+ text: "text";
3204
+ frame: "frame";
3205
+ accent: "accent";
3206
+ background: "background";
3207
+ }>, z.ZodString]>], null>;
3208
+ amount: z.ZodNumber;
3209
+ }, z.core.$strict>]>;
3210
+ direction: z.ZodOptional<z.ZodEnum<{
3211
+ horizontal: "horizontal";
3212
+ vertical: "vertical";
3213
+ }>>;
3214
+ steps: z.ZodOptional<z.ZodInt>;
3215
+ }, z.core.$strict>;
3216
+ }, z.core.$strict>]>;
3217
+ fillRule: z.ZodOptional<z.ZodEnum<{
3218
+ nonzero: "nonzero";
3219
+ evenodd: "evenodd";
3220
+ }>>;
3221
+ }, z.core.$strict>, z.ZodObject<{
3222
+ type: z.ZodLiteral<"line">;
3223
+ x1: z.ZodNumber;
3224
+ y1: z.ZodNumber;
3225
+ x2: z.ZodNumber;
3226
+ y2: z.ZodNumber;
3227
+ width: z.ZodNumber;
3228
+ cap: z.ZodOptional<z.ZodEnum<{
3229
+ butt: "butt";
3230
+ round: "round";
3231
+ }>>;
3232
+ dash: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
3233
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3234
+ text: "text";
3235
+ frame: "frame";
3236
+ accent: "accent";
3237
+ background: "background";
3238
+ }>, z.ZodString]>, z.ZodObject<{
3239
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3240
+ text: "text";
3241
+ frame: "frame";
3242
+ accent: "accent";
3243
+ background: "background";
3244
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3245
+ text: "text";
3246
+ frame: "frame";
3247
+ accent: "accent";
3248
+ background: "background";
3249
+ }>, z.ZodString]>], null>;
3250
+ amount: z.ZodNumber;
3251
+ }, z.core.$strict>]>, z.ZodObject<{
3252
+ gradient: z.ZodObject<{
3253
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3254
+ text: "text";
3255
+ frame: "frame";
3256
+ accent: "accent";
3257
+ background: "background";
3258
+ }>, z.ZodString]>, z.ZodObject<{
3259
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3260
+ text: "text";
3261
+ frame: "frame";
3262
+ accent: "accent";
3263
+ background: "background";
3264
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3265
+ text: "text";
3266
+ frame: "frame";
3267
+ accent: "accent";
3268
+ background: "background";
3269
+ }>, z.ZodString]>], null>;
3270
+ amount: z.ZodNumber;
3271
+ }, z.core.$strict>]>;
3272
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3273
+ text: "text";
3274
+ frame: "frame";
3275
+ accent: "accent";
3276
+ background: "background";
3277
+ }>, z.ZodString]>, z.ZodObject<{
3278
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3279
+ text: "text";
3280
+ frame: "frame";
3281
+ accent: "accent";
3282
+ background: "background";
3283
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3284
+ text: "text";
3285
+ frame: "frame";
3286
+ accent: "accent";
3287
+ background: "background";
3288
+ }>, z.ZodString]>], null>;
3289
+ amount: z.ZodNumber;
3290
+ }, z.core.$strict>]>;
3291
+ direction: z.ZodOptional<z.ZodEnum<{
3292
+ horizontal: "horizontal";
3293
+ vertical: "vertical";
3294
+ }>>;
3295
+ steps: z.ZodOptional<z.ZodInt>;
3296
+ }, z.core.$strict>;
3297
+ }, z.core.$strict>]>;
3298
+ }, z.core.$strict>, z.ZodObject<{
3299
+ type: z.ZodLiteral<"icon">;
3300
+ icon: z.ZodEnum<{
3301
+ check: "check";
3302
+ heart: "heart";
3303
+ star: "star";
3304
+ phone: "phone";
3305
+ wifi: "wifi";
3306
+ headphones: "headphones";
3307
+ calendar: "calendar";
3308
+ user: "user";
3309
+ chat: "chat";
3310
+ bag: "bag";
3311
+ bell: "bell";
3312
+ cup: "cup";
3313
+ card: "card";
3314
+ info: "info";
3315
+ home: "home";
3316
+ pin: "pin";
3317
+ share: "share";
3318
+ download: "download";
3319
+ clock: "clock";
3320
+ snowflake: "snowflake";
3321
+ pumpkin: "pumpkin";
3322
+ tree: "tree";
3323
+ sparkle: "sparkle";
3324
+ gift: "gift";
3325
+ }>;
3326
+ x: z.ZodNumber;
3327
+ y: z.ZodNumber;
3328
+ size: z.ZodNumber;
3329
+ fill: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3330
+ text: "text";
3331
+ frame: "frame";
3332
+ accent: "accent";
3333
+ background: "background";
3334
+ }>, z.ZodString]>, z.ZodObject<{
3335
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3336
+ text: "text";
3337
+ frame: "frame";
3338
+ accent: "accent";
3339
+ background: "background";
3340
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3341
+ text: "text";
3342
+ frame: "frame";
3343
+ accent: "accent";
3344
+ background: "background";
3345
+ }>, z.ZodString]>], null>;
3346
+ amount: z.ZodNumber;
3347
+ }, z.core.$strict>]>, z.ZodObject<{
3348
+ gradient: z.ZodObject<{
3349
+ from: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3350
+ text: "text";
3351
+ frame: "frame";
3352
+ accent: "accent";
3353
+ background: "background";
3354
+ }>, z.ZodString]>, z.ZodObject<{
3355
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3356
+ text: "text";
3357
+ frame: "frame";
3358
+ accent: "accent";
3359
+ background: "background";
3360
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3361
+ text: "text";
3362
+ frame: "frame";
3363
+ accent: "accent";
3364
+ background: "background";
3365
+ }>, z.ZodString]>], null>;
3366
+ amount: z.ZodNumber;
3367
+ }, z.core.$strict>]>;
3368
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3369
+ text: "text";
3370
+ frame: "frame";
3371
+ accent: "accent";
3372
+ background: "background";
3373
+ }>, z.ZodString]>, z.ZodObject<{
3374
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3375
+ text: "text";
3376
+ frame: "frame";
3377
+ accent: "accent";
3378
+ background: "background";
3379
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3380
+ text: "text";
3381
+ frame: "frame";
3382
+ accent: "accent";
3383
+ background: "background";
3384
+ }>, z.ZodString]>], null>;
3385
+ amount: z.ZodNumber;
3386
+ }, z.core.$strict>]>;
3387
+ direction: z.ZodOptional<z.ZodEnum<{
3388
+ horizontal: "horizontal";
3389
+ vertical: "vertical";
3390
+ }>>;
3391
+ steps: z.ZodOptional<z.ZodInt>;
3392
+ }, z.core.$strict>;
3393
+ }, z.core.$strict>]>;
3394
+ }, z.core.$strict>], "type">>;
3395
+ labels: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3396
+ box: z.ZodObject<{
3397
+ x: z.ZodNumber;
3398
+ y: z.ZodNumber;
3399
+ width: z.ZodNumber;
3400
+ height: z.ZodNumber;
3401
+ }, z.core.$strict>;
3402
+ align: z.ZodOptional<z.ZodEnum<{
3403
+ start: "start";
3404
+ middle: "middle";
3405
+ end: "end";
3406
+ }>>;
3407
+ fontSize: z.ZodOptional<z.ZodNumber>;
3408
+ id: z.ZodString;
3409
+ slot: z.ZodEnum<{
3410
+ primary: "primary";
3411
+ secondary: "secondary";
3412
+ fixed: "fixed";
3413
+ }>;
3414
+ text: z.ZodString;
3415
+ maxLength: z.ZodOptional<z.ZodInt>;
3416
+ color: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3417
+ text: "text";
3418
+ frame: "frame";
3419
+ accent: "accent";
3420
+ background: "background";
3421
+ }>, z.ZodString]>, z.ZodObject<{
3422
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3423
+ text: "text";
3424
+ frame: "frame";
3425
+ accent: "accent";
3426
+ background: "background";
3427
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3428
+ text: "text";
3429
+ frame: "frame";
3430
+ accent: "accent";
3431
+ background: "background";
3432
+ }>, z.ZodString]>], null>;
3433
+ amount: z.ZodNumber;
3434
+ }, z.core.$strict>]>;
3435
+ weight: z.ZodOptional<z.ZodEnum<{
3436
+ bold: "bold";
3437
+ regular: "regular";
3438
+ }>>;
3439
+ type: z.ZodLiteral<"text">;
3440
+ }, z.core.$strict>, z.ZodObject<{
3441
+ curve: z.ZodObject<{
3442
+ cx: z.ZodNumber;
3443
+ cy: z.ZodNumber;
3444
+ radius: z.ZodNumber;
3445
+ side: z.ZodEnum<{
3446
+ top: "top";
3447
+ bottom: "bottom";
3448
+ }>;
3449
+ spread: z.ZodOptional<z.ZodNumber>;
3450
+ }, z.core.$strict>;
3451
+ fontSize: z.ZodNumber;
3452
+ id: z.ZodString;
3453
+ slot: z.ZodEnum<{
3454
+ primary: "primary";
3455
+ secondary: "secondary";
3456
+ fixed: "fixed";
3457
+ }>;
3458
+ text: z.ZodString;
3459
+ maxLength: z.ZodOptional<z.ZodInt>;
3460
+ color: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3461
+ text: "text";
3462
+ frame: "frame";
3463
+ accent: "accent";
3464
+ background: "background";
3465
+ }>, z.ZodString]>, z.ZodObject<{
3466
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3467
+ text: "text";
3468
+ frame: "frame";
3469
+ accent: "accent";
3470
+ background: "background";
3471
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3472
+ text: "text";
3473
+ frame: "frame";
3474
+ accent: "accent";
3475
+ background: "background";
3476
+ }>, z.ZodString]>], null>;
3477
+ amount: z.ZodNumber;
3478
+ }, z.core.$strict>]>;
3479
+ weight: z.ZodOptional<z.ZodEnum<{
3480
+ bold: "bold";
3481
+ regular: "regular";
3482
+ }>>;
3483
+ type: z.ZodLiteral<"curved">;
3484
+ }, z.core.$strict>], "type">>;
3485
+ bleed: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
3486
+ text: "text";
3487
+ frame: "frame";
3488
+ accent: "accent";
3489
+ background: "background";
3490
+ }>, z.ZodString]>, z.ZodObject<{
3491
+ mix: z.ZodTuple<[z.ZodUnion<readonly [z.ZodEnum<{
3492
+ text: "text";
3493
+ frame: "frame";
3494
+ accent: "accent";
3495
+ background: "background";
3496
+ }>, z.ZodString]>, z.ZodUnion<readonly [z.ZodEnum<{
3497
+ text: "text";
3498
+ frame: "frame";
3499
+ accent: "accent";
3500
+ background: "background";
3501
+ }>, z.ZodString]>], null>;
3502
+ amount: z.ZodNumber;
3503
+ }, z.core.$strict>]>]>>;
3504
+ }, z.core.$strict>;
3505
+ }, z.core.$strip>], "style">;
3506
+ export type QRCustomFrame = z.infer<typeof customFrameSchema>;
3507
+ export type AnyQRFrame = z.infer<typeof anyFrameSchema>;
3508
+ export {};
3509
+ //# sourceMappingURL=frame-spec.d.ts.map