@pdfme/common 1.2.1 → 1.2.2

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.
@@ -31,7 +31,6 @@ export declare const CommonSchema: z.ZodObject<{
31
31
  height: z.ZodNumber;
32
32
  rotate: z.ZodOptional<z.ZodNumber>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- rotate?: number | undefined;
35
34
  type: "image" | "text" | "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
36
35
  height: number;
37
36
  width: number;
@@ -39,8 +38,8 @@ export declare const CommonSchema: z.ZodObject<{
39
38
  x: number;
40
39
  y: number;
41
40
  };
42
- }, {
43
41
  rotate?: number | undefined;
42
+ }, {
44
43
  type: "image" | "text" | "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
45
44
  height: number;
46
45
  width: number;
@@ -48,9 +47,11 @@ export declare const CommonSchema: z.ZodObject<{
48
47
  x: number;
49
48
  y: number;
50
49
  };
50
+ rotate?: number | undefined;
51
51
  }>;
52
- export declare const TextSchema: z.ZodObject<z.extendShape<{
53
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
52
+ export declare const TextSchema: z.ZodObject<{
53
+ height: z.ZodNumber;
54
+ width: z.ZodNumber;
54
55
  position: z.ZodObject<{
55
56
  x: z.ZodNumber;
56
57
  y: z.ZodNumber;
@@ -61,10 +62,7 @@ export declare const TextSchema: z.ZodObject<z.extendShape<{
61
62
  x: number;
62
63
  y: number;
63
64
  }>;
64
- width: z.ZodNumber;
65
- height: z.ZodNumber;
66
65
  rotate: z.ZodOptional<z.ZodNumber>;
67
- }, {
68
66
  type: z.ZodLiteral<"text">;
69
67
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
70
68
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -83,19 +81,27 @@ export declare const TextSchema: z.ZodObject<z.extendShape<{
83
81
  max: number;
84
82
  min: number;
85
83
  }>>;
86
- }>, "strip", z.ZodTypeAny, {
87
- backgroundColor?: string | undefined;
88
- fontSize?: number | undefined;
89
- lineHeight?: number | undefined;
84
+ }, "strip", z.ZodTypeAny, {
85
+ type: "text";
86
+ height: number;
87
+ width: number;
88
+ position: {
89
+ x: number;
90
+ y: number;
91
+ };
90
92
  rotate?: number | undefined;
91
93
  alignment?: "center" | "left" | "right" | undefined;
94
+ fontSize?: number | undefined;
92
95
  fontName?: string | undefined;
93
96
  fontColor?: string | undefined;
97
+ backgroundColor?: string | undefined;
94
98
  characterSpacing?: number | undefined;
99
+ lineHeight?: number | undefined;
95
100
  dynamicFontSize?: {
96
101
  max: number;
97
102
  min: number;
98
103
  } | undefined;
104
+ }, {
99
105
  type: "text";
100
106
  height: number;
101
107
  width: number;
@@ -103,29 +109,22 @@ export declare const TextSchema: z.ZodObject<z.extendShape<{
103
109
  x: number;
104
110
  y: number;
105
111
  };
106
- }, {
107
- backgroundColor?: string | undefined;
108
- fontSize?: number | undefined;
109
- lineHeight?: number | undefined;
110
112
  rotate?: number | undefined;
111
113
  alignment?: "center" | "left" | "right" | undefined;
114
+ fontSize?: number | undefined;
112
115
  fontName?: string | undefined;
113
116
  fontColor?: string | undefined;
117
+ backgroundColor?: string | undefined;
114
118
  characterSpacing?: number | undefined;
119
+ lineHeight?: number | undefined;
115
120
  dynamicFontSize?: {
116
121
  max: number;
117
122
  min: number;
118
123
  } | undefined;
119
- type: "text";
120
- height: number;
121
- width: number;
122
- position: {
123
- x: number;
124
- y: number;
125
- };
126
124
  }>;
127
- export declare const ImageSchema: z.ZodObject<z.extendShape<{
128
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
125
+ export declare const ImageSchema: z.ZodObject<{
126
+ height: z.ZodNumber;
127
+ width: z.ZodNumber;
129
128
  position: z.ZodObject<{
130
129
  x: z.ZodNumber;
131
130
  y: z.ZodNumber;
@@ -136,13 +135,9 @@ export declare const ImageSchema: z.ZodObject<z.extendShape<{
136
135
  x: number;
137
136
  y: number;
138
137
  }>;
139
- width: z.ZodNumber;
140
- height: z.ZodNumber;
141
138
  rotate: z.ZodOptional<z.ZodNumber>;
142
- }, {
143
139
  type: z.ZodLiteral<"image">;
144
- }>, "strip", z.ZodTypeAny, {
145
- rotate?: number | undefined;
140
+ }, "strip", z.ZodTypeAny, {
146
141
  type: "image";
147
142
  height: number;
148
143
  width: number;
@@ -150,8 +145,8 @@ export declare const ImageSchema: z.ZodObject<z.extendShape<{
150
145
  x: number;
151
146
  y: number;
152
147
  };
153
- }, {
154
148
  rotate?: number | undefined;
149
+ }, {
155
150
  type: "image";
156
151
  height: number;
157
152
  width: number;
@@ -159,9 +154,11 @@ export declare const ImageSchema: z.ZodObject<z.extendShape<{
159
154
  x: number;
160
155
  y: number;
161
156
  };
157
+ rotate?: number | undefined;
162
158
  }>;
163
- export declare const BarcodeSchema: z.ZodObject<z.extendShape<{
164
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
159
+ export declare const BarcodeSchema: z.ZodObject<{
160
+ height: z.ZodNumber;
161
+ width: z.ZodNumber;
165
162
  position: z.ZodObject<{
166
163
  x: z.ZodNumber;
167
164
  y: z.ZodNumber;
@@ -172,13 +169,9 @@ export declare const BarcodeSchema: z.ZodObject<z.extendShape<{
172
169
  x: number;
173
170
  y: number;
174
171
  }>;
175
- width: z.ZodNumber;
176
- height: z.ZodNumber;
177
172
  rotate: z.ZodOptional<z.ZodNumber>;
178
- }, {
179
173
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
180
- }>, "strip", z.ZodTypeAny, {
181
- rotate?: number | undefined;
174
+ }, "strip", z.ZodTypeAny, {
182
175
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
183
176
  height: number;
184
177
  width: number;
@@ -186,8 +179,8 @@ export declare const BarcodeSchema: z.ZodObject<z.extendShape<{
186
179
  x: number;
187
180
  y: number;
188
181
  };
189
- }, {
190
182
  rotate?: number | undefined;
183
+ }, {
191
184
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
192
185
  height: number;
193
186
  width: number;
@@ -195,9 +188,11 @@ export declare const BarcodeSchema: z.ZodObject<z.extendShape<{
195
188
  x: number;
196
189
  y: number;
197
190
  };
191
+ rotate?: number | undefined;
198
192
  }>;
199
- export declare const Schema: z.ZodUnion<[z.ZodObject<z.extendShape<{
200
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
193
+ export declare const Schema: z.ZodUnion<[z.ZodObject<{
194
+ height: z.ZodNumber;
195
+ width: z.ZodNumber;
201
196
  position: z.ZodObject<{
202
197
  x: z.ZodNumber;
203
198
  y: z.ZodNumber;
@@ -208,10 +203,7 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<z.extendShape<{
208
203
  x: number;
209
204
  y: number;
210
205
  }>;
211
- width: z.ZodNumber;
212
- height: z.ZodNumber;
213
206
  rotate: z.ZodOptional<z.ZodNumber>;
214
- }, {
215
207
  type: z.ZodLiteral<"text">;
216
208
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
217
209
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -230,19 +222,27 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<z.extendShape<{
230
222
  max: number;
231
223
  min: number;
232
224
  }>>;
233
- }>, "strip", z.ZodTypeAny, {
234
- backgroundColor?: string | undefined;
235
- fontSize?: number | undefined;
236
- lineHeight?: number | undefined;
225
+ }, "strip", z.ZodTypeAny, {
226
+ type: "text";
227
+ height: number;
228
+ width: number;
229
+ position: {
230
+ x: number;
231
+ y: number;
232
+ };
237
233
  rotate?: number | undefined;
238
234
  alignment?: "center" | "left" | "right" | undefined;
235
+ fontSize?: number | undefined;
239
236
  fontName?: string | undefined;
240
237
  fontColor?: string | undefined;
238
+ backgroundColor?: string | undefined;
241
239
  characterSpacing?: number | undefined;
240
+ lineHeight?: number | undefined;
242
241
  dynamicFontSize?: {
243
242
  max: number;
244
243
  min: number;
245
244
  } | undefined;
245
+ }, {
246
246
  type: "text";
247
247
  height: number;
248
248
  width: number;
@@ -250,28 +250,21 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<z.extendShape<{
250
250
  x: number;
251
251
  y: number;
252
252
  };
253
- }, {
254
- backgroundColor?: string | undefined;
255
- fontSize?: number | undefined;
256
- lineHeight?: number | undefined;
257
253
  rotate?: number | undefined;
258
254
  alignment?: "center" | "left" | "right" | undefined;
255
+ fontSize?: number | undefined;
259
256
  fontName?: string | undefined;
260
257
  fontColor?: string | undefined;
258
+ backgroundColor?: string | undefined;
261
259
  characterSpacing?: number | undefined;
260
+ lineHeight?: number | undefined;
262
261
  dynamicFontSize?: {
263
262
  max: number;
264
263
  min: number;
265
264
  } | undefined;
266
- type: "text";
267
- height: number;
268
- width: number;
269
- position: {
270
- x: number;
271
- y: number;
272
- };
273
- }>, z.ZodObject<z.extendShape<{
274
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
265
+ }>, z.ZodObject<{
266
+ height: z.ZodNumber;
267
+ width: z.ZodNumber;
275
268
  position: z.ZodObject<{
276
269
  x: z.ZodNumber;
277
270
  y: z.ZodNumber;
@@ -282,13 +275,9 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<z.extendShape<{
282
275
  x: number;
283
276
  y: number;
284
277
  }>;
285
- width: z.ZodNumber;
286
- height: z.ZodNumber;
287
278
  rotate: z.ZodOptional<z.ZodNumber>;
288
- }, {
289
279
  type: z.ZodLiteral<"image">;
290
- }>, "strip", z.ZodTypeAny, {
291
- rotate?: number | undefined;
280
+ }, "strip", z.ZodTypeAny, {
292
281
  type: "image";
293
282
  height: number;
294
283
  width: number;
@@ -296,8 +285,8 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<z.extendShape<{
296
285
  x: number;
297
286
  y: number;
298
287
  };
299
- }, {
300
288
  rotate?: number | undefined;
289
+ }, {
301
290
  type: "image";
302
291
  height: number;
303
292
  width: number;
@@ -305,8 +294,10 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<z.extendShape<{
305
294
  x: number;
306
295
  y: number;
307
296
  };
308
- }>, z.ZodObject<z.extendShape<{
309
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
297
+ rotate?: number | undefined;
298
+ }>, z.ZodObject<{
299
+ height: z.ZodNumber;
300
+ width: z.ZodNumber;
310
301
  position: z.ZodObject<{
311
302
  x: z.ZodNumber;
312
303
  y: z.ZodNumber;
@@ -317,13 +308,9 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<z.extendShape<{
317
308
  x: number;
318
309
  y: number;
319
310
  }>;
320
- width: z.ZodNumber;
321
- height: z.ZodNumber;
322
311
  rotate: z.ZodOptional<z.ZodNumber>;
323
- }, {
324
312
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
325
- }>, "strip", z.ZodTypeAny, {
326
- rotate?: number | undefined;
313
+ }, "strip", z.ZodTypeAny, {
327
314
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
328
315
  height: number;
329
316
  width: number;
@@ -331,8 +318,8 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<z.extendShape<{
331
318
  x: number;
332
319
  y: number;
333
320
  };
334
- }, {
335
321
  rotate?: number | undefined;
322
+ }, {
336
323
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
337
324
  height: number;
338
325
  width: number;
@@ -340,9 +327,15 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<z.extendShape<{
340
327
  x: number;
341
328
  y: number;
342
329
  };
330
+ rotate?: number | undefined;
343
331
  }>]>;
344
- export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extendShape<{
345
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
332
+ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<{
333
+ type: z.ZodLiteral<"text">;
334
+ height: z.ZodNumber;
335
+ width: z.ZodNumber;
336
+ backgroundColor: z.ZodOptional<z.ZodString>;
337
+ fontSize: z.ZodOptional<z.ZodNumber>;
338
+ lineHeight: z.ZodOptional<z.ZodNumber>;
346
339
  position: z.ZodObject<{
347
340
  x: z.ZodNumber;
348
341
  y: z.ZodNumber;
@@ -353,18 +346,11 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
353
346
  x: number;
354
347
  y: number;
355
348
  }>;
356
- width: z.ZodNumber;
357
- height: z.ZodNumber;
358
349
  rotate: z.ZodOptional<z.ZodNumber>;
359
- }, {
360
- type: z.ZodLiteral<"text">;
361
350
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
362
- fontSize: z.ZodOptional<z.ZodNumber>;
363
351
  fontName: z.ZodOptional<z.ZodString>;
364
352
  fontColor: z.ZodOptional<z.ZodString>;
365
- backgroundColor: z.ZodOptional<z.ZodString>;
366
353
  characterSpacing: z.ZodOptional<z.ZodNumber>;
367
- lineHeight: z.ZodOptional<z.ZodNumber>;
368
354
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
369
355
  max: z.ZodNumber;
370
356
  min: z.ZodNumber;
@@ -375,11 +361,20 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
375
361
  max: number;
376
362
  min: number;
377
363
  }>>;
378
- }>, {
379
364
  id: z.ZodString;
380
365
  key: z.ZodString;
381
366
  data: z.ZodString;
382
- }>, "strip", z.ZodTypeAny, {
367
+ }, "strip", z.ZodTypeAny, {
368
+ type: "text";
369
+ data: string;
370
+ key: string;
371
+ id: string;
372
+ height: number;
373
+ width: number;
374
+ position: {
375
+ x: number;
376
+ y: number;
377
+ };
383
378
  backgroundColor?: string | undefined;
384
379
  fontSize?: number | undefined;
385
380
  lineHeight?: number | undefined;
@@ -392,6 +387,7 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
392
387
  max: number;
393
388
  min: number;
394
389
  } | undefined;
390
+ }, {
395
391
  type: "text";
396
392
  data: string;
397
393
  key: string;
@@ -402,7 +398,6 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
402
398
  x: number;
403
399
  y: number;
404
400
  };
405
- }, {
406
401
  backgroundColor?: string | undefined;
407
402
  fontSize?: number | undefined;
408
403
  lineHeight?: number | undefined;
@@ -415,18 +410,10 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
415
410
  max: number;
416
411
  min: number;
417
412
  } | undefined;
418
- type: "text";
419
- data: string;
420
- key: string;
421
- id: string;
422
- height: number;
423
- width: number;
424
- position: {
425
- x: number;
426
- y: number;
427
- };
428
- }>, z.ZodObject<z.extendShape<z.extendShape<{
429
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
413
+ }>, z.ZodObject<{
414
+ type: z.ZodLiteral<"image">;
415
+ height: z.ZodNumber;
416
+ width: z.ZodNumber;
430
417
  position: z.ZodObject<{
431
418
  x: z.ZodNumber;
432
419
  y: z.ZodNumber;
@@ -437,17 +424,11 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
437
424
  x: number;
438
425
  y: number;
439
426
  }>;
440
- width: z.ZodNumber;
441
- height: z.ZodNumber;
442
427
  rotate: z.ZodOptional<z.ZodNumber>;
443
- }, {
444
- type: z.ZodLiteral<"image">;
445
- }>, {
446
428
  id: z.ZodString;
447
429
  key: z.ZodString;
448
430
  data: z.ZodString;
449
- }>, "strip", z.ZodTypeAny, {
450
- rotate?: number | undefined;
431
+ }, "strip", z.ZodTypeAny, {
451
432
  type: "image";
452
433
  data: string;
453
434
  key: string;
@@ -458,8 +439,8 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
458
439
  x: number;
459
440
  y: number;
460
441
  };
461
- }, {
462
442
  rotate?: number | undefined;
443
+ }, {
463
444
  type: "image";
464
445
  data: string;
465
446
  key: string;
@@ -470,8 +451,11 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
470
451
  x: number;
471
452
  y: number;
472
453
  };
473
- }>, z.ZodObject<z.extendShape<z.extendShape<{
474
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
454
+ rotate?: number | undefined;
455
+ }>, z.ZodObject<{
456
+ type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
457
+ height: z.ZodNumber;
458
+ width: z.ZodNumber;
475
459
  position: z.ZodObject<{
476
460
  x: z.ZodNumber;
477
461
  y: z.ZodNumber;
@@ -482,17 +466,11 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
482
466
  x: number;
483
467
  y: number;
484
468
  }>;
485
- width: z.ZodNumber;
486
- height: z.ZodNumber;
487
469
  rotate: z.ZodOptional<z.ZodNumber>;
488
- }, {
489
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
490
- }>, {
491
470
  id: z.ZodString;
492
471
  key: z.ZodString;
493
472
  data: z.ZodString;
494
- }>, "strip", z.ZodTypeAny, {
495
- rotate?: number | undefined;
473
+ }, "strip", z.ZodTypeAny, {
496
474
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
497
475
  data: string;
498
476
  key: string;
@@ -503,8 +481,8 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
503
481
  x: number;
504
482
  y: number;
505
483
  };
506
- }, {
507
484
  rotate?: number | undefined;
485
+ }, {
508
486
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
509
487
  data: string;
510
488
  key: string;
@@ -515,24 +493,26 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<z.extendShape<z.extend
515
493
  x: number;
516
494
  y: number;
517
495
  };
496
+ rotate?: number | undefined;
518
497
  }>]>;
519
498
  export declare const Font: z.ZodRecord<z.ZodString, z.ZodObject<{
520
499
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
521
500
  fallback: z.ZodOptional<z.ZodBoolean>;
522
501
  subset: z.ZodOptional<z.ZodBoolean>;
523
502
  }, "strip", z.ZodTypeAny, {
503
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
524
504
  fallback?: boolean | undefined;
525
505
  subset?: boolean | undefined;
526
- data: string | ArrayBuffer | Uint8Array;
527
506
  }, {
507
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
528
508
  fallback?: boolean | undefined;
529
509
  subset?: boolean | undefined;
530
- data: string | ArrayBuffer | Uint8Array;
531
510
  }>>;
532
511
  export declare const BasePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
533
512
  export declare const Template: z.ZodObject<{
534
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.extendShape<{
535
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
513
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
514
+ height: z.ZodNumber;
515
+ width: z.ZodNumber;
536
516
  position: z.ZodObject<{
537
517
  x: z.ZodNumber;
538
518
  y: z.ZodNumber;
@@ -543,10 +523,7 @@ export declare const Template: z.ZodObject<{
543
523
  x: number;
544
524
  y: number;
545
525
  }>;
546
- width: z.ZodNumber;
547
- height: z.ZodNumber;
548
526
  rotate: z.ZodOptional<z.ZodNumber>;
549
- }, {
550
527
  type: z.ZodLiteral<"text">;
551
528
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
552
529
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -565,19 +542,27 @@ export declare const Template: z.ZodObject<{
565
542
  max: number;
566
543
  min: number;
567
544
  }>>;
568
- }>, "strip", z.ZodTypeAny, {
569
- backgroundColor?: string | undefined;
570
- fontSize?: number | undefined;
571
- lineHeight?: number | undefined;
545
+ }, "strip", z.ZodTypeAny, {
546
+ type: "text";
547
+ height: number;
548
+ width: number;
549
+ position: {
550
+ x: number;
551
+ y: number;
552
+ };
572
553
  rotate?: number | undefined;
573
554
  alignment?: "center" | "left" | "right" | undefined;
555
+ fontSize?: number | undefined;
574
556
  fontName?: string | undefined;
575
557
  fontColor?: string | undefined;
558
+ backgroundColor?: string | undefined;
576
559
  characterSpacing?: number | undefined;
560
+ lineHeight?: number | undefined;
577
561
  dynamicFontSize?: {
578
562
  max: number;
579
563
  min: number;
580
564
  } | undefined;
565
+ }, {
581
566
  type: "text";
582
567
  height: number;
583
568
  width: number;
@@ -585,28 +570,21 @@ export declare const Template: z.ZodObject<{
585
570
  x: number;
586
571
  y: number;
587
572
  };
588
- }, {
589
- backgroundColor?: string | undefined;
590
- fontSize?: number | undefined;
591
- lineHeight?: number | undefined;
592
573
  rotate?: number | undefined;
593
574
  alignment?: "center" | "left" | "right" | undefined;
575
+ fontSize?: number | undefined;
594
576
  fontName?: string | undefined;
595
577
  fontColor?: string | undefined;
578
+ backgroundColor?: string | undefined;
596
579
  characterSpacing?: number | undefined;
580
+ lineHeight?: number | undefined;
597
581
  dynamicFontSize?: {
598
582
  max: number;
599
583
  min: number;
600
584
  } | undefined;
601
- type: "text";
602
- height: number;
603
- width: number;
604
- position: {
605
- x: number;
606
- y: number;
607
- };
608
- }>, z.ZodObject<z.extendShape<{
609
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
585
+ }>, z.ZodObject<{
586
+ height: z.ZodNumber;
587
+ width: z.ZodNumber;
610
588
  position: z.ZodObject<{
611
589
  x: z.ZodNumber;
612
590
  y: z.ZodNumber;
@@ -617,13 +595,9 @@ export declare const Template: z.ZodObject<{
617
595
  x: number;
618
596
  y: number;
619
597
  }>;
620
- width: z.ZodNumber;
621
- height: z.ZodNumber;
622
598
  rotate: z.ZodOptional<z.ZodNumber>;
623
- }, {
624
599
  type: z.ZodLiteral<"image">;
625
- }>, "strip", z.ZodTypeAny, {
626
- rotate?: number | undefined;
600
+ }, "strip", z.ZodTypeAny, {
627
601
  type: "image";
628
602
  height: number;
629
603
  width: number;
@@ -631,8 +605,8 @@ export declare const Template: z.ZodObject<{
631
605
  x: number;
632
606
  y: number;
633
607
  };
634
- }, {
635
608
  rotate?: number | undefined;
609
+ }, {
636
610
  type: "image";
637
611
  height: number;
638
612
  width: number;
@@ -640,8 +614,10 @@ export declare const Template: z.ZodObject<{
640
614
  x: number;
641
615
  y: number;
642
616
  };
643
- }>, z.ZodObject<z.extendShape<{
644
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
617
+ rotate?: number | undefined;
618
+ }>, z.ZodObject<{
619
+ height: z.ZodNumber;
620
+ width: z.ZodNumber;
645
621
  position: z.ZodObject<{
646
622
  x: z.ZodNumber;
647
623
  y: z.ZodNumber;
@@ -652,13 +628,9 @@ export declare const Template: z.ZodObject<{
652
628
  x: number;
653
629
  y: number;
654
630
  }>;
655
- width: z.ZodNumber;
656
- height: z.ZodNumber;
657
631
  rotate: z.ZodOptional<z.ZodNumber>;
658
- }, {
659
632
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
660
- }>, "strip", z.ZodTypeAny, {
661
- rotate?: number | undefined;
633
+ }, "strip", z.ZodTypeAny, {
662
634
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
663
635
  height: number;
664
636
  width: number;
@@ -666,8 +638,8 @@ export declare const Template: z.ZodObject<{
666
638
  x: number;
667
639
  y: number;
668
640
  };
669
- }, {
670
641
  rotate?: number | undefined;
642
+ }, {
671
643
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
672
644
  height: number;
673
645
  width: number;
@@ -675,78 +647,76 @@ export declare const Template: z.ZodObject<{
675
647
  x: number;
676
648
  y: number;
677
649
  };
650
+ rotate?: number | undefined;
678
651
  }>]>>, "many">;
679
652
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
680
653
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
681
654
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
682
655
  }, "strip", z.ZodTypeAny, {
683
- columns?: string[] | undefined;
684
- sampledata?: Record<string, string>[] | undefined;
685
656
  schemas: Record<string, {
686
- backgroundColor?: string | undefined;
687
- fontSize?: number | undefined;
688
- lineHeight?: number | undefined;
657
+ type: "text";
658
+ height: number;
659
+ width: number;
660
+ position: {
661
+ x: number;
662
+ y: number;
663
+ };
689
664
  rotate?: number | undefined;
690
665
  alignment?: "center" | "left" | "right" | undefined;
666
+ fontSize?: number | undefined;
691
667
  fontName?: string | undefined;
692
668
  fontColor?: string | undefined;
669
+ backgroundColor?: string | undefined;
693
670
  characterSpacing?: number | undefined;
671
+ lineHeight?: number | undefined;
694
672
  dynamicFontSize?: {
695
673
  max: number;
696
674
  min: number;
697
675
  } | undefined;
698
- type: "text";
676
+ } | {
677
+ type: "image";
699
678
  height: number;
700
679
  width: number;
701
680
  position: {
702
681
  x: number;
703
682
  y: number;
704
683
  };
705
- } | {
706
684
  rotate?: number | undefined;
707
- type: "image";
708
- height: number;
685
+ } | {
686
+ type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
687
+ height: number;
709
688
  width: number;
710
689
  position: {
711
690
  x: number;
712
691
  y: number;
713
692
  };
714
- } | {
715
693
  rotate?: number | undefined;
716
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
694
+ }>[];
695
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
696
+ sampledata?: Record<string, string>[] | undefined;
697
+ columns?: string[] | undefined;
698
+ }, {
699
+ schemas: Record<string, {
700
+ type: "text";
717
701
  height: number;
718
702
  width: number;
719
703
  position: {
720
704
  x: number;
721
705
  y: number;
722
706
  };
723
- }>[];
724
- basePdf: string | ArrayBuffer | Uint8Array;
725
- }, {
726
- columns?: string[] | undefined;
727
- sampledata?: Record<string, string>[] | undefined;
728
- schemas: Record<string, {
729
- backgroundColor?: string | undefined;
730
- fontSize?: number | undefined;
731
- lineHeight?: number | undefined;
732
707
  rotate?: number | undefined;
733
708
  alignment?: "center" | "left" | "right" | undefined;
709
+ fontSize?: number | undefined;
734
710
  fontName?: string | undefined;
735
711
  fontColor?: string | undefined;
712
+ backgroundColor?: string | undefined;
736
713
  characterSpacing?: number | undefined;
714
+ lineHeight?: number | undefined;
737
715
  dynamicFontSize?: {
738
716
  max: number;
739
717
  min: number;
740
718
  } | undefined;
741
- type: "text";
742
- height: number;
743
- width: number;
744
- position: {
745
- x: number;
746
- y: number;
747
- };
748
719
  } | {
749
- rotate?: number | undefined;
750
720
  type: "image";
751
721
  height: number;
752
722
  width: number;
@@ -754,8 +724,8 @@ export declare const Template: z.ZodObject<{
754
724
  x: number;
755
725
  y: number;
756
726
  };
757
- } | {
758
727
  rotate?: number | undefined;
728
+ } | {
759
729
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
760
730
  height: number;
761
731
  width: number;
@@ -763,14 +733,18 @@ export declare const Template: z.ZodObject<{
763
733
  x: number;
764
734
  y: number;
765
735
  };
736
+ rotate?: number | undefined;
766
737
  }>[];
767
- basePdf: string | ArrayBuffer | Uint8Array;
738
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
739
+ sampledata?: Record<string, string>[] | undefined;
740
+ columns?: string[] | undefined;
768
741
  }>;
769
742
  export declare const Inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
770
743
  export declare const CommonProps: z.ZodObject<{
771
744
  template: z.ZodObject<{
772
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.extendShape<{
773
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
745
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
746
+ height: z.ZodNumber;
747
+ width: z.ZodNumber;
774
748
  position: z.ZodObject<{
775
749
  x: z.ZodNumber;
776
750
  y: z.ZodNumber;
@@ -781,10 +755,7 @@ export declare const CommonProps: z.ZodObject<{
781
755
  x: number;
782
756
  y: number;
783
757
  }>;
784
- width: z.ZodNumber;
785
- height: z.ZodNumber;
786
758
  rotate: z.ZodOptional<z.ZodNumber>;
787
- }, {
788
759
  type: z.ZodLiteral<"text">;
789
760
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
790
761
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -803,19 +774,27 @@ export declare const CommonProps: z.ZodObject<{
803
774
  max: number;
804
775
  min: number;
805
776
  }>>;
806
- }>, "strip", z.ZodTypeAny, {
807
- backgroundColor?: string | undefined;
808
- fontSize?: number | undefined;
809
- lineHeight?: number | undefined;
777
+ }, "strip", z.ZodTypeAny, {
778
+ type: "text";
779
+ height: number;
780
+ width: number;
781
+ position: {
782
+ x: number;
783
+ y: number;
784
+ };
810
785
  rotate?: number | undefined;
811
786
  alignment?: "center" | "left" | "right" | undefined;
787
+ fontSize?: number | undefined;
812
788
  fontName?: string | undefined;
813
789
  fontColor?: string | undefined;
790
+ backgroundColor?: string | undefined;
814
791
  characterSpacing?: number | undefined;
792
+ lineHeight?: number | undefined;
815
793
  dynamicFontSize?: {
816
794
  max: number;
817
795
  min: number;
818
796
  } | undefined;
797
+ }, {
819
798
  type: "text";
820
799
  height: number;
821
800
  width: number;
@@ -823,28 +802,21 @@ export declare const CommonProps: z.ZodObject<{
823
802
  x: number;
824
803
  y: number;
825
804
  };
826
- }, {
827
- backgroundColor?: string | undefined;
828
- fontSize?: number | undefined;
829
- lineHeight?: number | undefined;
830
805
  rotate?: number | undefined;
831
806
  alignment?: "center" | "left" | "right" | undefined;
807
+ fontSize?: number | undefined;
832
808
  fontName?: string | undefined;
833
809
  fontColor?: string | undefined;
810
+ backgroundColor?: string | undefined;
834
811
  characterSpacing?: number | undefined;
812
+ lineHeight?: number | undefined;
835
813
  dynamicFontSize?: {
836
814
  max: number;
837
815
  min: number;
838
816
  } | undefined;
839
- type: "text";
840
- height: number;
841
- width: number;
842
- position: {
843
- x: number;
844
- y: number;
845
- };
846
- }>, z.ZodObject<z.extendShape<{
847
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
817
+ }>, z.ZodObject<{
818
+ height: z.ZodNumber;
819
+ width: z.ZodNumber;
848
820
  position: z.ZodObject<{
849
821
  x: z.ZodNumber;
850
822
  y: z.ZodNumber;
@@ -855,13 +827,9 @@ export declare const CommonProps: z.ZodObject<{
855
827
  x: number;
856
828
  y: number;
857
829
  }>;
858
- width: z.ZodNumber;
859
- height: z.ZodNumber;
860
830
  rotate: z.ZodOptional<z.ZodNumber>;
861
- }, {
862
831
  type: z.ZodLiteral<"image">;
863
- }>, "strip", z.ZodTypeAny, {
864
- rotate?: number | undefined;
832
+ }, "strip", z.ZodTypeAny, {
865
833
  type: "image";
866
834
  height: number;
867
835
  width: number;
@@ -869,8 +837,8 @@ export declare const CommonProps: z.ZodObject<{
869
837
  x: number;
870
838
  y: number;
871
839
  };
872
- }, {
873
840
  rotate?: number | undefined;
841
+ }, {
874
842
  type: "image";
875
843
  height: number;
876
844
  width: number;
@@ -878,8 +846,10 @@ export declare const CommonProps: z.ZodObject<{
878
846
  x: number;
879
847
  y: number;
880
848
  };
881
- }>, z.ZodObject<z.extendShape<{
882
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
849
+ rotate?: number | undefined;
850
+ }>, z.ZodObject<{
851
+ height: z.ZodNumber;
852
+ width: z.ZodNumber;
883
853
  position: z.ZodObject<{
884
854
  x: z.ZodNumber;
885
855
  y: z.ZodNumber;
@@ -890,13 +860,9 @@ export declare const CommonProps: z.ZodObject<{
890
860
  x: number;
891
861
  y: number;
892
862
  }>;
893
- width: z.ZodNumber;
894
- height: z.ZodNumber;
895
863
  rotate: z.ZodOptional<z.ZodNumber>;
896
- }, {
897
864
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
898
- }>, "strip", z.ZodTypeAny, {
899
- rotate?: number | undefined;
865
+ }, "strip", z.ZodTypeAny, {
900
866
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
901
867
  height: number;
902
868
  width: number;
@@ -904,8 +870,8 @@ export declare const CommonProps: z.ZodObject<{
904
870
  x: number;
905
871
  y: number;
906
872
  };
907
- }, {
908
873
  rotate?: number | undefined;
874
+ }, {
909
875
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
910
876
  height: number;
911
877
  width: number;
@@ -913,78 +879,76 @@ export declare const CommonProps: z.ZodObject<{
913
879
  x: number;
914
880
  y: number;
915
881
  };
882
+ rotate?: number | undefined;
916
883
  }>]>>, "many">;
917
884
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
918
885
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
919
886
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
920
887
  }, "strip", z.ZodTypeAny, {
921
- columns?: string[] | undefined;
922
- sampledata?: Record<string, string>[] | undefined;
923
888
  schemas: Record<string, {
924
- backgroundColor?: string | undefined;
925
- fontSize?: number | undefined;
926
- lineHeight?: number | undefined;
889
+ type: "text";
890
+ height: number;
891
+ width: number;
892
+ position: {
893
+ x: number;
894
+ y: number;
895
+ };
927
896
  rotate?: number | undefined;
928
897
  alignment?: "center" | "left" | "right" | undefined;
898
+ fontSize?: number | undefined;
929
899
  fontName?: string | undefined;
930
900
  fontColor?: string | undefined;
901
+ backgroundColor?: string | undefined;
931
902
  characterSpacing?: number | undefined;
903
+ lineHeight?: number | undefined;
932
904
  dynamicFontSize?: {
933
905
  max: number;
934
906
  min: number;
935
907
  } | undefined;
936
- type: "text";
908
+ } | {
909
+ type: "image";
937
910
  height: number;
938
911
  width: number;
939
912
  position: {
940
913
  x: number;
941
914
  y: number;
942
915
  };
943
- } | {
944
916
  rotate?: number | undefined;
945
- type: "image";
917
+ } | {
918
+ type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
946
919
  height: number;
947
920
  width: number;
948
921
  position: {
949
922
  x: number;
950
923
  y: number;
951
924
  };
952
- } | {
953
925
  rotate?: number | undefined;
954
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
926
+ }>[];
927
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
928
+ sampledata?: Record<string, string>[] | undefined;
929
+ columns?: string[] | undefined;
930
+ }, {
931
+ schemas: Record<string, {
932
+ type: "text";
955
933
  height: number;
956
934
  width: number;
957
935
  position: {
958
936
  x: number;
959
937
  y: number;
960
938
  };
961
- }>[];
962
- basePdf: string | ArrayBuffer | Uint8Array;
963
- }, {
964
- columns?: string[] | undefined;
965
- sampledata?: Record<string, string>[] | undefined;
966
- schemas: Record<string, {
967
- backgroundColor?: string | undefined;
968
- fontSize?: number | undefined;
969
- lineHeight?: number | undefined;
970
939
  rotate?: number | undefined;
971
940
  alignment?: "center" | "left" | "right" | undefined;
941
+ fontSize?: number | undefined;
972
942
  fontName?: string | undefined;
973
943
  fontColor?: string | undefined;
944
+ backgroundColor?: string | undefined;
974
945
  characterSpacing?: number | undefined;
946
+ lineHeight?: number | undefined;
975
947
  dynamicFontSize?: {
976
948
  max: number;
977
949
  min: number;
978
950
  } | undefined;
979
- type: "text";
980
- height: number;
981
- width: number;
982
- position: {
983
- x: number;
984
- y: number;
985
- };
986
951
  } | {
987
- rotate?: number | undefined;
988
952
  type: "image";
989
953
  height: number;
990
954
  width: number;
@@ -992,8 +956,8 @@ export declare const CommonProps: z.ZodObject<{
992
956
  x: number;
993
957
  y: number;
994
958
  };
995
- } | {
996
959
  rotate?: number | undefined;
960
+ } | {
997
961
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
998
962
  height: number;
999
963
  width: number;
@@ -1001,8 +965,11 @@ export declare const CommonProps: z.ZodObject<{
1001
965
  x: number;
1002
966
  y: number;
1003
967
  };
968
+ rotate?: number | undefined;
1004
969
  }>[];
1005
- basePdf: string | ArrayBuffer | Uint8Array;
970
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
971
+ sampledata?: Record<string, string>[] | undefined;
972
+ columns?: string[] | undefined;
1006
973
  }>;
1007
974
  options: z.ZodOptional<z.ZodObject<{
1008
975
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1010,60 +977,50 @@ export declare const CommonProps: z.ZodObject<{
1010
977
  fallback: z.ZodOptional<z.ZodBoolean>;
1011
978
  subset: z.ZodOptional<z.ZodBoolean>;
1012
979
  }, "strip", z.ZodTypeAny, {
980
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1013
981
  fallback?: boolean | undefined;
1014
982
  subset?: boolean | undefined;
1015
- data: string | ArrayBuffer | Uint8Array;
1016
983
  }, {
984
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1017
985
  fallback?: boolean | undefined;
1018
986
  subset?: boolean | undefined;
1019
- data: string | ArrayBuffer | Uint8Array;
1020
987
  }>>>;
1021
988
  }, "strip", z.ZodTypeAny, {
1022
989
  font?: Record<string, {
990
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1023
991
  fallback?: boolean | undefined;
1024
992
  subset?: boolean | undefined;
1025
- data: string | ArrayBuffer | Uint8Array;
1026
993
  }> | undefined;
1027
994
  }, {
1028
995
  font?: Record<string, {
996
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1029
997
  fallback?: boolean | undefined;
1030
998
  subset?: boolean | undefined;
1031
- data: string | ArrayBuffer | Uint8Array;
1032
999
  }> | undefined;
1033
1000
  }>>;
1034
1001
  }, "strip", z.ZodTypeAny, {
1035
- options?: {
1036
- font?: Record<string, {
1037
- fallback?: boolean | undefined;
1038
- subset?: boolean | undefined;
1039
- data: string | ArrayBuffer | Uint8Array;
1040
- }> | undefined;
1041
- } | undefined;
1042
1002
  template: {
1043
- columns?: string[] | undefined;
1044
- sampledata?: Record<string, string>[] | undefined;
1045
1003
  schemas: Record<string, {
1046
- backgroundColor?: string | undefined;
1047
- fontSize?: number | undefined;
1048
- lineHeight?: number | undefined;
1004
+ type: "text";
1005
+ height: number;
1006
+ width: number;
1007
+ position: {
1008
+ x: number;
1009
+ y: number;
1010
+ };
1049
1011
  rotate?: number | undefined;
1050
1012
  alignment?: "center" | "left" | "right" | undefined;
1013
+ fontSize?: number | undefined;
1051
1014
  fontName?: string | undefined;
1052
1015
  fontColor?: string | undefined;
1016
+ backgroundColor?: string | undefined;
1053
1017
  characterSpacing?: number | undefined;
1018
+ lineHeight?: number | undefined;
1054
1019
  dynamicFontSize?: {
1055
1020
  max: number;
1056
1021
  min: number;
1057
1022
  } | undefined;
1058
- type: "text";
1059
- height: number;
1060
- width: number;
1061
- position: {
1062
- x: number;
1063
- y: number;
1064
- };
1065
1023
  } | {
1066
- rotate?: number | undefined;
1067
1024
  type: "image";
1068
1025
  height: number;
1069
1026
  width: number;
@@ -1071,8 +1028,8 @@ export declare const CommonProps: z.ZodObject<{
1071
1028
  x: number;
1072
1029
  y: number;
1073
1030
  };
1074
- } | {
1075
1031
  rotate?: number | undefined;
1032
+ } | {
1076
1033
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1077
1034
  height: number;
1078
1035
  width: number;
@@ -1080,42 +1037,42 @@ export declare const CommonProps: z.ZodObject<{
1080
1037
  x: number;
1081
1038
  y: number;
1082
1039
  };
1040
+ rotate?: number | undefined;
1083
1041
  }>[];
1084
- basePdf: string | ArrayBuffer | Uint8Array;
1042
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1043
+ sampledata?: Record<string, string>[] | undefined;
1044
+ columns?: string[] | undefined;
1085
1045
  };
1086
- }, {
1087
1046
  options?: {
1088
1047
  font?: Record<string, {
1048
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1089
1049
  fallback?: boolean | undefined;
1090
1050
  subset?: boolean | undefined;
1091
- data: string | ArrayBuffer | Uint8Array;
1092
1051
  }> | undefined;
1093
1052
  } | undefined;
1053
+ }, {
1094
1054
  template: {
1095
- columns?: string[] | undefined;
1096
- sampledata?: Record<string, string>[] | undefined;
1097
1055
  schemas: Record<string, {
1098
- backgroundColor?: string | undefined;
1099
- fontSize?: number | undefined;
1100
- lineHeight?: number | undefined;
1056
+ type: "text";
1057
+ height: number;
1058
+ width: number;
1059
+ position: {
1060
+ x: number;
1061
+ y: number;
1062
+ };
1101
1063
  rotate?: number | undefined;
1102
1064
  alignment?: "center" | "left" | "right" | undefined;
1065
+ fontSize?: number | undefined;
1103
1066
  fontName?: string | undefined;
1104
1067
  fontColor?: string | undefined;
1068
+ backgroundColor?: string | undefined;
1105
1069
  characterSpacing?: number | undefined;
1070
+ lineHeight?: number | undefined;
1106
1071
  dynamicFontSize?: {
1107
1072
  max: number;
1108
1073
  min: number;
1109
1074
  } | undefined;
1110
- type: "text";
1111
- height: number;
1112
- width: number;
1113
- position: {
1114
- x: number;
1115
- y: number;
1116
- };
1117
1075
  } | {
1118
- rotate?: number | undefined;
1119
1076
  type: "image";
1120
1077
  height: number;
1121
1078
  width: number;
@@ -1123,8 +1080,8 @@ export declare const CommonProps: z.ZodObject<{
1123
1080
  x: number;
1124
1081
  y: number;
1125
1082
  };
1126
- } | {
1127
1083
  rotate?: number | undefined;
1084
+ } | {
1128
1085
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1129
1086
  height: number;
1130
1087
  width: number;
@@ -1132,9 +1089,19 @@ export declare const CommonProps: z.ZodObject<{
1132
1089
  x: number;
1133
1090
  y: number;
1134
1091
  };
1092
+ rotate?: number | undefined;
1135
1093
  }>[];
1136
- basePdf: string | ArrayBuffer | Uint8Array;
1094
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1095
+ sampledata?: Record<string, string>[] | undefined;
1096
+ columns?: string[] | undefined;
1137
1097
  };
1098
+ options?: {
1099
+ font?: Record<string, {
1100
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1101
+ fallback?: boolean | undefined;
1102
+ subset?: boolean | undefined;
1103
+ }> | undefined;
1104
+ } | undefined;
1138
1105
  }>;
1139
1106
  export declare const GeneratorOptions: z.ZodObject<{
1140
1107
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1142,31 +1109,32 @@ export declare const GeneratorOptions: z.ZodObject<{
1142
1109
  fallback: z.ZodOptional<z.ZodBoolean>;
1143
1110
  subset: z.ZodOptional<z.ZodBoolean>;
1144
1111
  }, "strip", z.ZodTypeAny, {
1112
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1145
1113
  fallback?: boolean | undefined;
1146
1114
  subset?: boolean | undefined;
1147
- data: string | ArrayBuffer | Uint8Array;
1148
1115
  }, {
1116
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1149
1117
  fallback?: boolean | undefined;
1150
1118
  subset?: boolean | undefined;
1151
- data: string | ArrayBuffer | Uint8Array;
1152
1119
  }>>>;
1153
1120
  }, "strip", z.ZodTypeAny, {
1154
1121
  font?: Record<string, {
1122
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1155
1123
  fallback?: boolean | undefined;
1156
1124
  subset?: boolean | undefined;
1157
- data: string | ArrayBuffer | Uint8Array;
1158
1125
  }> | undefined;
1159
1126
  }, {
1160
1127
  font?: Record<string, {
1128
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1161
1129
  fallback?: boolean | undefined;
1162
1130
  subset?: boolean | undefined;
1163
- data: string | ArrayBuffer | Uint8Array;
1164
1131
  }> | undefined;
1165
1132
  }>;
1166
- export declare const GenerateProps: z.ZodObject<z.extendShape<{
1133
+ export declare const GenerateProps: z.ZodObject<{
1167
1134
  template: z.ZodObject<{
1168
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.extendShape<{
1169
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
1135
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1136
+ height: z.ZodNumber;
1137
+ width: z.ZodNumber;
1170
1138
  position: z.ZodObject<{
1171
1139
  x: z.ZodNumber;
1172
1140
  y: z.ZodNumber;
@@ -1177,10 +1145,7 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1177
1145
  x: number;
1178
1146
  y: number;
1179
1147
  }>;
1180
- width: z.ZodNumber;
1181
- height: z.ZodNumber;
1182
1148
  rotate: z.ZodOptional<z.ZodNumber>;
1183
- }, {
1184
1149
  type: z.ZodLiteral<"text">;
1185
1150
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1186
1151
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -1199,19 +1164,27 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1199
1164
  max: number;
1200
1165
  min: number;
1201
1166
  }>>;
1202
- }>, "strip", z.ZodTypeAny, {
1203
- backgroundColor?: string | undefined;
1204
- fontSize?: number | undefined;
1205
- lineHeight?: number | undefined;
1167
+ }, "strip", z.ZodTypeAny, {
1168
+ type: "text";
1169
+ height: number;
1170
+ width: number;
1171
+ position: {
1172
+ x: number;
1173
+ y: number;
1174
+ };
1206
1175
  rotate?: number | undefined;
1207
1176
  alignment?: "center" | "left" | "right" | undefined;
1177
+ fontSize?: number | undefined;
1208
1178
  fontName?: string | undefined;
1209
1179
  fontColor?: string | undefined;
1180
+ backgroundColor?: string | undefined;
1210
1181
  characterSpacing?: number | undefined;
1182
+ lineHeight?: number | undefined;
1211
1183
  dynamicFontSize?: {
1212
1184
  max: number;
1213
1185
  min: number;
1214
1186
  } | undefined;
1187
+ }, {
1215
1188
  type: "text";
1216
1189
  height: number;
1217
1190
  width: number;
@@ -1219,28 +1192,21 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1219
1192
  x: number;
1220
1193
  y: number;
1221
1194
  };
1222
- }, {
1223
- backgroundColor?: string | undefined;
1224
- fontSize?: number | undefined;
1225
- lineHeight?: number | undefined;
1226
1195
  rotate?: number | undefined;
1227
1196
  alignment?: "center" | "left" | "right" | undefined;
1197
+ fontSize?: number | undefined;
1228
1198
  fontName?: string | undefined;
1229
1199
  fontColor?: string | undefined;
1200
+ backgroundColor?: string | undefined;
1230
1201
  characterSpacing?: number | undefined;
1202
+ lineHeight?: number | undefined;
1231
1203
  dynamicFontSize?: {
1232
1204
  max: number;
1233
1205
  min: number;
1234
1206
  } | undefined;
1235
- type: "text";
1236
- height: number;
1237
- width: number;
1238
- position: {
1239
- x: number;
1240
- y: number;
1241
- };
1242
- }>, z.ZodObject<z.extendShape<{
1243
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
1207
+ }>, z.ZodObject<{
1208
+ height: z.ZodNumber;
1209
+ width: z.ZodNumber;
1244
1210
  position: z.ZodObject<{
1245
1211
  x: z.ZodNumber;
1246
1212
  y: z.ZodNumber;
@@ -1251,13 +1217,9 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1251
1217
  x: number;
1252
1218
  y: number;
1253
1219
  }>;
1254
- width: z.ZodNumber;
1255
- height: z.ZodNumber;
1256
1220
  rotate: z.ZodOptional<z.ZodNumber>;
1257
- }, {
1258
1221
  type: z.ZodLiteral<"image">;
1259
- }>, "strip", z.ZodTypeAny, {
1260
- rotate?: number | undefined;
1222
+ }, "strip", z.ZodTypeAny, {
1261
1223
  type: "image";
1262
1224
  height: number;
1263
1225
  width: number;
@@ -1265,8 +1227,8 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1265
1227
  x: number;
1266
1228
  y: number;
1267
1229
  };
1268
- }, {
1269
1230
  rotate?: number | undefined;
1231
+ }, {
1270
1232
  type: "image";
1271
1233
  height: number;
1272
1234
  width: number;
@@ -1274,8 +1236,10 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1274
1236
  x: number;
1275
1237
  y: number;
1276
1238
  };
1277
- }>, z.ZodObject<z.extendShape<{
1278
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
1239
+ rotate?: number | undefined;
1240
+ }>, z.ZodObject<{
1241
+ height: z.ZodNumber;
1242
+ width: z.ZodNumber;
1279
1243
  position: z.ZodObject<{
1280
1244
  x: z.ZodNumber;
1281
1245
  y: z.ZodNumber;
@@ -1286,13 +1250,9 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1286
1250
  x: number;
1287
1251
  y: number;
1288
1252
  }>;
1289
- width: z.ZodNumber;
1290
- height: z.ZodNumber;
1291
1253
  rotate: z.ZodOptional<z.ZodNumber>;
1292
- }, {
1293
1254
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
1294
- }>, "strip", z.ZodTypeAny, {
1295
- rotate?: number | undefined;
1255
+ }, "strip", z.ZodTypeAny, {
1296
1256
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1297
1257
  height: number;
1298
1258
  width: number;
@@ -1300,8 +1260,8 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1300
1260
  x: number;
1301
1261
  y: number;
1302
1262
  };
1303
- }, {
1304
1263
  rotate?: number | undefined;
1264
+ }, {
1305
1265
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1306
1266
  height: number;
1307
1267
  width: number;
@@ -1309,78 +1269,76 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1309
1269
  x: number;
1310
1270
  y: number;
1311
1271
  };
1272
+ rotate?: number | undefined;
1312
1273
  }>]>>, "many">;
1313
1274
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1314
1275
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1315
1276
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1316
1277
  }, "strip", z.ZodTypeAny, {
1317
- columns?: string[] | undefined;
1318
- sampledata?: Record<string, string>[] | undefined;
1319
1278
  schemas: Record<string, {
1320
- backgroundColor?: string | undefined;
1321
- fontSize?: number | undefined;
1322
- lineHeight?: number | undefined;
1279
+ type: "text";
1280
+ height: number;
1281
+ width: number;
1282
+ position: {
1283
+ x: number;
1284
+ y: number;
1285
+ };
1323
1286
  rotate?: number | undefined;
1324
1287
  alignment?: "center" | "left" | "right" | undefined;
1288
+ fontSize?: number | undefined;
1325
1289
  fontName?: string | undefined;
1326
1290
  fontColor?: string | undefined;
1291
+ backgroundColor?: string | undefined;
1327
1292
  characterSpacing?: number | undefined;
1293
+ lineHeight?: number | undefined;
1328
1294
  dynamicFontSize?: {
1329
1295
  max: number;
1330
1296
  min: number;
1331
1297
  } | undefined;
1332
- type: "text";
1298
+ } | {
1299
+ type: "image";
1333
1300
  height: number;
1334
1301
  width: number;
1335
1302
  position: {
1336
1303
  x: number;
1337
1304
  y: number;
1338
1305
  };
1339
- } | {
1340
1306
  rotate?: number | undefined;
1341
- type: "image";
1307
+ } | {
1308
+ type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1342
1309
  height: number;
1343
1310
  width: number;
1344
1311
  position: {
1345
1312
  x: number;
1346
1313
  y: number;
1347
1314
  };
1348
- } | {
1349
1315
  rotate?: number | undefined;
1350
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1316
+ }>[];
1317
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1318
+ sampledata?: Record<string, string>[] | undefined;
1319
+ columns?: string[] | undefined;
1320
+ }, {
1321
+ schemas: Record<string, {
1322
+ type: "text";
1351
1323
  height: number;
1352
1324
  width: number;
1353
1325
  position: {
1354
1326
  x: number;
1355
1327
  y: number;
1356
1328
  };
1357
- }>[];
1358
- basePdf: string | ArrayBuffer | Uint8Array;
1359
- }, {
1360
- columns?: string[] | undefined;
1361
- sampledata?: Record<string, string>[] | undefined;
1362
- schemas: Record<string, {
1363
- backgroundColor?: string | undefined;
1364
- fontSize?: number | undefined;
1365
- lineHeight?: number | undefined;
1366
1329
  rotate?: number | undefined;
1367
1330
  alignment?: "center" | "left" | "right" | undefined;
1331
+ fontSize?: number | undefined;
1368
1332
  fontName?: string | undefined;
1369
1333
  fontColor?: string | undefined;
1334
+ backgroundColor?: string | undefined;
1370
1335
  characterSpacing?: number | undefined;
1336
+ lineHeight?: number | undefined;
1371
1337
  dynamicFontSize?: {
1372
1338
  max: number;
1373
1339
  min: number;
1374
1340
  } | undefined;
1375
- type: "text";
1376
- height: number;
1377
- width: number;
1378
- position: {
1379
- x: number;
1380
- y: number;
1381
- };
1382
1341
  } | {
1383
- rotate?: number | undefined;
1384
1342
  type: "image";
1385
1343
  height: number;
1386
1344
  width: number;
@@ -1388,8 +1346,8 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1388
1346
  x: number;
1389
1347
  y: number;
1390
1348
  };
1391
- } | {
1392
1349
  rotate?: number | undefined;
1350
+ } | {
1393
1351
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1394
1352
  height: number;
1395
1353
  width: number;
@@ -1397,37 +1355,12 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1397
1355
  x: number;
1398
1356
  y: number;
1399
1357
  };
1358
+ rotate?: number | undefined;
1400
1359
  }>[];
1401
- basePdf: string | ArrayBuffer | Uint8Array;
1360
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1361
+ sampledata?: Record<string, string>[] | undefined;
1362
+ columns?: string[] | undefined;
1402
1363
  }>;
1403
- options: z.ZodOptional<z.ZodObject<{
1404
- font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1405
- data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1406
- fallback: z.ZodOptional<z.ZodBoolean>;
1407
- subset: z.ZodOptional<z.ZodBoolean>;
1408
- }, "strip", z.ZodTypeAny, {
1409
- fallback?: boolean | undefined;
1410
- subset?: boolean | undefined;
1411
- data: string | ArrayBuffer | Uint8Array;
1412
- }, {
1413
- fallback?: boolean | undefined;
1414
- subset?: boolean | undefined;
1415
- data: string | ArrayBuffer | Uint8Array;
1416
- }>>>;
1417
- }, "strip", z.ZodTypeAny, {
1418
- font?: Record<string, {
1419
- fallback?: boolean | undefined;
1420
- subset?: boolean | undefined;
1421
- data: string | ArrayBuffer | Uint8Array;
1422
- }> | undefined;
1423
- }, {
1424
- font?: Record<string, {
1425
- fallback?: boolean | undefined;
1426
- subset?: boolean | undefined;
1427
- data: string | ArrayBuffer | Uint8Array;
1428
- }> | undefined;
1429
- }>>;
1430
- }, {
1431
1364
  inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
1432
1365
  options: z.ZodOptional<z.ZodObject<{
1433
1366
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1435,60 +1368,50 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1435
1368
  fallback: z.ZodOptional<z.ZodBoolean>;
1436
1369
  subset: z.ZodOptional<z.ZodBoolean>;
1437
1370
  }, "strip", z.ZodTypeAny, {
1371
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1438
1372
  fallback?: boolean | undefined;
1439
1373
  subset?: boolean | undefined;
1440
- data: string | ArrayBuffer | Uint8Array;
1441
1374
  }, {
1375
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1442
1376
  fallback?: boolean | undefined;
1443
1377
  subset?: boolean | undefined;
1444
- data: string | ArrayBuffer | Uint8Array;
1445
1378
  }>>>;
1446
1379
  }, "strip", z.ZodTypeAny, {
1447
1380
  font?: Record<string, {
1381
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1448
1382
  fallback?: boolean | undefined;
1449
1383
  subset?: boolean | undefined;
1450
- data: string | ArrayBuffer | Uint8Array;
1451
1384
  }> | undefined;
1452
1385
  }, {
1453
1386
  font?: Record<string, {
1387
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1454
1388
  fallback?: boolean | undefined;
1455
1389
  subset?: boolean | undefined;
1456
- data: string | ArrayBuffer | Uint8Array;
1457
1390
  }> | undefined;
1458
1391
  }>>;
1459
- }>, "strict", z.ZodTypeAny, {
1460
- options?: {
1461
- font?: Record<string, {
1462
- fallback?: boolean | undefined;
1463
- subset?: boolean | undefined;
1464
- data: string | ArrayBuffer | Uint8Array;
1465
- }> | undefined;
1466
- } | undefined;
1392
+ }, "strict", z.ZodTypeAny, {
1467
1393
  template: {
1468
- columns?: string[] | undefined;
1469
- sampledata?: Record<string, string>[] | undefined;
1470
1394
  schemas: Record<string, {
1471
- backgroundColor?: string | undefined;
1472
- fontSize?: number | undefined;
1473
- lineHeight?: number | undefined;
1395
+ type: "text";
1396
+ height: number;
1397
+ width: number;
1398
+ position: {
1399
+ x: number;
1400
+ y: number;
1401
+ };
1474
1402
  rotate?: number | undefined;
1475
1403
  alignment?: "center" | "left" | "right" | undefined;
1404
+ fontSize?: number | undefined;
1476
1405
  fontName?: string | undefined;
1477
1406
  fontColor?: string | undefined;
1407
+ backgroundColor?: string | undefined;
1478
1408
  characterSpacing?: number | undefined;
1409
+ lineHeight?: number | undefined;
1479
1410
  dynamicFontSize?: {
1480
1411
  max: number;
1481
1412
  min: number;
1482
1413
  } | undefined;
1483
- type: "text";
1484
- height: number;
1485
- width: number;
1486
- position: {
1487
- x: number;
1488
- y: number;
1489
- };
1490
1414
  } | {
1491
- rotate?: number | undefined;
1492
1415
  type: "image";
1493
1416
  height: number;
1494
1417
  width: number;
@@ -1496,8 +1419,8 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1496
1419
  x: number;
1497
1420
  y: number;
1498
1421
  };
1499
- } | {
1500
1422
  rotate?: number | undefined;
1423
+ } | {
1501
1424
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1502
1425
  height: number;
1503
1426
  width: number;
@@ -1505,43 +1428,43 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1505
1428
  x: number;
1506
1429
  y: number;
1507
1430
  };
1431
+ rotate?: number | undefined;
1508
1432
  }>[];
1509
- basePdf: string | ArrayBuffer | Uint8Array;
1433
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1434
+ sampledata?: Record<string, string>[] | undefined;
1435
+ columns?: string[] | undefined;
1510
1436
  };
1511
1437
  inputs: Record<string, string>[];
1512
- }, {
1513
1438
  options?: {
1514
1439
  font?: Record<string, {
1440
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1515
1441
  fallback?: boolean | undefined;
1516
1442
  subset?: boolean | undefined;
1517
- data: string | ArrayBuffer | Uint8Array;
1518
1443
  }> | undefined;
1519
1444
  } | undefined;
1445
+ }, {
1520
1446
  template: {
1521
- columns?: string[] | undefined;
1522
- sampledata?: Record<string, string>[] | undefined;
1523
1447
  schemas: Record<string, {
1524
- backgroundColor?: string | undefined;
1525
- fontSize?: number | undefined;
1526
- lineHeight?: number | undefined;
1448
+ type: "text";
1449
+ height: number;
1450
+ width: number;
1451
+ position: {
1452
+ x: number;
1453
+ y: number;
1454
+ };
1527
1455
  rotate?: number | undefined;
1528
1456
  alignment?: "center" | "left" | "right" | undefined;
1457
+ fontSize?: number | undefined;
1529
1458
  fontName?: string | undefined;
1530
1459
  fontColor?: string | undefined;
1460
+ backgroundColor?: string | undefined;
1531
1461
  characterSpacing?: number | undefined;
1462
+ lineHeight?: number | undefined;
1532
1463
  dynamicFontSize?: {
1533
1464
  max: number;
1534
1465
  min: number;
1535
1466
  } | undefined;
1536
- type: "text";
1537
- height: number;
1538
- width: number;
1539
- position: {
1540
- x: number;
1541
- y: number;
1542
- };
1543
1467
  } | {
1544
- rotate?: number | undefined;
1545
1468
  type: "image";
1546
1469
  height: number;
1547
1470
  width: number;
@@ -1549,8 +1472,8 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1549
1472
  x: number;
1550
1473
  y: number;
1551
1474
  };
1552
- } | {
1553
1475
  rotate?: number | undefined;
1476
+ } | {
1554
1477
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1555
1478
  height: number;
1556
1479
  width: number;
@@ -1558,47 +1481,57 @@ export declare const GenerateProps: z.ZodObject<z.extendShape<{
1558
1481
  x: number;
1559
1482
  y: number;
1560
1483
  };
1484
+ rotate?: number | undefined;
1561
1485
  }>[];
1562
- basePdf: string | ArrayBuffer | Uint8Array;
1486
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1487
+ sampledata?: Record<string, string>[] | undefined;
1488
+ columns?: string[] | undefined;
1563
1489
  };
1564
1490
  inputs: Record<string, string>[];
1491
+ options?: {
1492
+ font?: Record<string, {
1493
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1494
+ fallback?: boolean | undefined;
1495
+ subset?: boolean | undefined;
1496
+ }> | undefined;
1497
+ } | undefined;
1565
1498
  }>;
1566
1499
  export declare const SchemaInputs: z.ZodRecord<z.ZodString, z.ZodString>;
1567
- export declare const UIOptions: z.ZodObject<z.extendShape<{
1500
+ export declare const UIOptions: z.ZodObject<{
1568
1501
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1569
1502
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1570
1503
  fallback: z.ZodOptional<z.ZodBoolean>;
1571
1504
  subset: z.ZodOptional<z.ZodBoolean>;
1572
1505
  }, "strip", z.ZodTypeAny, {
1506
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1573
1507
  fallback?: boolean | undefined;
1574
1508
  subset?: boolean | undefined;
1575
- data: string | ArrayBuffer | Uint8Array;
1576
1509
  }, {
1510
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1577
1511
  fallback?: boolean | undefined;
1578
1512
  subset?: boolean | undefined;
1579
- data: string | ArrayBuffer | Uint8Array;
1580
1513
  }>>>;
1581
- }, {
1582
1514
  lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar"]>>;
1583
- }>, "strip", z.ZodTypeAny, {
1515
+ }, "strip", z.ZodTypeAny, {
1584
1516
  font?: Record<string, {
1517
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1585
1518
  fallback?: boolean | undefined;
1586
1519
  subset?: boolean | undefined;
1587
- data: string | ArrayBuffer | Uint8Array;
1588
1520
  }> | undefined;
1589
1521
  lang?: "en" | "ja" | "ar" | undefined;
1590
1522
  }, {
1591
1523
  font?: Record<string, {
1524
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1592
1525
  fallback?: boolean | undefined;
1593
1526
  subset?: boolean | undefined;
1594
- data: string | ArrayBuffer | Uint8Array;
1595
1527
  }> | undefined;
1596
1528
  lang?: "en" | "ja" | "ar" | undefined;
1597
1529
  }>;
1598
- export declare const UIProps: z.ZodObject<z.extendShape<{
1530
+ export declare const UIProps: z.ZodObject<{
1599
1531
  template: z.ZodObject<{
1600
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.extendShape<{
1601
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
1532
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1533
+ height: z.ZodNumber;
1534
+ width: z.ZodNumber;
1602
1535
  position: z.ZodObject<{
1603
1536
  x: z.ZodNumber;
1604
1537
  y: z.ZodNumber;
@@ -1609,10 +1542,7 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1609
1542
  x: number;
1610
1543
  y: number;
1611
1544
  }>;
1612
- width: z.ZodNumber;
1613
- height: z.ZodNumber;
1614
1545
  rotate: z.ZodOptional<z.ZodNumber>;
1615
- }, {
1616
1546
  type: z.ZodLiteral<"text">;
1617
1547
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1618
1548
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -1631,19 +1561,27 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1631
1561
  max: number;
1632
1562
  min: number;
1633
1563
  }>>;
1634
- }>, "strip", z.ZodTypeAny, {
1635
- backgroundColor?: string | undefined;
1636
- fontSize?: number | undefined;
1637
- lineHeight?: number | undefined;
1564
+ }, "strip", z.ZodTypeAny, {
1565
+ type: "text";
1566
+ height: number;
1567
+ width: number;
1568
+ position: {
1569
+ x: number;
1570
+ y: number;
1571
+ };
1638
1572
  rotate?: number | undefined;
1639
1573
  alignment?: "center" | "left" | "right" | undefined;
1574
+ fontSize?: number | undefined;
1640
1575
  fontName?: string | undefined;
1641
1576
  fontColor?: string | undefined;
1577
+ backgroundColor?: string | undefined;
1642
1578
  characterSpacing?: number | undefined;
1579
+ lineHeight?: number | undefined;
1643
1580
  dynamicFontSize?: {
1644
1581
  max: number;
1645
1582
  min: number;
1646
1583
  } | undefined;
1584
+ }, {
1647
1585
  type: "text";
1648
1586
  height: number;
1649
1587
  width: number;
@@ -1651,28 +1589,21 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1651
1589
  x: number;
1652
1590
  y: number;
1653
1591
  };
1654
- }, {
1655
- backgroundColor?: string | undefined;
1656
- fontSize?: number | undefined;
1657
- lineHeight?: number | undefined;
1658
1592
  rotate?: number | undefined;
1659
1593
  alignment?: "center" | "left" | "right" | undefined;
1594
+ fontSize?: number | undefined;
1660
1595
  fontName?: string | undefined;
1661
1596
  fontColor?: string | undefined;
1597
+ backgroundColor?: string | undefined;
1662
1598
  characterSpacing?: number | undefined;
1599
+ lineHeight?: number | undefined;
1663
1600
  dynamicFontSize?: {
1664
1601
  max: number;
1665
1602
  min: number;
1666
1603
  } | undefined;
1667
- type: "text";
1668
- height: number;
1669
- width: number;
1670
- position: {
1671
- x: number;
1672
- y: number;
1673
- };
1674
- }>, z.ZodObject<z.extendShape<{
1675
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
1604
+ }>, z.ZodObject<{
1605
+ height: z.ZodNumber;
1606
+ width: z.ZodNumber;
1676
1607
  position: z.ZodObject<{
1677
1608
  x: z.ZodNumber;
1678
1609
  y: z.ZodNumber;
@@ -1683,13 +1614,9 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1683
1614
  x: number;
1684
1615
  y: number;
1685
1616
  }>;
1686
- width: z.ZodNumber;
1687
- height: z.ZodNumber;
1688
1617
  rotate: z.ZodOptional<z.ZodNumber>;
1689
- }, {
1690
1618
  type: z.ZodLiteral<"image">;
1691
- }>, "strip", z.ZodTypeAny, {
1692
- rotate?: number | undefined;
1619
+ }, "strip", z.ZodTypeAny, {
1693
1620
  type: "image";
1694
1621
  height: number;
1695
1622
  width: number;
@@ -1697,8 +1624,8 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1697
1624
  x: number;
1698
1625
  y: number;
1699
1626
  };
1700
- }, {
1701
1627
  rotate?: number | undefined;
1628
+ }, {
1702
1629
  type: "image";
1703
1630
  height: number;
1704
1631
  width: number;
@@ -1706,8 +1633,10 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1706
1633
  x: number;
1707
1634
  y: number;
1708
1635
  };
1709
- }>, z.ZodObject<z.extendShape<{
1710
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
1636
+ rotate?: number | undefined;
1637
+ }>, z.ZodObject<{
1638
+ height: z.ZodNumber;
1639
+ width: z.ZodNumber;
1711
1640
  position: z.ZodObject<{
1712
1641
  x: z.ZodNumber;
1713
1642
  y: z.ZodNumber;
@@ -1718,13 +1647,9 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1718
1647
  x: number;
1719
1648
  y: number;
1720
1649
  }>;
1721
- width: z.ZodNumber;
1722
- height: z.ZodNumber;
1723
1650
  rotate: z.ZodOptional<z.ZodNumber>;
1724
- }, {
1725
1651
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
1726
- }>, "strip", z.ZodTypeAny, {
1727
- rotate?: number | undefined;
1652
+ }, "strip", z.ZodTypeAny, {
1728
1653
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1729
1654
  height: number;
1730
1655
  width: number;
@@ -1732,8 +1657,8 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1732
1657
  x: number;
1733
1658
  y: number;
1734
1659
  };
1735
- }, {
1736
1660
  rotate?: number | undefined;
1661
+ }, {
1737
1662
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1738
1663
  height: number;
1739
1664
  width: number;
@@ -1741,78 +1666,76 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1741
1666
  x: number;
1742
1667
  y: number;
1743
1668
  };
1669
+ rotate?: number | undefined;
1744
1670
  }>]>>, "many">;
1745
1671
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1746
1672
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1747
1673
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1748
1674
  }, "strip", z.ZodTypeAny, {
1749
- columns?: string[] | undefined;
1750
- sampledata?: Record<string, string>[] | undefined;
1751
1675
  schemas: Record<string, {
1752
- backgroundColor?: string | undefined;
1753
- fontSize?: number | undefined;
1754
- lineHeight?: number | undefined;
1676
+ type: "text";
1677
+ height: number;
1678
+ width: number;
1679
+ position: {
1680
+ x: number;
1681
+ y: number;
1682
+ };
1755
1683
  rotate?: number | undefined;
1756
1684
  alignment?: "center" | "left" | "right" | undefined;
1685
+ fontSize?: number | undefined;
1757
1686
  fontName?: string | undefined;
1758
1687
  fontColor?: string | undefined;
1688
+ backgroundColor?: string | undefined;
1759
1689
  characterSpacing?: number | undefined;
1690
+ lineHeight?: number | undefined;
1760
1691
  dynamicFontSize?: {
1761
1692
  max: number;
1762
1693
  min: number;
1763
1694
  } | undefined;
1764
- type: "text";
1695
+ } | {
1696
+ type: "image";
1765
1697
  height: number;
1766
1698
  width: number;
1767
1699
  position: {
1768
1700
  x: number;
1769
1701
  y: number;
1770
1702
  };
1771
- } | {
1772
1703
  rotate?: number | undefined;
1773
- type: "image";
1704
+ } | {
1705
+ type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1774
1706
  height: number;
1775
1707
  width: number;
1776
1708
  position: {
1777
1709
  x: number;
1778
1710
  y: number;
1779
1711
  };
1780
- } | {
1781
1712
  rotate?: number | undefined;
1782
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1713
+ }>[];
1714
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1715
+ sampledata?: Record<string, string>[] | undefined;
1716
+ columns?: string[] | undefined;
1717
+ }, {
1718
+ schemas: Record<string, {
1719
+ type: "text";
1783
1720
  height: number;
1784
1721
  width: number;
1785
1722
  position: {
1786
1723
  x: number;
1787
1724
  y: number;
1788
1725
  };
1789
- }>[];
1790
- basePdf: string | ArrayBuffer | Uint8Array;
1791
- }, {
1792
- columns?: string[] | undefined;
1793
- sampledata?: Record<string, string>[] | undefined;
1794
- schemas: Record<string, {
1795
- backgroundColor?: string | undefined;
1796
- fontSize?: number | undefined;
1797
- lineHeight?: number | undefined;
1798
1726
  rotate?: number | undefined;
1799
1727
  alignment?: "center" | "left" | "right" | undefined;
1728
+ fontSize?: number | undefined;
1800
1729
  fontName?: string | undefined;
1801
1730
  fontColor?: string | undefined;
1731
+ backgroundColor?: string | undefined;
1802
1732
  characterSpacing?: number | undefined;
1733
+ lineHeight?: number | undefined;
1803
1734
  dynamicFontSize?: {
1804
1735
  max: number;
1805
1736
  min: number;
1806
1737
  } | undefined;
1807
- type: "text";
1808
- height: number;
1809
- width: number;
1810
- position: {
1811
- x: number;
1812
- y: number;
1813
- };
1814
1738
  } | {
1815
- rotate?: number | undefined;
1816
1739
  type: "image";
1817
1740
  height: number;
1818
1741
  width: number;
@@ -1820,8 +1743,8 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1820
1743
  x: number;
1821
1744
  y: number;
1822
1745
  };
1823
- } | {
1824
1746
  rotate?: number | undefined;
1747
+ } | {
1825
1748
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1826
1749
  height: number;
1827
1750
  width: number;
@@ -1829,103 +1752,66 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1829
1752
  x: number;
1830
1753
  y: number;
1831
1754
  };
1755
+ rotate?: number | undefined;
1832
1756
  }>[];
1833
- basePdf: string | ArrayBuffer | Uint8Array;
1757
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1758
+ sampledata?: Record<string, string>[] | undefined;
1759
+ columns?: string[] | undefined;
1834
1760
  }>;
1835
- options: z.ZodOptional<z.ZodObject<{
1836
- font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1837
- data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1838
- fallback: z.ZodOptional<z.ZodBoolean>;
1839
- subset: z.ZodOptional<z.ZodBoolean>;
1840
- }, "strip", z.ZodTypeAny, {
1841
- fallback?: boolean | undefined;
1842
- subset?: boolean | undefined;
1843
- data: string | ArrayBuffer | Uint8Array;
1844
- }, {
1845
- fallback?: boolean | undefined;
1846
- subset?: boolean | undefined;
1847
- data: string | ArrayBuffer | Uint8Array;
1848
- }>>>;
1849
- }, "strip", z.ZodTypeAny, {
1850
- font?: Record<string, {
1851
- fallback?: boolean | undefined;
1852
- subset?: boolean | undefined;
1853
- data: string | ArrayBuffer | Uint8Array;
1854
- }> | undefined;
1855
- }, {
1856
- font?: Record<string, {
1857
- fallback?: boolean | undefined;
1858
- subset?: boolean | undefined;
1859
- data: string | ArrayBuffer | Uint8Array;
1860
- }> | undefined;
1861
- }>>;
1862
- }, {
1863
1761
  domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
1864
- options: z.ZodOptional<z.ZodObject<z.extendShape<{
1762
+ options: z.ZodOptional<z.ZodObject<{
1865
1763
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1866
1764
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1867
1765
  fallback: z.ZodOptional<z.ZodBoolean>;
1868
1766
  subset: z.ZodOptional<z.ZodBoolean>;
1869
1767
  }, "strip", z.ZodTypeAny, {
1768
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1870
1769
  fallback?: boolean | undefined;
1871
1770
  subset?: boolean | undefined;
1872
- data: string | ArrayBuffer | Uint8Array;
1873
1771
  }, {
1772
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1874
1773
  fallback?: boolean | undefined;
1875
1774
  subset?: boolean | undefined;
1876
- data: string | ArrayBuffer | Uint8Array;
1877
1775
  }>>>;
1878
- }, {
1879
1776
  lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar"]>>;
1880
- }>, "strip", z.ZodTypeAny, {
1777
+ }, "strip", z.ZodTypeAny, {
1881
1778
  font?: Record<string, {
1779
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1882
1780
  fallback?: boolean | undefined;
1883
1781
  subset?: boolean | undefined;
1884
- data: string | ArrayBuffer | Uint8Array;
1885
1782
  }> | undefined;
1886
1783
  lang?: "en" | "ja" | "ar" | undefined;
1887
1784
  }, {
1888
1785
  font?: Record<string, {
1786
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1889
1787
  fallback?: boolean | undefined;
1890
1788
  subset?: boolean | undefined;
1891
- data: string | ArrayBuffer | Uint8Array;
1892
1789
  }> | undefined;
1893
1790
  lang?: "en" | "ja" | "ar" | undefined;
1894
1791
  }>>;
1895
- }>, "strip", z.ZodTypeAny, {
1896
- options?: {
1897
- font?: Record<string, {
1898
- fallback?: boolean | undefined;
1899
- subset?: boolean | undefined;
1900
- data: string | ArrayBuffer | Uint8Array;
1901
- }> | undefined;
1902
- lang?: "en" | "ja" | "ar" | undefined;
1903
- } | undefined;
1792
+ }, "strip", z.ZodTypeAny, {
1904
1793
  template: {
1905
- columns?: string[] | undefined;
1906
- sampledata?: Record<string, string>[] | undefined;
1907
1794
  schemas: Record<string, {
1908
- backgroundColor?: string | undefined;
1909
- fontSize?: number | undefined;
1910
- lineHeight?: number | undefined;
1795
+ type: "text";
1796
+ height: number;
1797
+ width: number;
1798
+ position: {
1799
+ x: number;
1800
+ y: number;
1801
+ };
1911
1802
  rotate?: number | undefined;
1912
1803
  alignment?: "center" | "left" | "right" | undefined;
1804
+ fontSize?: number | undefined;
1913
1805
  fontName?: string | undefined;
1914
1806
  fontColor?: string | undefined;
1807
+ backgroundColor?: string | undefined;
1915
1808
  characterSpacing?: number | undefined;
1809
+ lineHeight?: number | undefined;
1916
1810
  dynamicFontSize?: {
1917
1811
  max: number;
1918
1812
  min: number;
1919
1813
  } | undefined;
1920
- type: "text";
1921
- height: number;
1922
- width: number;
1923
- position: {
1924
- x: number;
1925
- y: number;
1926
- };
1927
1814
  } | {
1928
- rotate?: number | undefined;
1929
1815
  type: "image";
1930
1816
  height: number;
1931
1817
  width: number;
@@ -1933,8 +1819,8 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1933
1819
  x: number;
1934
1820
  y: number;
1935
1821
  };
1936
- } | {
1937
1822
  rotate?: number | undefined;
1823
+ } | {
1938
1824
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1939
1825
  height: number;
1940
1826
  width: number;
@@ -1942,44 +1828,44 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1942
1828
  x: number;
1943
1829
  y: number;
1944
1830
  };
1831
+ rotate?: number | undefined;
1945
1832
  }>[];
1946
- basePdf: string | ArrayBuffer | Uint8Array;
1833
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1834
+ sampledata?: Record<string, string>[] | undefined;
1835
+ columns?: string[] | undefined;
1947
1836
  };
1948
1837
  domContainer: HTMLElement;
1949
- }, {
1950
1838
  options?: {
1951
1839
  font?: Record<string, {
1840
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1952
1841
  fallback?: boolean | undefined;
1953
1842
  subset?: boolean | undefined;
1954
- data: string | ArrayBuffer | Uint8Array;
1955
1843
  }> | undefined;
1956
1844
  lang?: "en" | "ja" | "ar" | undefined;
1957
1845
  } | undefined;
1846
+ }, {
1958
1847
  template: {
1959
- columns?: string[] | undefined;
1960
- sampledata?: Record<string, string>[] | undefined;
1961
1848
  schemas: Record<string, {
1962
- backgroundColor?: string | undefined;
1963
- fontSize?: number | undefined;
1964
- lineHeight?: number | undefined;
1849
+ type: "text";
1850
+ height: number;
1851
+ width: number;
1852
+ position: {
1853
+ x: number;
1854
+ y: number;
1855
+ };
1965
1856
  rotate?: number | undefined;
1966
1857
  alignment?: "center" | "left" | "right" | undefined;
1858
+ fontSize?: number | undefined;
1967
1859
  fontName?: string | undefined;
1968
1860
  fontColor?: string | undefined;
1861
+ backgroundColor?: string | undefined;
1969
1862
  characterSpacing?: number | undefined;
1863
+ lineHeight?: number | undefined;
1970
1864
  dynamicFontSize?: {
1971
1865
  max: number;
1972
1866
  min: number;
1973
1867
  } | undefined;
1974
- type: "text";
1975
- height: number;
1976
- width: number;
1977
- position: {
1978
- x: number;
1979
- y: number;
1980
- };
1981
1868
  } | {
1982
- rotate?: number | undefined;
1983
1869
  type: "image";
1984
1870
  height: number;
1985
1871
  width: number;
@@ -1987,8 +1873,8 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1987
1873
  x: number;
1988
1874
  y: number;
1989
1875
  };
1990
- } | {
1991
1876
  rotate?: number | undefined;
1877
+ } | {
1992
1878
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
1993
1879
  height: number;
1994
1880
  width: number;
@@ -1996,15 +1882,27 @@ export declare const UIProps: z.ZodObject<z.extendShape<{
1996
1882
  x: number;
1997
1883
  y: number;
1998
1884
  };
1885
+ rotate?: number | undefined;
1999
1886
  }>[];
2000
- basePdf: string | ArrayBuffer | Uint8Array;
1887
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1888
+ sampledata?: Record<string, string>[] | undefined;
1889
+ columns?: string[] | undefined;
2001
1890
  };
2002
1891
  domContainer: HTMLElement;
1892
+ options?: {
1893
+ font?: Record<string, {
1894
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1895
+ fallback?: boolean | undefined;
1896
+ subset?: boolean | undefined;
1897
+ }> | undefined;
1898
+ lang?: "en" | "ja" | "ar" | undefined;
1899
+ } | undefined;
2003
1900
  }>;
2004
- export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
1901
+ export declare const PreviewProps: z.ZodObject<{
2005
1902
  template: z.ZodObject<{
2006
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.extendShape<{
2007
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
1903
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1904
+ height: z.ZodNumber;
1905
+ width: z.ZodNumber;
2008
1906
  position: z.ZodObject<{
2009
1907
  x: z.ZodNumber;
2010
1908
  y: z.ZodNumber;
@@ -2015,10 +1913,7 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2015
1913
  x: number;
2016
1914
  y: number;
2017
1915
  }>;
2018
- width: z.ZodNumber;
2019
- height: z.ZodNumber;
2020
1916
  rotate: z.ZodOptional<z.ZodNumber>;
2021
- }, {
2022
1917
  type: z.ZodLiteral<"text">;
2023
1918
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2024
1919
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -2037,19 +1932,27 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2037
1932
  max: number;
2038
1933
  min: number;
2039
1934
  }>>;
2040
- }>, "strip", z.ZodTypeAny, {
2041
- backgroundColor?: string | undefined;
2042
- fontSize?: number | undefined;
2043
- lineHeight?: number | undefined;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ type: "text";
1937
+ height: number;
1938
+ width: number;
1939
+ position: {
1940
+ x: number;
1941
+ y: number;
1942
+ };
2044
1943
  rotate?: number | undefined;
2045
1944
  alignment?: "center" | "left" | "right" | undefined;
1945
+ fontSize?: number | undefined;
2046
1946
  fontName?: string | undefined;
2047
1947
  fontColor?: string | undefined;
1948
+ backgroundColor?: string | undefined;
2048
1949
  characterSpacing?: number | undefined;
1950
+ lineHeight?: number | undefined;
2049
1951
  dynamicFontSize?: {
2050
1952
  max: number;
2051
1953
  min: number;
2052
1954
  } | undefined;
1955
+ }, {
2053
1956
  type: "text";
2054
1957
  height: number;
2055
1958
  width: number;
@@ -2057,28 +1960,21 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2057
1960
  x: number;
2058
1961
  y: number;
2059
1962
  };
2060
- }, {
2061
- backgroundColor?: string | undefined;
2062
- fontSize?: number | undefined;
2063
- lineHeight?: number | undefined;
2064
1963
  rotate?: number | undefined;
2065
1964
  alignment?: "center" | "left" | "right" | undefined;
1965
+ fontSize?: number | undefined;
2066
1966
  fontName?: string | undefined;
2067
1967
  fontColor?: string | undefined;
1968
+ backgroundColor?: string | undefined;
2068
1969
  characterSpacing?: number | undefined;
1970
+ lineHeight?: number | undefined;
2069
1971
  dynamicFontSize?: {
2070
1972
  max: number;
2071
1973
  min: number;
2072
1974
  } | undefined;
2073
- type: "text";
2074
- height: number;
2075
- width: number;
2076
- position: {
2077
- x: number;
2078
- y: number;
2079
- };
2080
- }>, z.ZodObject<z.extendShape<{
2081
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
1975
+ }>, z.ZodObject<{
1976
+ height: z.ZodNumber;
1977
+ width: z.ZodNumber;
2082
1978
  position: z.ZodObject<{
2083
1979
  x: z.ZodNumber;
2084
1980
  y: z.ZodNumber;
@@ -2089,13 +1985,9 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2089
1985
  x: number;
2090
1986
  y: number;
2091
1987
  }>;
2092
- width: z.ZodNumber;
2093
- height: z.ZodNumber;
2094
1988
  rotate: z.ZodOptional<z.ZodNumber>;
2095
- }, {
2096
1989
  type: z.ZodLiteral<"image">;
2097
- }>, "strip", z.ZodTypeAny, {
2098
- rotate?: number | undefined;
1990
+ }, "strip", z.ZodTypeAny, {
2099
1991
  type: "image";
2100
1992
  height: number;
2101
1993
  width: number;
@@ -2103,8 +1995,8 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2103
1995
  x: number;
2104
1996
  y: number;
2105
1997
  };
2106
- }, {
2107
1998
  rotate?: number | undefined;
1999
+ }, {
2108
2000
  type: "image";
2109
2001
  height: number;
2110
2002
  width: number;
@@ -2112,8 +2004,10 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2112
2004
  x: number;
2113
2005
  y: number;
2114
2006
  };
2115
- }>, z.ZodObject<z.extendShape<{
2116
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
2007
+ rotate?: number | undefined;
2008
+ }>, z.ZodObject<{
2009
+ height: z.ZodNumber;
2010
+ width: z.ZodNumber;
2117
2011
  position: z.ZodObject<{
2118
2012
  x: z.ZodNumber;
2119
2013
  y: z.ZodNumber;
@@ -2124,13 +2018,9 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2124
2018
  x: number;
2125
2019
  y: number;
2126
2020
  }>;
2127
- width: z.ZodNumber;
2128
- height: z.ZodNumber;
2129
2021
  rotate: z.ZodOptional<z.ZodNumber>;
2130
- }, {
2131
2022
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
2132
- }>, "strip", z.ZodTypeAny, {
2133
- rotate?: number | undefined;
2023
+ }, "strip", z.ZodTypeAny, {
2134
2024
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2135
2025
  height: number;
2136
2026
  width: number;
@@ -2138,8 +2028,8 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2138
2028
  x: number;
2139
2029
  y: number;
2140
2030
  };
2141
- }, {
2142
2031
  rotate?: number | undefined;
2032
+ }, {
2143
2033
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2144
2034
  height: number;
2145
2035
  width: number;
@@ -2147,78 +2037,76 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2147
2037
  x: number;
2148
2038
  y: number;
2149
2039
  };
2040
+ rotate?: number | undefined;
2150
2041
  }>]>>, "many">;
2151
2042
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
2152
2043
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
2153
2044
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2154
2045
  }, "strip", z.ZodTypeAny, {
2155
- columns?: string[] | undefined;
2156
- sampledata?: Record<string, string>[] | undefined;
2157
2046
  schemas: Record<string, {
2158
- backgroundColor?: string | undefined;
2159
- fontSize?: number | undefined;
2160
- lineHeight?: number | undefined;
2047
+ type: "text";
2048
+ height: number;
2049
+ width: number;
2050
+ position: {
2051
+ x: number;
2052
+ y: number;
2053
+ };
2161
2054
  rotate?: number | undefined;
2162
2055
  alignment?: "center" | "left" | "right" | undefined;
2056
+ fontSize?: number | undefined;
2163
2057
  fontName?: string | undefined;
2164
2058
  fontColor?: string | undefined;
2059
+ backgroundColor?: string | undefined;
2165
2060
  characterSpacing?: number | undefined;
2061
+ lineHeight?: number | undefined;
2166
2062
  dynamicFontSize?: {
2167
2063
  max: number;
2168
2064
  min: number;
2169
2065
  } | undefined;
2170
- type: "text";
2066
+ } | {
2067
+ type: "image";
2171
2068
  height: number;
2172
2069
  width: number;
2173
2070
  position: {
2174
2071
  x: number;
2175
2072
  y: number;
2176
2073
  };
2177
- } | {
2178
2074
  rotate?: number | undefined;
2179
- type: "image";
2075
+ } | {
2076
+ type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2180
2077
  height: number;
2181
2078
  width: number;
2182
2079
  position: {
2183
2080
  x: number;
2184
2081
  y: number;
2185
2082
  };
2186
- } | {
2187
2083
  rotate?: number | undefined;
2188
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2084
+ }>[];
2085
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2086
+ sampledata?: Record<string, string>[] | undefined;
2087
+ columns?: string[] | undefined;
2088
+ }, {
2089
+ schemas: Record<string, {
2090
+ type: "text";
2189
2091
  height: number;
2190
2092
  width: number;
2191
2093
  position: {
2192
2094
  x: number;
2193
2095
  y: number;
2194
2096
  };
2195
- }>[];
2196
- basePdf: string | ArrayBuffer | Uint8Array;
2197
- }, {
2198
- columns?: string[] | undefined;
2199
- sampledata?: Record<string, string>[] | undefined;
2200
- schemas: Record<string, {
2201
- backgroundColor?: string | undefined;
2202
- fontSize?: number | undefined;
2203
- lineHeight?: number | undefined;
2204
2097
  rotate?: number | undefined;
2205
2098
  alignment?: "center" | "left" | "right" | undefined;
2099
+ fontSize?: number | undefined;
2206
2100
  fontName?: string | undefined;
2207
2101
  fontColor?: string | undefined;
2102
+ backgroundColor?: string | undefined;
2208
2103
  characterSpacing?: number | undefined;
2104
+ lineHeight?: number | undefined;
2209
2105
  dynamicFontSize?: {
2210
2106
  max: number;
2211
2107
  min: number;
2212
2108
  } | undefined;
2213
- type: "text";
2214
- height: number;
2215
- width: number;
2216
- position: {
2217
- x: number;
2218
- y: number;
2219
- };
2220
2109
  } | {
2221
- rotate?: number | undefined;
2222
2110
  type: "image";
2223
2111
  height: number;
2224
2112
  width: number;
@@ -2226,8 +2114,8 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2226
2114
  x: number;
2227
2115
  y: number;
2228
2116
  };
2229
- } | {
2230
2117
  rotate?: number | undefined;
2118
+ } | {
2231
2119
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2232
2120
  height: number;
2233
2121
  width: number;
@@ -2235,8 +2123,11 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2235
2123
  x: number;
2236
2124
  y: number;
2237
2125
  };
2126
+ rotate?: number | undefined;
2238
2127
  }>[];
2239
- basePdf: string | ArrayBuffer | Uint8Array;
2128
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2129
+ sampledata?: Record<string, string>[] | undefined;
2130
+ columns?: string[] | undefined;
2240
2131
  }>;
2241
2132
  options: z.ZodOptional<z.ZodObject<{
2242
2133
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -2244,96 +2135,55 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2244
2135
  fallback: z.ZodOptional<z.ZodBoolean>;
2245
2136
  subset: z.ZodOptional<z.ZodBoolean>;
2246
2137
  }, "strip", z.ZodTypeAny, {
2138
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2247
2139
  fallback?: boolean | undefined;
2248
2140
  subset?: boolean | undefined;
2249
- data: string | ArrayBuffer | Uint8Array;
2250
- }, {
2251
- fallback?: boolean | undefined;
2252
- subset?: boolean | undefined;
2253
- data: string | ArrayBuffer | Uint8Array;
2254
- }>>>;
2255
- }, "strip", z.ZodTypeAny, {
2256
- font?: Record<string, {
2257
- fallback?: boolean | undefined;
2258
- subset?: boolean | undefined;
2259
- data: string | ArrayBuffer | Uint8Array;
2260
- }> | undefined;
2261
- }, {
2262
- font?: Record<string, {
2263
- fallback?: boolean | undefined;
2264
- subset?: boolean | undefined;
2265
- data: string | ArrayBuffer | Uint8Array;
2266
- }> | undefined;
2267
- }>>;
2268
- }, {
2269
- domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
2270
- options: z.ZodOptional<z.ZodObject<z.extendShape<{
2271
- font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2272
- data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
2273
- fallback: z.ZodOptional<z.ZodBoolean>;
2274
- subset: z.ZodOptional<z.ZodBoolean>;
2275
- }, "strip", z.ZodTypeAny, {
2276
- fallback?: boolean | undefined;
2277
- subset?: boolean | undefined;
2278
- data: string | ArrayBuffer | Uint8Array;
2279
2141
  }, {
2142
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2280
2143
  fallback?: boolean | undefined;
2281
2144
  subset?: boolean | undefined;
2282
- data: string | ArrayBuffer | Uint8Array;
2283
2145
  }>>>;
2284
- }, {
2285
2146
  lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar"]>>;
2286
- }>, "strip", z.ZodTypeAny, {
2147
+ }, "strip", z.ZodTypeAny, {
2287
2148
  font?: Record<string, {
2149
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2288
2150
  fallback?: boolean | undefined;
2289
2151
  subset?: boolean | undefined;
2290
- data: string | ArrayBuffer | Uint8Array;
2291
2152
  }> | undefined;
2292
2153
  lang?: "en" | "ja" | "ar" | undefined;
2293
2154
  }, {
2294
2155
  font?: Record<string, {
2156
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2295
2157
  fallback?: boolean | undefined;
2296
2158
  subset?: boolean | undefined;
2297
- data: string | ArrayBuffer | Uint8Array;
2298
2159
  }> | undefined;
2299
2160
  lang?: "en" | "ja" | "ar" | undefined;
2300
2161
  }>>;
2301
- }>, {
2162
+ domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
2302
2163
  inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
2303
- }>, "strict", z.ZodTypeAny, {
2304
- options?: {
2305
- font?: Record<string, {
2306
- fallback?: boolean | undefined;
2307
- subset?: boolean | undefined;
2308
- data: string | ArrayBuffer | Uint8Array;
2309
- }> | undefined;
2310
- lang?: "en" | "ja" | "ar" | undefined;
2311
- } | undefined;
2164
+ }, "strict", z.ZodTypeAny, {
2312
2165
  template: {
2313
- columns?: string[] | undefined;
2314
- sampledata?: Record<string, string>[] | undefined;
2315
2166
  schemas: Record<string, {
2316
- backgroundColor?: string | undefined;
2317
- fontSize?: number | undefined;
2318
- lineHeight?: number | undefined;
2167
+ type: "text";
2168
+ height: number;
2169
+ width: number;
2170
+ position: {
2171
+ x: number;
2172
+ y: number;
2173
+ };
2319
2174
  rotate?: number | undefined;
2320
2175
  alignment?: "center" | "left" | "right" | undefined;
2176
+ fontSize?: number | undefined;
2321
2177
  fontName?: string | undefined;
2322
2178
  fontColor?: string | undefined;
2179
+ backgroundColor?: string | undefined;
2323
2180
  characterSpacing?: number | undefined;
2181
+ lineHeight?: number | undefined;
2324
2182
  dynamicFontSize?: {
2325
2183
  max: number;
2326
2184
  min: number;
2327
2185
  } | undefined;
2328
- type: "text";
2329
- height: number;
2330
- width: number;
2331
- position: {
2332
- x: number;
2333
- y: number;
2334
- };
2335
2186
  } | {
2336
- rotate?: number | undefined;
2337
2187
  type: "image";
2338
2188
  height: number;
2339
2189
  width: number;
@@ -2341,8 +2191,8 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2341
2191
  x: number;
2342
2192
  y: number;
2343
2193
  };
2344
- } | {
2345
2194
  rotate?: number | undefined;
2195
+ } | {
2346
2196
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2347
2197
  height: number;
2348
2198
  width: number;
@@ -2350,45 +2200,45 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2350
2200
  x: number;
2351
2201
  y: number;
2352
2202
  };
2203
+ rotate?: number | undefined;
2353
2204
  }>[];
2354
- basePdf: string | ArrayBuffer | Uint8Array;
2205
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2206
+ sampledata?: Record<string, string>[] | undefined;
2207
+ columns?: string[] | undefined;
2355
2208
  };
2356
2209
  inputs: Record<string, string>[];
2357
2210
  domContainer: HTMLElement;
2358
- }, {
2359
2211
  options?: {
2360
2212
  font?: Record<string, {
2213
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2361
2214
  fallback?: boolean | undefined;
2362
2215
  subset?: boolean | undefined;
2363
- data: string | ArrayBuffer | Uint8Array;
2364
2216
  }> | undefined;
2365
2217
  lang?: "en" | "ja" | "ar" | undefined;
2366
2218
  } | undefined;
2219
+ }, {
2367
2220
  template: {
2368
- columns?: string[] | undefined;
2369
- sampledata?: Record<string, string>[] | undefined;
2370
2221
  schemas: Record<string, {
2371
- backgroundColor?: string | undefined;
2372
- fontSize?: number | undefined;
2373
- lineHeight?: number | undefined;
2222
+ type: "text";
2223
+ height: number;
2224
+ width: number;
2225
+ position: {
2226
+ x: number;
2227
+ y: number;
2228
+ };
2374
2229
  rotate?: number | undefined;
2375
2230
  alignment?: "center" | "left" | "right" | undefined;
2231
+ fontSize?: number | undefined;
2376
2232
  fontName?: string | undefined;
2377
2233
  fontColor?: string | undefined;
2234
+ backgroundColor?: string | undefined;
2378
2235
  characterSpacing?: number | undefined;
2236
+ lineHeight?: number | undefined;
2379
2237
  dynamicFontSize?: {
2380
2238
  max: number;
2381
2239
  min: number;
2382
2240
  } | undefined;
2383
- type: "text";
2384
- height: number;
2385
- width: number;
2386
- position: {
2387
- x: number;
2388
- y: number;
2389
- };
2390
2241
  } | {
2391
- rotate?: number | undefined;
2392
2242
  type: "image";
2393
2243
  height: number;
2394
2244
  width: number;
@@ -2396,8 +2246,8 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2396
2246
  x: number;
2397
2247
  y: number;
2398
2248
  };
2399
- } | {
2400
2249
  rotate?: number | undefined;
2250
+ } | {
2401
2251
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2402
2252
  height: number;
2403
2253
  width: number;
@@ -2405,16 +2255,28 @@ export declare const PreviewProps: z.ZodObject<z.extendShape<z.extendShape<{
2405
2255
  x: number;
2406
2256
  y: number;
2407
2257
  };
2258
+ rotate?: number | undefined;
2408
2259
  }>[];
2409
- basePdf: string | ArrayBuffer | Uint8Array;
2260
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2261
+ sampledata?: Record<string, string>[] | undefined;
2262
+ columns?: string[] | undefined;
2410
2263
  };
2411
2264
  inputs: Record<string, string>[];
2412
2265
  domContainer: HTMLElement;
2266
+ options?: {
2267
+ font?: Record<string, {
2268
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2269
+ fallback?: boolean | undefined;
2270
+ subset?: boolean | undefined;
2271
+ }> | undefined;
2272
+ lang?: "en" | "ja" | "ar" | undefined;
2273
+ } | undefined;
2413
2274
  }>;
2414
- export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendShape<z.extendShape<{
2275
+ export declare const PreviewReactProps: z.ZodObject<{
2415
2276
  template: z.ZodObject<{
2416
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.extendShape<{
2417
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
2277
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2278
+ height: z.ZodNumber;
2279
+ width: z.ZodNumber;
2418
2280
  position: z.ZodObject<{
2419
2281
  x: z.ZodNumber;
2420
2282
  y: z.ZodNumber;
@@ -2425,10 +2287,7 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2425
2287
  x: number;
2426
2288
  y: number;
2427
2289
  }>;
2428
- width: z.ZodNumber;
2429
- height: z.ZodNumber;
2430
2290
  rotate: z.ZodOptional<z.ZodNumber>;
2431
- }, {
2432
2291
  type: z.ZodLiteral<"text">;
2433
2292
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2434
2293
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -2447,19 +2306,27 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2447
2306
  max: number;
2448
2307
  min: number;
2449
2308
  }>>;
2450
- }>, "strip", z.ZodTypeAny, {
2451
- backgroundColor?: string | undefined;
2452
- fontSize?: number | undefined;
2453
- lineHeight?: number | undefined;
2309
+ }, "strip", z.ZodTypeAny, {
2310
+ type: "text";
2311
+ height: number;
2312
+ width: number;
2313
+ position: {
2314
+ x: number;
2315
+ y: number;
2316
+ };
2454
2317
  rotate?: number | undefined;
2455
2318
  alignment?: "center" | "left" | "right" | undefined;
2319
+ fontSize?: number | undefined;
2456
2320
  fontName?: string | undefined;
2457
2321
  fontColor?: string | undefined;
2322
+ backgroundColor?: string | undefined;
2458
2323
  characterSpacing?: number | undefined;
2324
+ lineHeight?: number | undefined;
2459
2325
  dynamicFontSize?: {
2460
2326
  max: number;
2461
2327
  min: number;
2462
2328
  } | undefined;
2329
+ }, {
2463
2330
  type: "text";
2464
2331
  height: number;
2465
2332
  width: number;
@@ -2467,28 +2334,21 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2467
2334
  x: number;
2468
2335
  y: number;
2469
2336
  };
2470
- }, {
2471
- backgroundColor?: string | undefined;
2472
- fontSize?: number | undefined;
2473
- lineHeight?: number | undefined;
2474
2337
  rotate?: number | undefined;
2475
2338
  alignment?: "center" | "left" | "right" | undefined;
2339
+ fontSize?: number | undefined;
2476
2340
  fontName?: string | undefined;
2477
2341
  fontColor?: string | undefined;
2342
+ backgroundColor?: string | undefined;
2478
2343
  characterSpacing?: number | undefined;
2344
+ lineHeight?: number | undefined;
2479
2345
  dynamicFontSize?: {
2480
2346
  max: number;
2481
2347
  min: number;
2482
2348
  } | undefined;
2483
- type: "text";
2484
- height: number;
2485
- width: number;
2486
- position: {
2487
- x: number;
2488
- y: number;
2489
- };
2490
- }>, z.ZodObject<z.extendShape<{
2491
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
2349
+ }>, z.ZodObject<{
2350
+ height: z.ZodNumber;
2351
+ width: z.ZodNumber;
2492
2352
  position: z.ZodObject<{
2493
2353
  x: z.ZodNumber;
2494
2354
  y: z.ZodNumber;
@@ -2499,13 +2359,9 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2499
2359
  x: number;
2500
2360
  y: number;
2501
2361
  }>;
2502
- width: z.ZodNumber;
2503
- height: z.ZodNumber;
2504
2362
  rotate: z.ZodOptional<z.ZodNumber>;
2505
- }, {
2506
2363
  type: z.ZodLiteral<"image">;
2507
- }>, "strip", z.ZodTypeAny, {
2508
- rotate?: number | undefined;
2364
+ }, "strip", z.ZodTypeAny, {
2509
2365
  type: "image";
2510
2366
  height: number;
2511
2367
  width: number;
@@ -2513,8 +2369,8 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2513
2369
  x: number;
2514
2370
  y: number;
2515
2371
  };
2516
- }, {
2517
2372
  rotate?: number | undefined;
2373
+ }, {
2518
2374
  type: "image";
2519
2375
  height: number;
2520
2376
  width: number;
@@ -2522,8 +2378,10 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2522
2378
  x: number;
2523
2379
  y: number;
2524
2380
  };
2525
- }>, z.ZodObject<z.extendShape<{
2526
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
2381
+ rotate?: number | undefined;
2382
+ }>, z.ZodObject<{
2383
+ height: z.ZodNumber;
2384
+ width: z.ZodNumber;
2527
2385
  position: z.ZodObject<{
2528
2386
  x: z.ZodNumber;
2529
2387
  y: z.ZodNumber;
@@ -2534,13 +2392,9 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2534
2392
  x: number;
2535
2393
  y: number;
2536
2394
  }>;
2537
- width: z.ZodNumber;
2538
- height: z.ZodNumber;
2539
2395
  rotate: z.ZodOptional<z.ZodNumber>;
2540
- }, {
2541
2396
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
2542
- }>, "strip", z.ZodTypeAny, {
2543
- rotate?: number | undefined;
2397
+ }, "strip", z.ZodTypeAny, {
2544
2398
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2545
2399
  height: number;
2546
2400
  width: number;
@@ -2548,8 +2402,8 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2548
2402
  x: number;
2549
2403
  y: number;
2550
2404
  };
2551
- }, {
2552
2405
  rotate?: number | undefined;
2406
+ }, {
2553
2407
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2554
2408
  height: number;
2555
2409
  width: number;
@@ -2557,78 +2411,76 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2557
2411
  x: number;
2558
2412
  y: number;
2559
2413
  };
2414
+ rotate?: number | undefined;
2560
2415
  }>]>>, "many">;
2561
2416
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
2562
2417
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
2563
2418
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2564
2419
  }, "strip", z.ZodTypeAny, {
2565
- columns?: string[] | undefined;
2566
- sampledata?: Record<string, string>[] | undefined;
2567
2420
  schemas: Record<string, {
2568
- backgroundColor?: string | undefined;
2569
- fontSize?: number | undefined;
2570
- lineHeight?: number | undefined;
2421
+ type: "text";
2422
+ height: number;
2423
+ width: number;
2424
+ position: {
2425
+ x: number;
2426
+ y: number;
2427
+ };
2571
2428
  rotate?: number | undefined;
2572
2429
  alignment?: "center" | "left" | "right" | undefined;
2430
+ fontSize?: number | undefined;
2573
2431
  fontName?: string | undefined;
2574
2432
  fontColor?: string | undefined;
2433
+ backgroundColor?: string | undefined;
2575
2434
  characterSpacing?: number | undefined;
2435
+ lineHeight?: number | undefined;
2576
2436
  dynamicFontSize?: {
2577
2437
  max: number;
2578
2438
  min: number;
2579
2439
  } | undefined;
2580
- type: "text";
2440
+ } | {
2441
+ type: "image";
2581
2442
  height: number;
2582
2443
  width: number;
2583
2444
  position: {
2584
2445
  x: number;
2585
2446
  y: number;
2586
2447
  };
2587
- } | {
2588
2448
  rotate?: number | undefined;
2589
- type: "image";
2449
+ } | {
2450
+ type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2590
2451
  height: number;
2591
2452
  width: number;
2592
2453
  position: {
2593
2454
  x: number;
2594
2455
  y: number;
2595
2456
  };
2596
- } | {
2597
2457
  rotate?: number | undefined;
2598
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2458
+ }>[];
2459
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2460
+ sampledata?: Record<string, string>[] | undefined;
2461
+ columns?: string[] | undefined;
2462
+ }, {
2463
+ schemas: Record<string, {
2464
+ type: "text";
2599
2465
  height: number;
2600
2466
  width: number;
2601
2467
  position: {
2602
2468
  x: number;
2603
2469
  y: number;
2604
2470
  };
2605
- }>[];
2606
- basePdf: string | ArrayBuffer | Uint8Array;
2607
- }, {
2608
- columns?: string[] | undefined;
2609
- sampledata?: Record<string, string>[] | undefined;
2610
- schemas: Record<string, {
2611
- backgroundColor?: string | undefined;
2612
- fontSize?: number | undefined;
2613
- lineHeight?: number | undefined;
2614
2471
  rotate?: number | undefined;
2615
2472
  alignment?: "center" | "left" | "right" | undefined;
2473
+ fontSize?: number | undefined;
2616
2474
  fontName?: string | undefined;
2617
2475
  fontColor?: string | undefined;
2476
+ backgroundColor?: string | undefined;
2618
2477
  characterSpacing?: number | undefined;
2478
+ lineHeight?: number | undefined;
2619
2479
  dynamicFontSize?: {
2620
2480
  max: number;
2621
2481
  min: number;
2622
2482
  } | undefined;
2623
- type: "text";
2624
- height: number;
2625
- width: number;
2626
- position: {
2627
- x: number;
2628
- y: number;
2629
- };
2630
2483
  } | {
2631
- rotate?: number | undefined;
2632
2484
  type: "image";
2633
2485
  height: number;
2634
2486
  width: number;
@@ -2636,8 +2488,8 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2636
2488
  x: number;
2637
2489
  y: number;
2638
2490
  };
2639
- } | {
2640
2491
  rotate?: number | undefined;
2492
+ } | {
2641
2493
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2642
2494
  height: number;
2643
2495
  width: number;
@@ -2645,8 +2497,11 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2645
2497
  x: number;
2646
2498
  y: number;
2647
2499
  };
2500
+ rotate?: number | undefined;
2648
2501
  }>[];
2649
- basePdf: string | ArrayBuffer | Uint8Array;
2502
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2503
+ sampledata?: Record<string, string>[] | undefined;
2504
+ columns?: string[] | undefined;
2650
2505
  }>;
2651
2506
  options: z.ZodOptional<z.ZodObject<{
2652
2507
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -2654,63 +2509,31 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2654
2509
  fallback: z.ZodOptional<z.ZodBoolean>;
2655
2510
  subset: z.ZodOptional<z.ZodBoolean>;
2656
2511
  }, "strip", z.ZodTypeAny, {
2512
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2657
2513
  fallback?: boolean | undefined;
2658
2514
  subset?: boolean | undefined;
2659
- data: string | ArrayBuffer | Uint8Array;
2660
- }, {
2661
- fallback?: boolean | undefined;
2662
- subset?: boolean | undefined;
2663
- data: string | ArrayBuffer | Uint8Array;
2664
- }>>>;
2665
- }, "strip", z.ZodTypeAny, {
2666
- font?: Record<string, {
2667
- fallback?: boolean | undefined;
2668
- subset?: boolean | undefined;
2669
- data: string | ArrayBuffer | Uint8Array;
2670
- }> | undefined;
2671
- }, {
2672
- font?: Record<string, {
2673
- fallback?: boolean | undefined;
2674
- subset?: boolean | undefined;
2675
- data: string | ArrayBuffer | Uint8Array;
2676
- }> | undefined;
2677
- }>>;
2678
- }, {
2679
- domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
2680
- options: z.ZodOptional<z.ZodObject<z.extendShape<{
2681
- font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2682
- data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
2683
- fallback: z.ZodOptional<z.ZodBoolean>;
2684
- subset: z.ZodOptional<z.ZodBoolean>;
2685
- }, "strip", z.ZodTypeAny, {
2686
- fallback?: boolean | undefined;
2687
- subset?: boolean | undefined;
2688
- data: string | ArrayBuffer | Uint8Array;
2689
2515
  }, {
2516
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2690
2517
  fallback?: boolean | undefined;
2691
2518
  subset?: boolean | undefined;
2692
- data: string | ArrayBuffer | Uint8Array;
2693
2519
  }>>>;
2694
- }, {
2695
2520
  lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar"]>>;
2696
- }>, "strip", z.ZodTypeAny, {
2521
+ }, "strip", z.ZodTypeAny, {
2697
2522
  font?: Record<string, {
2523
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2698
2524
  fallback?: boolean | undefined;
2699
2525
  subset?: boolean | undefined;
2700
- data: string | ArrayBuffer | Uint8Array;
2701
2526
  }> | undefined;
2702
2527
  lang?: "en" | "ja" | "ar" | undefined;
2703
2528
  }, {
2704
2529
  font?: Record<string, {
2530
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2705
2531
  fallback?: boolean | undefined;
2706
2532
  subset?: boolean | undefined;
2707
- data: string | ArrayBuffer | Uint8Array;
2708
2533
  }> | undefined;
2709
2534
  lang?: "en" | "ja" | "ar" | undefined;
2710
2535
  }>>;
2711
- }>, {
2712
2536
  inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
2713
- }>, "domContainer">, {
2714
2537
  onChangeInput: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
2715
2538
  index: z.ZodNumber;
2716
2539
  value: z.ZodString;
@@ -2734,45 +2557,29 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2734
2557
  height: number;
2735
2558
  width: number;
2736
2559
  }>;
2737
- }>, "strict", z.ZodTypeAny, {
2738
- options?: {
2739
- font?: Record<string, {
2740
- fallback?: boolean | undefined;
2741
- subset?: boolean | undefined;
2742
- data: string | ArrayBuffer | Uint8Array;
2743
- }> | undefined;
2744
- lang?: "en" | "ja" | "ar" | undefined;
2745
- } | undefined;
2746
- onChangeInput?: ((args_0: {
2747
- index: number;
2748
- key: string;
2749
- value: string;
2750
- }, ...args_1: unknown[]) => void) | undefined;
2560
+ }, "strict", z.ZodTypeAny, {
2751
2561
  template: {
2752
- columns?: string[] | undefined;
2753
- sampledata?: Record<string, string>[] | undefined;
2754
2562
  schemas: Record<string, {
2755
- backgroundColor?: string | undefined;
2756
- fontSize?: number | undefined;
2757
- lineHeight?: number | undefined;
2563
+ type: "text";
2564
+ height: number;
2565
+ width: number;
2566
+ position: {
2567
+ x: number;
2568
+ y: number;
2569
+ };
2758
2570
  rotate?: number | undefined;
2759
2571
  alignment?: "center" | "left" | "right" | undefined;
2572
+ fontSize?: number | undefined;
2760
2573
  fontName?: string | undefined;
2761
2574
  fontColor?: string | undefined;
2575
+ backgroundColor?: string | undefined;
2762
2576
  characterSpacing?: number | undefined;
2577
+ lineHeight?: number | undefined;
2763
2578
  dynamicFontSize?: {
2764
2579
  max: number;
2765
2580
  min: number;
2766
2581
  } | undefined;
2767
- type: "text";
2768
- height: number;
2769
- width: number;
2770
- position: {
2771
- x: number;
2772
- y: number;
2773
- };
2774
2582
  } | {
2775
- rotate?: number | undefined;
2776
2583
  type: "image";
2777
2584
  height: number;
2778
2585
  width: number;
@@ -2780,8 +2587,8 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2780
2587
  x: number;
2781
2588
  y: number;
2782
2589
  };
2783
- } | {
2784
2590
  rotate?: number | undefined;
2591
+ } | {
2785
2592
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2786
2593
  height: number;
2787
2594
  width: number;
@@ -2789,20 +2596,22 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2789
2596
  x: number;
2790
2597
  y: number;
2791
2598
  };
2599
+ rotate?: number | undefined;
2792
2600
  }>[];
2793
- basePdf: string | ArrayBuffer | Uint8Array;
2601
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2602
+ sampledata?: Record<string, string>[] | undefined;
2603
+ columns?: string[] | undefined;
2794
2604
  };
2795
2605
  size: {
2796
2606
  height: number;
2797
2607
  width: number;
2798
2608
  };
2799
2609
  inputs: Record<string, string>[];
2800
- }, {
2801
2610
  options?: {
2802
2611
  font?: Record<string, {
2612
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2803
2613
  fallback?: boolean | undefined;
2804
2614
  subset?: boolean | undefined;
2805
- data: string | ArrayBuffer | Uint8Array;
2806
2615
  }> | undefined;
2807
2616
  lang?: "en" | "ja" | "ar" | undefined;
2808
2617
  } | undefined;
@@ -2811,31 +2620,29 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2811
2620
  key: string;
2812
2621
  value: string;
2813
2622
  }, ...args_1: unknown[]) => void) | undefined;
2623
+ }, {
2814
2624
  template: {
2815
- columns?: string[] | undefined;
2816
- sampledata?: Record<string, string>[] | undefined;
2817
2625
  schemas: Record<string, {
2818
- backgroundColor?: string | undefined;
2819
- fontSize?: number | undefined;
2820
- lineHeight?: number | undefined;
2626
+ type: "text";
2627
+ height: number;
2628
+ width: number;
2629
+ position: {
2630
+ x: number;
2631
+ y: number;
2632
+ };
2821
2633
  rotate?: number | undefined;
2822
2634
  alignment?: "center" | "left" | "right" | undefined;
2635
+ fontSize?: number | undefined;
2823
2636
  fontName?: string | undefined;
2824
2637
  fontColor?: string | undefined;
2638
+ backgroundColor?: string | undefined;
2825
2639
  characterSpacing?: number | undefined;
2640
+ lineHeight?: number | undefined;
2826
2641
  dynamicFontSize?: {
2827
2642
  max: number;
2828
2643
  min: number;
2829
2644
  } | undefined;
2830
- type: "text";
2831
- height: number;
2832
- width: number;
2833
- position: {
2834
- x: number;
2835
- y: number;
2836
- };
2837
2645
  } | {
2838
- rotate?: number | undefined;
2839
2646
  type: "image";
2840
2647
  height: number;
2841
2648
  width: number;
@@ -2843,8 +2650,8 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2843
2650
  x: number;
2844
2651
  y: number;
2845
2652
  };
2846
- } | {
2847
2653
  rotate?: number | undefined;
2654
+ } | {
2848
2655
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2849
2656
  height: number;
2850
2657
  width: number;
@@ -2852,19 +2659,36 @@ export declare const PreviewReactProps: z.ZodObject<z.extendShape<Omit<z.extendS
2852
2659
  x: number;
2853
2660
  y: number;
2854
2661
  };
2662
+ rotate?: number | undefined;
2855
2663
  }>[];
2856
- basePdf: string | ArrayBuffer | Uint8Array;
2664
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2665
+ sampledata?: Record<string, string>[] | undefined;
2666
+ columns?: string[] | undefined;
2857
2667
  };
2858
2668
  size: {
2859
2669
  height: number;
2860
2670
  width: number;
2861
2671
  };
2862
2672
  inputs: Record<string, string>[];
2673
+ options?: {
2674
+ font?: Record<string, {
2675
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2676
+ fallback?: boolean | undefined;
2677
+ subset?: boolean | undefined;
2678
+ }> | undefined;
2679
+ lang?: "en" | "ja" | "ar" | undefined;
2680
+ } | undefined;
2681
+ onChangeInput?: ((args_0: {
2682
+ index: number;
2683
+ key: string;
2684
+ value: string;
2685
+ }, ...args_1: unknown[]) => void) | undefined;
2863
2686
  }>;
2864
- export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
2687
+ export declare const DesignerProps: z.ZodObject<{
2865
2688
  template: z.ZodObject<{
2866
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.extendShape<{
2867
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
2689
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2690
+ height: z.ZodNumber;
2691
+ width: z.ZodNumber;
2868
2692
  position: z.ZodObject<{
2869
2693
  x: z.ZodNumber;
2870
2694
  y: z.ZodNumber;
@@ -2875,10 +2699,7 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
2875
2699
  x: number;
2876
2700
  y: number;
2877
2701
  }>;
2878
- width: z.ZodNumber;
2879
- height: z.ZodNumber;
2880
2702
  rotate: z.ZodOptional<z.ZodNumber>;
2881
- }, {
2882
2703
  type: z.ZodLiteral<"text">;
2883
2704
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2884
2705
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -2897,19 +2718,27 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
2897
2718
  max: number;
2898
2719
  min: number;
2899
2720
  }>>;
2900
- }>, "strip", z.ZodTypeAny, {
2901
- backgroundColor?: string | undefined;
2902
- fontSize?: number | undefined;
2903
- lineHeight?: number | undefined;
2721
+ }, "strip", z.ZodTypeAny, {
2722
+ type: "text";
2723
+ height: number;
2724
+ width: number;
2725
+ position: {
2726
+ x: number;
2727
+ y: number;
2728
+ };
2904
2729
  rotate?: number | undefined;
2905
2730
  alignment?: "center" | "left" | "right" | undefined;
2731
+ fontSize?: number | undefined;
2906
2732
  fontName?: string | undefined;
2907
2733
  fontColor?: string | undefined;
2734
+ backgroundColor?: string | undefined;
2908
2735
  characterSpacing?: number | undefined;
2736
+ lineHeight?: number | undefined;
2909
2737
  dynamicFontSize?: {
2910
2738
  max: number;
2911
2739
  min: number;
2912
2740
  } | undefined;
2741
+ }, {
2913
2742
  type: "text";
2914
2743
  height: number;
2915
2744
  width: number;
@@ -2917,28 +2746,21 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
2917
2746
  x: number;
2918
2747
  y: number;
2919
2748
  };
2920
- }, {
2921
- backgroundColor?: string | undefined;
2922
- fontSize?: number | undefined;
2923
- lineHeight?: number | undefined;
2924
2749
  rotate?: number | undefined;
2925
2750
  alignment?: "center" | "left" | "right" | undefined;
2751
+ fontSize?: number | undefined;
2926
2752
  fontName?: string | undefined;
2927
2753
  fontColor?: string | undefined;
2754
+ backgroundColor?: string | undefined;
2928
2755
  characterSpacing?: number | undefined;
2756
+ lineHeight?: number | undefined;
2929
2757
  dynamicFontSize?: {
2930
2758
  max: number;
2931
2759
  min: number;
2932
2760
  } | undefined;
2933
- type: "text";
2934
- height: number;
2935
- width: number;
2936
- position: {
2937
- x: number;
2938
- y: number;
2939
- };
2940
- }>, z.ZodObject<z.extendShape<{
2941
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
2761
+ }>, z.ZodObject<{
2762
+ height: z.ZodNumber;
2763
+ width: z.ZodNumber;
2942
2764
  position: z.ZodObject<{
2943
2765
  x: z.ZodNumber;
2944
2766
  y: z.ZodNumber;
@@ -2949,13 +2771,9 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
2949
2771
  x: number;
2950
2772
  y: number;
2951
2773
  }>;
2952
- width: z.ZodNumber;
2953
- height: z.ZodNumber;
2954
2774
  rotate: z.ZodOptional<z.ZodNumber>;
2955
- }, {
2956
2775
  type: z.ZodLiteral<"image">;
2957
- }>, "strip", z.ZodTypeAny, {
2958
- rotate?: number | undefined;
2776
+ }, "strip", z.ZodTypeAny, {
2959
2777
  type: "image";
2960
2778
  height: number;
2961
2779
  width: number;
@@ -2963,8 +2781,8 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
2963
2781
  x: number;
2964
2782
  y: number;
2965
2783
  };
2966
- }, {
2967
2784
  rotate?: number | undefined;
2785
+ }, {
2968
2786
  type: "image";
2969
2787
  height: number;
2970
2788
  width: number;
@@ -2972,8 +2790,10 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
2972
2790
  x: number;
2973
2791
  y: number;
2974
2792
  };
2975
- }>, z.ZodObject<z.extendShape<{
2976
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
2793
+ rotate?: number | undefined;
2794
+ }>, z.ZodObject<{
2795
+ height: z.ZodNumber;
2796
+ width: z.ZodNumber;
2977
2797
  position: z.ZodObject<{
2978
2798
  x: z.ZodNumber;
2979
2799
  y: z.ZodNumber;
@@ -2984,13 +2804,9 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
2984
2804
  x: number;
2985
2805
  y: number;
2986
2806
  }>;
2987
- width: z.ZodNumber;
2988
- height: z.ZodNumber;
2989
2807
  rotate: z.ZodOptional<z.ZodNumber>;
2990
- }, {
2991
2808
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
2992
- }>, "strip", z.ZodTypeAny, {
2993
- rotate?: number | undefined;
2809
+ }, "strip", z.ZodTypeAny, {
2994
2810
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2995
2811
  height: number;
2996
2812
  width: number;
@@ -2998,8 +2814,8 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
2998
2814
  x: number;
2999
2815
  y: number;
3000
2816
  };
3001
- }, {
3002
2817
  rotate?: number | undefined;
2818
+ }, {
3003
2819
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3004
2820
  height: number;
3005
2821
  width: number;
@@ -3007,78 +2823,76 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
3007
2823
  x: number;
3008
2824
  y: number;
3009
2825
  };
2826
+ rotate?: number | undefined;
3010
2827
  }>]>>, "many">;
3011
2828
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
3012
2829
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
3013
2830
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3014
2831
  }, "strip", z.ZodTypeAny, {
3015
- columns?: string[] | undefined;
3016
- sampledata?: Record<string, string>[] | undefined;
3017
2832
  schemas: Record<string, {
3018
- backgroundColor?: string | undefined;
3019
- fontSize?: number | undefined;
3020
- lineHeight?: number | undefined;
2833
+ type: "text";
2834
+ height: number;
2835
+ width: number;
2836
+ position: {
2837
+ x: number;
2838
+ y: number;
2839
+ };
3021
2840
  rotate?: number | undefined;
3022
2841
  alignment?: "center" | "left" | "right" | undefined;
2842
+ fontSize?: number | undefined;
3023
2843
  fontName?: string | undefined;
3024
2844
  fontColor?: string | undefined;
2845
+ backgroundColor?: string | undefined;
3025
2846
  characterSpacing?: number | undefined;
2847
+ lineHeight?: number | undefined;
3026
2848
  dynamicFontSize?: {
3027
2849
  max: number;
3028
2850
  min: number;
3029
2851
  } | undefined;
3030
- type: "text";
2852
+ } | {
2853
+ type: "image";
3031
2854
  height: number;
3032
2855
  width: number;
3033
2856
  position: {
3034
2857
  x: number;
3035
2858
  y: number;
3036
2859
  };
3037
- } | {
3038
2860
  rotate?: number | undefined;
3039
- type: "image";
2861
+ } | {
2862
+ type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3040
2863
  height: number;
3041
2864
  width: number;
3042
2865
  position: {
3043
2866
  x: number;
3044
2867
  y: number;
3045
2868
  };
3046
- } | {
3047
2869
  rotate?: number | undefined;
3048
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
2870
+ }>[];
2871
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2872
+ sampledata?: Record<string, string>[] | undefined;
2873
+ columns?: string[] | undefined;
2874
+ }, {
2875
+ schemas: Record<string, {
2876
+ type: "text";
3049
2877
  height: number;
3050
2878
  width: number;
3051
2879
  position: {
3052
2880
  x: number;
3053
2881
  y: number;
3054
2882
  };
3055
- }>[];
3056
- basePdf: string | ArrayBuffer | Uint8Array;
3057
- }, {
3058
- columns?: string[] | undefined;
3059
- sampledata?: Record<string, string>[] | undefined;
3060
- schemas: Record<string, {
3061
- backgroundColor?: string | undefined;
3062
- fontSize?: number | undefined;
3063
- lineHeight?: number | undefined;
3064
2883
  rotate?: number | undefined;
3065
2884
  alignment?: "center" | "left" | "right" | undefined;
2885
+ fontSize?: number | undefined;
3066
2886
  fontName?: string | undefined;
3067
2887
  fontColor?: string | undefined;
2888
+ backgroundColor?: string | undefined;
3068
2889
  characterSpacing?: number | undefined;
2890
+ lineHeight?: number | undefined;
3069
2891
  dynamicFontSize?: {
3070
2892
  max: number;
3071
2893
  min: number;
3072
2894
  } | undefined;
3073
- type: "text";
3074
- height: number;
3075
- width: number;
3076
- position: {
3077
- x: number;
3078
- y: number;
3079
- };
3080
2895
  } | {
3081
- rotate?: number | undefined;
3082
2896
  type: "image";
3083
2897
  height: number;
3084
2898
  width: number;
@@ -3086,8 +2900,8 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
3086
2900
  x: number;
3087
2901
  y: number;
3088
2902
  };
3089
- } | {
3090
2903
  rotate?: number | undefined;
2904
+ } | {
3091
2905
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3092
2906
  height: number;
3093
2907
  width: number;
@@ -3095,8 +2909,11 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
3095
2909
  x: number;
3096
2910
  y: number;
3097
2911
  };
2912
+ rotate?: number | undefined;
3098
2913
  }>[];
3099
- basePdf: string | ArrayBuffer | Uint8Array;
2914
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2915
+ sampledata?: Record<string, string>[] | undefined;
2916
+ columns?: string[] | undefined;
3100
2917
  }>;
3101
2918
  options: z.ZodOptional<z.ZodObject<{
3102
2919
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3104,94 +2921,54 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
3104
2921
  fallback: z.ZodOptional<z.ZodBoolean>;
3105
2922
  subset: z.ZodOptional<z.ZodBoolean>;
3106
2923
  }, "strip", z.ZodTypeAny, {
2924
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3107
2925
  fallback?: boolean | undefined;
3108
2926
  subset?: boolean | undefined;
3109
- data: string | ArrayBuffer | Uint8Array;
3110
2927
  }, {
2928
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3111
2929
  fallback?: boolean | undefined;
3112
2930
  subset?: boolean | undefined;
3113
- data: string | ArrayBuffer | Uint8Array;
3114
2931
  }>>>;
3115
- }, "strip", z.ZodTypeAny, {
3116
- font?: Record<string, {
3117
- fallback?: boolean | undefined;
3118
- subset?: boolean | undefined;
3119
- data: string | ArrayBuffer | Uint8Array;
3120
- }> | undefined;
3121
- }, {
3122
- font?: Record<string, {
3123
- fallback?: boolean | undefined;
3124
- subset?: boolean | undefined;
3125
- data: string | ArrayBuffer | Uint8Array;
3126
- }> | undefined;
3127
- }>>;
3128
- }, {
3129
- domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
3130
- options: z.ZodOptional<z.ZodObject<z.extendShape<{
3131
- font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3132
- data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
3133
- fallback: z.ZodOptional<z.ZodBoolean>;
3134
- subset: z.ZodOptional<z.ZodBoolean>;
3135
- }, "strip", z.ZodTypeAny, {
3136
- fallback?: boolean | undefined;
3137
- subset?: boolean | undefined;
3138
- data: string | ArrayBuffer | Uint8Array;
3139
- }, {
3140
- fallback?: boolean | undefined;
3141
- subset?: boolean | undefined;
3142
- data: string | ArrayBuffer | Uint8Array;
3143
- }>>>;
3144
- }, {
3145
2932
  lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar"]>>;
3146
- }>, "strip", z.ZodTypeAny, {
2933
+ }, "strip", z.ZodTypeAny, {
3147
2934
  font?: Record<string, {
2935
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3148
2936
  fallback?: boolean | undefined;
3149
2937
  subset?: boolean | undefined;
3150
- data: string | ArrayBuffer | Uint8Array;
3151
2938
  }> | undefined;
3152
2939
  lang?: "en" | "ja" | "ar" | undefined;
3153
2940
  }, {
3154
2941
  font?: Record<string, {
2942
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3155
2943
  fallback?: boolean | undefined;
3156
2944
  subset?: boolean | undefined;
3157
- data: string | ArrayBuffer | Uint8Array;
3158
2945
  }> | undefined;
3159
2946
  lang?: "en" | "ja" | "ar" | undefined;
3160
2947
  }>>;
3161
- }>, never>, "strict", z.ZodTypeAny, {
3162
- options?: {
3163
- font?: Record<string, {
3164
- fallback?: boolean | undefined;
3165
- subset?: boolean | undefined;
3166
- data: string | ArrayBuffer | Uint8Array;
3167
- }> | undefined;
3168
- lang?: "en" | "ja" | "ar" | undefined;
3169
- } | undefined;
2948
+ domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
2949
+ }, "strict", z.ZodTypeAny, {
3170
2950
  template: {
3171
- columns?: string[] | undefined;
3172
- sampledata?: Record<string, string>[] | undefined;
3173
2951
  schemas: Record<string, {
3174
- backgroundColor?: string | undefined;
3175
- fontSize?: number | undefined;
3176
- lineHeight?: number | undefined;
2952
+ type: "text";
2953
+ height: number;
2954
+ width: number;
2955
+ position: {
2956
+ x: number;
2957
+ y: number;
2958
+ };
3177
2959
  rotate?: number | undefined;
3178
2960
  alignment?: "center" | "left" | "right" | undefined;
2961
+ fontSize?: number | undefined;
3179
2962
  fontName?: string | undefined;
3180
2963
  fontColor?: string | undefined;
2964
+ backgroundColor?: string | undefined;
3181
2965
  characterSpacing?: number | undefined;
2966
+ lineHeight?: number | undefined;
3182
2967
  dynamicFontSize?: {
3183
2968
  max: number;
3184
2969
  min: number;
3185
2970
  } | undefined;
3186
- type: "text";
3187
- height: number;
3188
- width: number;
3189
- position: {
3190
- x: number;
3191
- y: number;
3192
- };
3193
2971
  } | {
3194
- rotate?: number | undefined;
3195
2972
  type: "image";
3196
2973
  height: number;
3197
2974
  width: number;
@@ -3199,8 +2976,8 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
3199
2976
  x: number;
3200
2977
  y: number;
3201
2978
  };
3202
- } | {
3203
2979
  rotate?: number | undefined;
2980
+ } | {
3204
2981
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3205
2982
  height: number;
3206
2983
  width: number;
@@ -3208,44 +2985,44 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
3208
2985
  x: number;
3209
2986
  y: number;
3210
2987
  };
2988
+ rotate?: number | undefined;
3211
2989
  }>[];
3212
- basePdf: string | ArrayBuffer | Uint8Array;
2990
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2991
+ sampledata?: Record<string, string>[] | undefined;
2992
+ columns?: string[] | undefined;
3213
2993
  };
3214
2994
  domContainer: HTMLElement;
3215
- }, {
3216
2995
  options?: {
3217
2996
  font?: Record<string, {
2997
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3218
2998
  fallback?: boolean | undefined;
3219
2999
  subset?: boolean | undefined;
3220
- data: string | ArrayBuffer | Uint8Array;
3221
3000
  }> | undefined;
3222
3001
  lang?: "en" | "ja" | "ar" | undefined;
3223
3002
  } | undefined;
3003
+ }, {
3224
3004
  template: {
3225
- columns?: string[] | undefined;
3226
- sampledata?: Record<string, string>[] | undefined;
3227
3005
  schemas: Record<string, {
3228
- backgroundColor?: string | undefined;
3229
- fontSize?: number | undefined;
3230
- lineHeight?: number | undefined;
3006
+ type: "text";
3007
+ height: number;
3008
+ width: number;
3009
+ position: {
3010
+ x: number;
3011
+ y: number;
3012
+ };
3231
3013
  rotate?: number | undefined;
3232
3014
  alignment?: "center" | "left" | "right" | undefined;
3015
+ fontSize?: number | undefined;
3233
3016
  fontName?: string | undefined;
3234
3017
  fontColor?: string | undefined;
3018
+ backgroundColor?: string | undefined;
3235
3019
  characterSpacing?: number | undefined;
3020
+ lineHeight?: number | undefined;
3236
3021
  dynamicFontSize?: {
3237
3022
  max: number;
3238
3023
  min: number;
3239
3024
  } | undefined;
3240
- type: "text";
3241
- height: number;
3242
- width: number;
3243
- position: {
3244
- x: number;
3245
- y: number;
3246
- };
3247
3025
  } | {
3248
- rotate?: number | undefined;
3249
3026
  type: "image";
3250
3027
  height: number;
3251
3028
  width: number;
@@ -3253,8 +3030,8 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
3253
3030
  x: number;
3254
3031
  y: number;
3255
3032
  };
3256
- } | {
3257
3033
  rotate?: number | undefined;
3034
+ } | {
3258
3035
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3259
3036
  height: number;
3260
3037
  width: number;
@@ -3262,15 +3039,27 @@ export declare const DesignerProps: z.ZodObject<Omit<z.extendShape<{
3262
3039
  x: number;
3263
3040
  y: number;
3264
3041
  };
3042
+ rotate?: number | undefined;
3265
3043
  }>[];
3266
- basePdf: string | ArrayBuffer | Uint8Array;
3044
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3045
+ sampledata?: Record<string, string>[] | undefined;
3046
+ columns?: string[] | undefined;
3267
3047
  };
3268
3048
  domContainer: HTMLElement;
3049
+ options?: {
3050
+ font?: Record<string, {
3051
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3052
+ fallback?: boolean | undefined;
3053
+ subset?: boolean | undefined;
3054
+ }> | undefined;
3055
+ lang?: "en" | "ja" | "ar" | undefined;
3056
+ } | undefined;
3269
3057
  }>;
3270
- export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.extendShape<{
3058
+ export declare const DesignerReactProps: z.ZodObject<{
3271
3059
  template: z.ZodObject<{
3272
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.extendShape<{
3273
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
3060
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
3061
+ height: z.ZodNumber;
3062
+ width: z.ZodNumber;
3274
3063
  position: z.ZodObject<{
3275
3064
  x: z.ZodNumber;
3276
3065
  y: z.ZodNumber;
@@ -3281,10 +3070,7 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3281
3070
  x: number;
3282
3071
  y: number;
3283
3072
  }>;
3284
- width: z.ZodNumber;
3285
- height: z.ZodNumber;
3286
3073
  rotate: z.ZodOptional<z.ZodNumber>;
3287
- }, {
3288
3074
  type: z.ZodLiteral<"text">;
3289
3075
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3290
3076
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -3303,19 +3089,27 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3303
3089
  max: number;
3304
3090
  min: number;
3305
3091
  }>>;
3306
- }>, "strip", z.ZodTypeAny, {
3307
- backgroundColor?: string | undefined;
3308
- fontSize?: number | undefined;
3309
- lineHeight?: number | undefined;
3092
+ }, "strip", z.ZodTypeAny, {
3093
+ type: "text";
3094
+ height: number;
3095
+ width: number;
3096
+ position: {
3097
+ x: number;
3098
+ y: number;
3099
+ };
3310
3100
  rotate?: number | undefined;
3311
3101
  alignment?: "center" | "left" | "right" | undefined;
3102
+ fontSize?: number | undefined;
3312
3103
  fontName?: string | undefined;
3313
3104
  fontColor?: string | undefined;
3105
+ backgroundColor?: string | undefined;
3314
3106
  characterSpacing?: number | undefined;
3107
+ lineHeight?: number | undefined;
3315
3108
  dynamicFontSize?: {
3316
3109
  max: number;
3317
3110
  min: number;
3318
3111
  } | undefined;
3112
+ }, {
3319
3113
  type: "text";
3320
3114
  height: number;
3321
3115
  width: number;
@@ -3323,28 +3117,21 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3323
3117
  x: number;
3324
3118
  y: number;
3325
3119
  };
3326
- }, {
3327
- backgroundColor?: string | undefined;
3328
- fontSize?: number | undefined;
3329
- lineHeight?: number | undefined;
3330
3120
  rotate?: number | undefined;
3331
3121
  alignment?: "center" | "left" | "right" | undefined;
3122
+ fontSize?: number | undefined;
3332
3123
  fontName?: string | undefined;
3333
3124
  fontColor?: string | undefined;
3125
+ backgroundColor?: string | undefined;
3334
3126
  characterSpacing?: number | undefined;
3127
+ lineHeight?: number | undefined;
3335
3128
  dynamicFontSize?: {
3336
3129
  max: number;
3337
3130
  min: number;
3338
3131
  } | undefined;
3339
- type: "text";
3340
- height: number;
3341
- width: number;
3342
- position: {
3343
- x: number;
3344
- y: number;
3345
- };
3346
- }>, z.ZodObject<z.extendShape<{
3347
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
3132
+ }>, z.ZodObject<{
3133
+ height: z.ZodNumber;
3134
+ width: z.ZodNumber;
3348
3135
  position: z.ZodObject<{
3349
3136
  x: z.ZodNumber;
3350
3137
  y: z.ZodNumber;
@@ -3355,13 +3142,9 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3355
3142
  x: number;
3356
3143
  y: number;
3357
3144
  }>;
3358
- width: z.ZodNumber;
3359
- height: z.ZodNumber;
3360
3145
  rotate: z.ZodOptional<z.ZodNumber>;
3361
- }, {
3362
3146
  type: z.ZodLiteral<"image">;
3363
- }>, "strip", z.ZodTypeAny, {
3364
- rotate?: number | undefined;
3147
+ }, "strip", z.ZodTypeAny, {
3365
3148
  type: "image";
3366
3149
  height: number;
3367
3150
  width: number;
@@ -3369,8 +3152,8 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3369
3152
  x: number;
3370
3153
  y: number;
3371
3154
  };
3372
- }, {
3373
3155
  rotate?: number | undefined;
3156
+ }, {
3374
3157
  type: "image";
3375
3158
  height: number;
3376
3159
  width: number;
@@ -3378,8 +3161,10 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3378
3161
  x: number;
3379
3162
  y: number;
3380
3163
  };
3381
- }>, z.ZodObject<z.extendShape<{
3382
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
3164
+ rotate?: number | undefined;
3165
+ }>, z.ZodObject<{
3166
+ height: z.ZodNumber;
3167
+ width: z.ZodNumber;
3383
3168
  position: z.ZodObject<{
3384
3169
  x: z.ZodNumber;
3385
3170
  y: z.ZodNumber;
@@ -3390,13 +3175,9 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3390
3175
  x: number;
3391
3176
  y: number;
3392
3177
  }>;
3393
- width: z.ZodNumber;
3394
- height: z.ZodNumber;
3395
3178
  rotate: z.ZodOptional<z.ZodNumber>;
3396
- }, {
3397
3179
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
3398
- }>, "strip", z.ZodTypeAny, {
3399
- rotate?: number | undefined;
3180
+ }, "strip", z.ZodTypeAny, {
3400
3181
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3401
3182
  height: number;
3402
3183
  width: number;
@@ -3404,8 +3185,8 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3404
3185
  x: number;
3405
3186
  y: number;
3406
3187
  };
3407
- }, {
3408
3188
  rotate?: number | undefined;
3189
+ }, {
3409
3190
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3410
3191
  height: number;
3411
3192
  width: number;
@@ -3413,161 +3194,132 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3413
3194
  x: number;
3414
3195
  y: number;
3415
3196
  };
3197
+ rotate?: number | undefined;
3416
3198
  }>]>>, "many">;
3417
3199
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
3418
3200
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
3419
3201
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3420
3202
  }, "strip", z.ZodTypeAny, {
3421
- columns?: string[] | undefined;
3422
- sampledata?: Record<string, string>[] | undefined;
3423
3203
  schemas: Record<string, {
3424
- backgroundColor?: string | undefined;
3425
- fontSize?: number | undefined;
3426
- lineHeight?: number | undefined;
3204
+ type: "text";
3205
+ height: number;
3206
+ width: number;
3207
+ position: {
3208
+ x: number;
3209
+ y: number;
3210
+ };
3427
3211
  rotate?: number | undefined;
3428
3212
  alignment?: "center" | "left" | "right" | undefined;
3213
+ fontSize?: number | undefined;
3429
3214
  fontName?: string | undefined;
3430
3215
  fontColor?: string | undefined;
3216
+ backgroundColor?: string | undefined;
3431
3217
  characterSpacing?: number | undefined;
3218
+ lineHeight?: number | undefined;
3432
3219
  dynamicFontSize?: {
3433
3220
  max: number;
3434
3221
  min: number;
3435
3222
  } | undefined;
3436
- type: "text";
3223
+ } | {
3224
+ type: "image";
3437
3225
  height: number;
3438
3226
  width: number;
3439
3227
  position: {
3440
3228
  x: number;
3441
3229
  y: number;
3442
3230
  };
3443
- } | {
3444
3231
  rotate?: number | undefined;
3445
- type: "image";
3232
+ } | {
3233
+ type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3446
3234
  height: number;
3447
3235
  width: number;
3448
3236
  position: {
3449
3237
  x: number;
3450
3238
  y: number;
3451
3239
  };
3452
- } | {
3453
3240
  rotate?: number | undefined;
3454
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3241
+ }>[];
3242
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3243
+ sampledata?: Record<string, string>[] | undefined;
3244
+ columns?: string[] | undefined;
3245
+ }, {
3246
+ schemas: Record<string, {
3247
+ type: "text";
3455
3248
  height: number;
3456
3249
  width: number;
3457
3250
  position: {
3458
3251
  x: number;
3459
3252
  y: number;
3460
3253
  };
3461
- }>[];
3462
- basePdf: string | ArrayBuffer | Uint8Array;
3463
- }, {
3464
- columns?: string[] | undefined;
3465
- sampledata?: Record<string, string>[] | undefined;
3466
- schemas: Record<string, {
3467
- backgroundColor?: string | undefined;
3468
- fontSize?: number | undefined;
3469
- lineHeight?: number | undefined;
3470
3254
  rotate?: number | undefined;
3471
3255
  alignment?: "center" | "left" | "right" | undefined;
3256
+ fontSize?: number | undefined;
3472
3257
  fontName?: string | undefined;
3473
3258
  fontColor?: string | undefined;
3259
+ backgroundColor?: string | undefined;
3474
3260
  characterSpacing?: number | undefined;
3261
+ lineHeight?: number | undefined;
3475
3262
  dynamicFontSize?: {
3476
3263
  max: number;
3477
3264
  min: number;
3478
3265
  } | undefined;
3479
- type: "text";
3480
- height: number;
3481
- width: number;
3482
- position: {
3483
- x: number;
3484
- y: number;
3485
- };
3486
3266
  } | {
3487
- rotate?: number | undefined;
3488
3267
  type: "image";
3489
3268
  height: number;
3490
3269
  width: number;
3491
3270
  position: {
3492
- x: number;
3493
- y: number;
3494
- };
3495
- } | {
3496
- rotate?: number | undefined;
3497
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3498
- height: number;
3499
- width: number;
3500
- position: {
3501
- x: number;
3502
- y: number;
3503
- };
3504
- }>[];
3505
- basePdf: string | ArrayBuffer | Uint8Array;
3506
- }>;
3507
- options: z.ZodOptional<z.ZodObject<{
3508
- font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3509
- data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
3510
- fallback: z.ZodOptional<z.ZodBoolean>;
3511
- subset: z.ZodOptional<z.ZodBoolean>;
3512
- }, "strip", z.ZodTypeAny, {
3513
- fallback?: boolean | undefined;
3514
- subset?: boolean | undefined;
3515
- data: string | ArrayBuffer | Uint8Array;
3516
- }, {
3517
- fallback?: boolean | undefined;
3518
- subset?: boolean | undefined;
3519
- data: string | ArrayBuffer | Uint8Array;
3520
- }>>>;
3521
- }, "strip", z.ZodTypeAny, {
3522
- font?: Record<string, {
3523
- fallback?: boolean | undefined;
3524
- subset?: boolean | undefined;
3525
- data: string | ArrayBuffer | Uint8Array;
3526
- }> | undefined;
3527
- }, {
3528
- font?: Record<string, {
3529
- fallback?: boolean | undefined;
3530
- subset?: boolean | undefined;
3531
- data: string | ArrayBuffer | Uint8Array;
3532
- }> | undefined;
3533
- }>>;
3534
- }, {
3535
- domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
3536
- options: z.ZodOptional<z.ZodObject<z.extendShape<{
3271
+ x: number;
3272
+ y: number;
3273
+ };
3274
+ rotate?: number | undefined;
3275
+ } | {
3276
+ type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3277
+ height: number;
3278
+ width: number;
3279
+ position: {
3280
+ x: number;
3281
+ y: number;
3282
+ };
3283
+ rotate?: number | undefined;
3284
+ }>[];
3285
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3286
+ sampledata?: Record<string, string>[] | undefined;
3287
+ columns?: string[] | undefined;
3288
+ }>;
3289
+ options: z.ZodOptional<z.ZodObject<{
3537
3290
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3538
3291
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
3539
3292
  fallback: z.ZodOptional<z.ZodBoolean>;
3540
3293
  subset: z.ZodOptional<z.ZodBoolean>;
3541
3294
  }, "strip", z.ZodTypeAny, {
3295
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3542
3296
  fallback?: boolean | undefined;
3543
3297
  subset?: boolean | undefined;
3544
- data: string | ArrayBuffer | Uint8Array;
3545
3298
  }, {
3299
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3546
3300
  fallback?: boolean | undefined;
3547
3301
  subset?: boolean | undefined;
3548
- data: string | ArrayBuffer | Uint8Array;
3549
3302
  }>>>;
3550
- }, {
3551
3303
  lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar"]>>;
3552
- }>, "strip", z.ZodTypeAny, {
3304
+ }, "strip", z.ZodTypeAny, {
3553
3305
  font?: Record<string, {
3306
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3554
3307
  fallback?: boolean | undefined;
3555
3308
  subset?: boolean | undefined;
3556
- data: string | ArrayBuffer | Uint8Array;
3557
3309
  }> | undefined;
3558
3310
  lang?: "en" | "ja" | "ar" | undefined;
3559
3311
  }, {
3560
3312
  font?: Record<string, {
3313
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3561
3314
  fallback?: boolean | undefined;
3562
3315
  subset?: boolean | undefined;
3563
- data: string | ArrayBuffer | Uint8Array;
3564
3316
  }> | undefined;
3565
3317
  lang?: "en" | "ja" | "ar" | undefined;
3566
3318
  }>>;
3567
- }>, never>, "domContainer">, {
3568
3319
  onSaveTemplate: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
3569
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.extendShape<{
3570
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
3320
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
3321
+ height: z.ZodNumber;
3322
+ width: z.ZodNumber;
3571
3323
  position: z.ZodObject<{
3572
3324
  x: z.ZodNumber;
3573
3325
  y: z.ZodNumber;
@@ -3578,10 +3330,7 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3578
3330
  x: number;
3579
3331
  y: number;
3580
3332
  }>;
3581
- width: z.ZodNumber;
3582
- height: z.ZodNumber;
3583
3333
  rotate: z.ZodOptional<z.ZodNumber>;
3584
- }, {
3585
3334
  type: z.ZodLiteral<"text">;
3586
3335
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3587
3336
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -3600,19 +3349,27 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3600
3349
  max: number;
3601
3350
  min: number;
3602
3351
  }>>;
3603
- }>, "strip", z.ZodTypeAny, {
3604
- backgroundColor?: string | undefined;
3605
- fontSize?: number | undefined;
3606
- lineHeight?: number | undefined;
3352
+ }, "strip", z.ZodTypeAny, {
3353
+ type: "text";
3354
+ height: number;
3355
+ width: number;
3356
+ position: {
3357
+ x: number;
3358
+ y: number;
3359
+ };
3607
3360
  rotate?: number | undefined;
3608
3361
  alignment?: "center" | "left" | "right" | undefined;
3362
+ fontSize?: number | undefined;
3609
3363
  fontName?: string | undefined;
3610
3364
  fontColor?: string | undefined;
3365
+ backgroundColor?: string | undefined;
3611
3366
  characterSpacing?: number | undefined;
3367
+ lineHeight?: number | undefined;
3612
3368
  dynamicFontSize?: {
3613
3369
  max: number;
3614
3370
  min: number;
3615
3371
  } | undefined;
3372
+ }, {
3616
3373
  type: "text";
3617
3374
  height: number;
3618
3375
  width: number;
@@ -3620,28 +3377,21 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3620
3377
  x: number;
3621
3378
  y: number;
3622
3379
  };
3623
- }, {
3624
- backgroundColor?: string | undefined;
3625
- fontSize?: number | undefined;
3626
- lineHeight?: number | undefined;
3627
3380
  rotate?: number | undefined;
3628
3381
  alignment?: "center" | "left" | "right" | undefined;
3382
+ fontSize?: number | undefined;
3629
3383
  fontName?: string | undefined;
3630
3384
  fontColor?: string | undefined;
3385
+ backgroundColor?: string | undefined;
3631
3386
  characterSpacing?: number | undefined;
3387
+ lineHeight?: number | undefined;
3632
3388
  dynamicFontSize?: {
3633
3389
  max: number;
3634
3390
  min: number;
3635
3391
  } | undefined;
3636
- type: "text";
3637
- height: number;
3638
- width: number;
3639
- position: {
3640
- x: number;
3641
- y: number;
3642
- };
3643
- }>, z.ZodObject<z.extendShape<{
3644
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
3392
+ }>, z.ZodObject<{
3393
+ height: z.ZodNumber;
3394
+ width: z.ZodNumber;
3645
3395
  position: z.ZodObject<{
3646
3396
  x: z.ZodNumber;
3647
3397
  y: z.ZodNumber;
@@ -3652,13 +3402,9 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3652
3402
  x: number;
3653
3403
  y: number;
3654
3404
  }>;
3655
- width: z.ZodNumber;
3656
- height: z.ZodNumber;
3657
3405
  rotate: z.ZodOptional<z.ZodNumber>;
3658
- }, {
3659
3406
  type: z.ZodLiteral<"image">;
3660
- }>, "strip", z.ZodTypeAny, {
3661
- rotate?: number | undefined;
3407
+ }, "strip", z.ZodTypeAny, {
3662
3408
  type: "image";
3663
3409
  height: number;
3664
3410
  width: number;
@@ -3666,8 +3412,8 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3666
3412
  x: number;
3667
3413
  y: number;
3668
3414
  };
3669
- }, {
3670
3415
  rotate?: number | undefined;
3416
+ }, {
3671
3417
  type: "image";
3672
3418
  height: number;
3673
3419
  width: number;
@@ -3675,8 +3421,10 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3675
3421
  x: number;
3676
3422
  y: number;
3677
3423
  };
3678
- }>, z.ZodObject<z.extendShape<{
3679
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
3424
+ rotate?: number | undefined;
3425
+ }>, z.ZodObject<{
3426
+ height: z.ZodNumber;
3427
+ width: z.ZodNumber;
3680
3428
  position: z.ZodObject<{
3681
3429
  x: z.ZodNumber;
3682
3430
  y: z.ZodNumber;
@@ -3687,13 +3435,9 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3687
3435
  x: number;
3688
3436
  y: number;
3689
3437
  }>;
3690
- width: z.ZodNumber;
3691
- height: z.ZodNumber;
3692
3438
  rotate: z.ZodOptional<z.ZodNumber>;
3693
- }, {
3694
3439
  type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce"]>;
3695
- }>, "strip", z.ZodTypeAny, {
3696
- rotate?: number | undefined;
3440
+ }, "strip", z.ZodTypeAny, {
3697
3441
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3698
3442
  height: number;
3699
3443
  width: number;
@@ -3701,8 +3445,8 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3701
3445
  x: number;
3702
3446
  y: number;
3703
3447
  };
3704
- }, {
3705
3448
  rotate?: number | undefined;
3449
+ }, {
3706
3450
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3707
3451
  height: number;
3708
3452
  width: number;
@@ -3710,78 +3454,76 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3710
3454
  x: number;
3711
3455
  y: number;
3712
3456
  };
3457
+ rotate?: number | undefined;
3713
3458
  }>]>>, "many">;
3714
3459
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
3715
3460
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
3716
3461
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3717
3462
  }, "strip", z.ZodTypeAny, {
3718
- columns?: string[] | undefined;
3719
- sampledata?: Record<string, string>[] | undefined;
3720
3463
  schemas: Record<string, {
3721
- backgroundColor?: string | undefined;
3722
- fontSize?: number | undefined;
3723
- lineHeight?: number | undefined;
3464
+ type: "text";
3465
+ height: number;
3466
+ width: number;
3467
+ position: {
3468
+ x: number;
3469
+ y: number;
3470
+ };
3724
3471
  rotate?: number | undefined;
3725
3472
  alignment?: "center" | "left" | "right" | undefined;
3473
+ fontSize?: number | undefined;
3726
3474
  fontName?: string | undefined;
3727
3475
  fontColor?: string | undefined;
3476
+ backgroundColor?: string | undefined;
3728
3477
  characterSpacing?: number | undefined;
3478
+ lineHeight?: number | undefined;
3729
3479
  dynamicFontSize?: {
3730
3480
  max: number;
3731
3481
  min: number;
3732
3482
  } | undefined;
3733
- type: "text";
3483
+ } | {
3484
+ type: "image";
3734
3485
  height: number;
3735
3486
  width: number;
3736
3487
  position: {
3737
3488
  x: number;
3738
3489
  y: number;
3739
3490
  };
3740
- } | {
3741
3491
  rotate?: number | undefined;
3742
- type: "image";
3492
+ } | {
3493
+ type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3743
3494
  height: number;
3744
3495
  width: number;
3745
3496
  position: {
3746
3497
  x: number;
3747
3498
  y: number;
3748
3499
  };
3749
- } | {
3750
3500
  rotate?: number | undefined;
3751
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3501
+ }>[];
3502
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3503
+ sampledata?: Record<string, string>[] | undefined;
3504
+ columns?: string[] | undefined;
3505
+ }, {
3506
+ schemas: Record<string, {
3507
+ type: "text";
3752
3508
  height: number;
3753
3509
  width: number;
3754
3510
  position: {
3755
3511
  x: number;
3756
3512
  y: number;
3757
3513
  };
3758
- }>[];
3759
- basePdf: string | ArrayBuffer | Uint8Array;
3760
- }, {
3761
- columns?: string[] | undefined;
3762
- sampledata?: Record<string, string>[] | undefined;
3763
- schemas: Record<string, {
3764
- backgroundColor?: string | undefined;
3765
- fontSize?: number | undefined;
3766
- lineHeight?: number | undefined;
3767
3514
  rotate?: number | undefined;
3768
3515
  alignment?: "center" | "left" | "right" | undefined;
3516
+ fontSize?: number | undefined;
3769
3517
  fontName?: string | undefined;
3770
3518
  fontColor?: string | undefined;
3519
+ backgroundColor?: string | undefined;
3771
3520
  characterSpacing?: number | undefined;
3521
+ lineHeight?: number | undefined;
3772
3522
  dynamicFontSize?: {
3773
3523
  max: number;
3774
3524
  min: number;
3775
3525
  } | undefined;
3776
- type: "text";
3777
- height: number;
3778
- width: number;
3779
- position: {
3780
- x: number;
3781
- y: number;
3782
- };
3783
3526
  } | {
3784
- rotate?: number | undefined;
3785
3527
  type: "image";
3786
3528
  height: number;
3787
3529
  width: number;
@@ -3789,8 +3531,8 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3789
3531
  x: number;
3790
3532
  y: number;
3791
3533
  };
3792
- } | {
3793
3534
  rotate?: number | undefined;
3535
+ } | {
3794
3536
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3795
3537
  height: number;
3796
3538
  width: number;
@@ -3798,8 +3540,11 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3798
3540
  x: number;
3799
3541
  y: number;
3800
3542
  };
3543
+ rotate?: number | undefined;
3801
3544
  }>[];
3802
- basePdf: string | ArrayBuffer | Uint8Array;
3545
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3546
+ sampledata?: Record<string, string>[] | undefined;
3547
+ columns?: string[] | undefined;
3803
3548
  }>], z.ZodUnknown>, z.ZodVoid>;
3804
3549
  size: z.ZodObject<{
3805
3550
  height: z.ZodNumber;
@@ -3811,40 +3556,29 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3811
3556
  height: number;
3812
3557
  width: number;
3813
3558
  }>;
3814
- }>, "strict", z.ZodTypeAny, {
3815
- options?: {
3816
- font?: Record<string, {
3817
- fallback?: boolean | undefined;
3818
- subset?: boolean | undefined;
3819
- data: string | ArrayBuffer | Uint8Array;
3820
- }> | undefined;
3821
- lang?: "en" | "ja" | "ar" | undefined;
3822
- } | undefined;
3559
+ }, "strict", z.ZodTypeAny, {
3823
3560
  template: {
3824
- columns?: string[] | undefined;
3825
- sampledata?: Record<string, string>[] | undefined;
3826
3561
  schemas: Record<string, {
3827
- backgroundColor?: string | undefined;
3828
- fontSize?: number | undefined;
3829
- lineHeight?: number | undefined;
3562
+ type: "text";
3563
+ height: number;
3564
+ width: number;
3565
+ position: {
3566
+ x: number;
3567
+ y: number;
3568
+ };
3830
3569
  rotate?: number | undefined;
3831
3570
  alignment?: "center" | "left" | "right" | undefined;
3571
+ fontSize?: number | undefined;
3832
3572
  fontName?: string | undefined;
3833
3573
  fontColor?: string | undefined;
3574
+ backgroundColor?: string | undefined;
3834
3575
  characterSpacing?: number | undefined;
3576
+ lineHeight?: number | undefined;
3835
3577
  dynamicFontSize?: {
3836
3578
  max: number;
3837
3579
  min: number;
3838
3580
  } | undefined;
3839
- type: "text";
3840
- height: number;
3841
- width: number;
3842
- position: {
3843
- x: number;
3844
- y: number;
3845
- };
3846
3581
  } | {
3847
- rotate?: number | undefined;
3848
3582
  type: "image";
3849
3583
  height: number;
3850
3584
  width: number;
@@ -3852,8 +3586,8 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3852
3586
  x: number;
3853
3587
  y: number;
3854
3588
  };
3855
- } | {
3856
3589
  rotate?: number | undefined;
3590
+ } | {
3857
3591
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3858
3592
  height: number;
3859
3593
  width: number;
@@ -3861,38 +3595,38 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3861
3595
  x: number;
3862
3596
  y: number;
3863
3597
  };
3598
+ rotate?: number | undefined;
3864
3599
  }>[];
3865
- basePdf: string | ArrayBuffer | Uint8Array;
3600
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3601
+ sampledata?: Record<string, string>[] | undefined;
3602
+ columns?: string[] | undefined;
3866
3603
  };
3867
3604
  size: {
3868
3605
  height: number;
3869
3606
  width: number;
3870
3607
  };
3871
3608
  onSaveTemplate: (args_0: {
3872
- columns?: string[] | undefined;
3873
- sampledata?: Record<string, string>[] | undefined;
3874
3609
  schemas: Record<string, {
3875
- backgroundColor?: string | undefined;
3876
- fontSize?: number | undefined;
3877
- lineHeight?: number | undefined;
3610
+ type: "text";
3611
+ height: number;
3612
+ width: number;
3613
+ position: {
3614
+ x: number;
3615
+ y: number;
3616
+ };
3878
3617
  rotate?: number | undefined;
3879
3618
  alignment?: "center" | "left" | "right" | undefined;
3619
+ fontSize?: number | undefined;
3880
3620
  fontName?: string | undefined;
3881
3621
  fontColor?: string | undefined;
3622
+ backgroundColor?: string | undefined;
3882
3623
  characterSpacing?: number | undefined;
3624
+ lineHeight?: number | undefined;
3883
3625
  dynamicFontSize?: {
3884
3626
  max: number;
3885
3627
  min: number;
3886
3628
  } | undefined;
3887
- type: "text";
3888
- height: number;
3889
- width: number;
3890
- position: {
3891
- x: number;
3892
- y: number;
3893
- };
3894
3629
  } | {
3895
- rotate?: number | undefined;
3896
3630
  type: "image";
3897
3631
  height: number;
3898
3632
  width: number;
@@ -3900,8 +3634,8 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3900
3634
  x: number;
3901
3635
  y: number;
3902
3636
  };
3903
- } | {
3904
3637
  rotate?: number | undefined;
3638
+ } | {
3905
3639
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3906
3640
  height: number;
3907
3641
  width: number;
@@ -3909,43 +3643,43 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3909
3643
  x: number;
3910
3644
  y: number;
3911
3645
  };
3646
+ rotate?: number | undefined;
3912
3647
  }>[];
3913
- basePdf: string | ArrayBuffer | Uint8Array;
3648
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3649
+ sampledata?: Record<string, string>[] | undefined;
3650
+ columns?: string[] | undefined;
3914
3651
  }, ...args_1: unknown[]) => void;
3915
- }, {
3916
3652
  options?: {
3917
3653
  font?: Record<string, {
3654
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3918
3655
  fallback?: boolean | undefined;
3919
3656
  subset?: boolean | undefined;
3920
- data: string | ArrayBuffer | Uint8Array;
3921
3657
  }> | undefined;
3922
3658
  lang?: "en" | "ja" | "ar" | undefined;
3923
3659
  } | undefined;
3660
+ }, {
3924
3661
  template: {
3925
- columns?: string[] | undefined;
3926
- sampledata?: Record<string, string>[] | undefined;
3927
3662
  schemas: Record<string, {
3928
- backgroundColor?: string | undefined;
3929
- fontSize?: number | undefined;
3930
- lineHeight?: number | undefined;
3663
+ type: "text";
3664
+ height: number;
3665
+ width: number;
3666
+ position: {
3667
+ x: number;
3668
+ y: number;
3669
+ };
3931
3670
  rotate?: number | undefined;
3932
3671
  alignment?: "center" | "left" | "right" | undefined;
3672
+ fontSize?: number | undefined;
3933
3673
  fontName?: string | undefined;
3934
3674
  fontColor?: string | undefined;
3675
+ backgroundColor?: string | undefined;
3935
3676
  characterSpacing?: number | undefined;
3677
+ lineHeight?: number | undefined;
3936
3678
  dynamicFontSize?: {
3937
3679
  max: number;
3938
3680
  min: number;
3939
3681
  } | undefined;
3940
- type: "text";
3941
- height: number;
3942
- width: number;
3943
- position: {
3944
- x: number;
3945
- y: number;
3946
- };
3947
3682
  } | {
3948
- rotate?: number | undefined;
3949
3683
  type: "image";
3950
3684
  height: number;
3951
3685
  width: number;
@@ -3953,8 +3687,8 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3953
3687
  x: number;
3954
3688
  y: number;
3955
3689
  };
3956
- } | {
3957
3690
  rotate?: number | undefined;
3691
+ } | {
3958
3692
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
3959
3693
  height: number;
3960
3694
  width: number;
@@ -3962,38 +3696,38 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
3962
3696
  x: number;
3963
3697
  y: number;
3964
3698
  };
3699
+ rotate?: number | undefined;
3965
3700
  }>[];
3966
- basePdf: string | ArrayBuffer | Uint8Array;
3701
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3702
+ sampledata?: Record<string, string>[] | undefined;
3703
+ columns?: string[] | undefined;
3967
3704
  };
3968
3705
  size: {
3969
3706
  height: number;
3970
3707
  width: number;
3971
3708
  };
3972
3709
  onSaveTemplate: (args_0: {
3973
- columns?: string[] | undefined;
3974
- sampledata?: Record<string, string>[] | undefined;
3975
3710
  schemas: Record<string, {
3976
- backgroundColor?: string | undefined;
3977
- fontSize?: number | undefined;
3978
- lineHeight?: number | undefined;
3711
+ type: "text";
3712
+ height: number;
3713
+ width: number;
3714
+ position: {
3715
+ x: number;
3716
+ y: number;
3717
+ };
3979
3718
  rotate?: number | undefined;
3980
3719
  alignment?: "center" | "left" | "right" | undefined;
3720
+ fontSize?: number | undefined;
3981
3721
  fontName?: string | undefined;
3982
3722
  fontColor?: string | undefined;
3723
+ backgroundColor?: string | undefined;
3983
3724
  characterSpacing?: number | undefined;
3725
+ lineHeight?: number | undefined;
3984
3726
  dynamicFontSize?: {
3985
3727
  max: number;
3986
3728
  min: number;
3987
3729
  } | undefined;
3988
- type: "text";
3989
- height: number;
3990
- width: number;
3991
- position: {
3992
- x: number;
3993
- y: number;
3994
- };
3995
3730
  } | {
3996
- rotate?: number | undefined;
3997
3731
  type: "image";
3998
3732
  height: number;
3999
3733
  width: number;
@@ -4001,8 +3735,8 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
4001
3735
  x: number;
4002
3736
  y: number;
4003
3737
  };
4004
- } | {
4005
3738
  rotate?: number | undefined;
3739
+ } | {
4006
3740
  type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce";
4007
3741
  height: number;
4008
3742
  width: number;
@@ -4010,7 +3744,18 @@ export declare const DesignerReactProps: z.ZodObject<z.extendShape<Omit<Omit<z.e
4010
3744
  x: number;
4011
3745
  y: number;
4012
3746
  };
3747
+ rotate?: number | undefined;
4013
3748
  }>[];
4014
- basePdf: string | ArrayBuffer | Uint8Array;
3749
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3750
+ sampledata?: Record<string, string>[] | undefined;
3751
+ columns?: string[] | undefined;
4015
3752
  }, ...args_1: unknown[]) => void;
3753
+ options?: {
3754
+ font?: Record<string, {
3755
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3756
+ fallback?: boolean | undefined;
3757
+ subset?: boolean | undefined;
3758
+ }> | undefined;
3759
+ lang?: "en" | "ja" | "ar" | undefined;
3760
+ } | undefined;
4016
3761
  }>;