document-content-model 0.0.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,751 @@
1
+ import { z } from "zod";
2
+ //#region src/color.d.ts
3
+ declare const ColorSchema: z.ZodObject<{
4
+ r: z.ZodNumber;
5
+ g: z.ZodNumber;
6
+ b: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ type Color = z.infer<typeof ColorSchema>;
9
+ declare const COLOR_BLACK: Color;
10
+ declare function rgbHexToColor(hex: string): Color;
11
+ declare function colorToRgbHex(color: Color): string;
12
+ //#endregion
13
+ //#region src/geometry.d.ts
14
+ declare const BoxSchema: z.ZodObject<{
15
+ xPt: z.ZodNumber;
16
+ yPt: z.ZodNumber;
17
+ widthPt: z.ZodNumber;
18
+ heightPt: z.ZodNumber;
19
+ }, z.core.$strip>;
20
+ type Box = z.infer<typeof BoxSchema>;
21
+ declare const PageSizeSchema: z.ZodObject<{
22
+ widthPt: z.ZodNumber;
23
+ heightPt: z.ZodNumber;
24
+ }, z.core.$strip>;
25
+ type PageSize = z.infer<typeof PageSizeSchema>;
26
+ declare const MarginsSchema: z.ZodObject<{
27
+ topPt: z.ZodNumber;
28
+ rightPt: z.ZodNumber;
29
+ bottomPt: z.ZodNumber;
30
+ leftPt: z.ZodNumber;
31
+ }, z.core.$strip>;
32
+ type Margins = z.infer<typeof MarginsSchema>;
33
+ declare const PAGE_SIZE_LETTER: PageSize;
34
+ declare const PAGE_SIZE_A4: PageSize;
35
+ declare const SLIDE_SIZE_WIDESCREEN: PageSize;
36
+ declare const SLIDE_SIZE_STANDARD: PageSize;
37
+ //#endregion
38
+ //#region src/style.d.ts
39
+ declare const AlignmentSchema: z.ZodEnum<{
40
+ left: "left";
41
+ center: "center";
42
+ right: "right";
43
+ justify: "justify";
44
+ }>;
45
+ type Alignment = z.infer<typeof AlignmentSchema>;
46
+ declare const LayoutFontSchema: z.ZodObject<{
47
+ family: z.ZodString;
48
+ weight: z.ZodEnum<{
49
+ normal: "normal";
50
+ bold: "bold";
51
+ }>;
52
+ style: z.ZodEnum<{
53
+ normal: "normal";
54
+ italic: "italic";
55
+ }>;
56
+ }, z.core.$strip>;
57
+ type LayoutFont = z.infer<typeof LayoutFontSchema>;
58
+ declare const DEFAULT_LAYOUT_FONT: LayoutFont;
59
+ //#endregion
60
+ //#region src/metadata.d.ts
61
+ declare const LayoutMetadataSchema: z.ZodObject<{
62
+ title: z.ZodOptional<z.ZodString>;
63
+ author: z.ZodOptional<z.ZodString>;
64
+ subject: z.ZodOptional<z.ZodString>;
65
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
+ creator: z.ZodOptional<z.ZodString>;
67
+ producer: z.ZodOptional<z.ZodString>;
68
+ createdIso: z.ZodOptional<z.ZodString>;
69
+ modifiedIso: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>;
71
+ type LayoutMetadata = z.infer<typeof LayoutMetadataSchema>;
72
+ //#endregion
73
+ //#region src/content.d.ts
74
+ declare const ContentRunSchema: z.ZodObject<{
75
+ text: z.ZodString;
76
+ bold: z.ZodOptional<z.ZodBoolean>;
77
+ italic: z.ZodOptional<z.ZodBoolean>;
78
+ underline: z.ZodOptional<z.ZodBoolean>;
79
+ strike: z.ZodOptional<z.ZodBoolean>;
80
+ fontFamily: z.ZodOptional<z.ZodString>;
81
+ sizePt: z.ZodOptional<z.ZodNumber>;
82
+ color: z.ZodOptional<z.ZodObject<{
83
+ r: z.ZodNumber;
84
+ g: z.ZodNumber;
85
+ b: z.ZodNumber;
86
+ }, z.core.$strip>>;
87
+ hyperlink: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$strip>;
89
+ type ContentRun = z.infer<typeof ContentRunSchema>;
90
+ declare const ContentListMembershipSchema: z.ZodObject<{
91
+ numId: z.ZodString;
92
+ level: z.ZodNumber;
93
+ }, z.core.$strip>;
94
+ type ContentListMembership = z.infer<typeof ContentListMembershipSchema>;
95
+ declare const ContentParagraphSchema: z.ZodObject<{
96
+ kind: z.ZodLiteral<"paragraph">;
97
+ runs: z.ZodArray<z.ZodObject<{
98
+ text: z.ZodString;
99
+ bold: z.ZodOptional<z.ZodBoolean>;
100
+ italic: z.ZodOptional<z.ZodBoolean>;
101
+ underline: z.ZodOptional<z.ZodBoolean>;
102
+ strike: z.ZodOptional<z.ZodBoolean>;
103
+ fontFamily: z.ZodOptional<z.ZodString>;
104
+ sizePt: z.ZodOptional<z.ZodNumber>;
105
+ color: z.ZodOptional<z.ZodObject<{
106
+ r: z.ZodNumber;
107
+ g: z.ZodNumber;
108
+ b: z.ZodNumber;
109
+ }, z.core.$strip>>;
110
+ hyperlink: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strip>>;
112
+ styleId: z.ZodOptional<z.ZodString>;
113
+ alignment: z.ZodOptional<z.ZodEnum<{
114
+ left: "left";
115
+ center: "center";
116
+ right: "right";
117
+ justify: "justify";
118
+ }>>;
119
+ list: z.ZodOptional<z.ZodObject<{
120
+ numId: z.ZodString;
121
+ level: z.ZodNumber;
122
+ }, z.core.$strip>>;
123
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
124
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
125
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
126
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
127
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
128
+ }, z.core.$strip>;
129
+ type ContentParagraph = z.infer<typeof ContentParagraphSchema>;
130
+ declare const ContentImageBlockSchema: z.ZodObject<{
131
+ kind: z.ZodLiteral<"image">;
132
+ format: z.ZodEnum<{
133
+ png: "png";
134
+ jpeg: "jpeg";
135
+ }>;
136
+ base64: z.ZodString;
137
+ widthPt: z.ZodNumber;
138
+ heightPt: z.ZodNumber;
139
+ altText: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strip>;
141
+ type ContentImageBlock = z.infer<typeof ContentImageBlockSchema>;
142
+ declare const ContentPageBreakSchema: z.ZodObject<{
143
+ kind: z.ZodLiteral<"pageBreak">;
144
+ }, z.core.$strip>;
145
+ type ContentPageBreak = z.infer<typeof ContentPageBreakSchema>;
146
+ interface ContentTableCell {
147
+ blocks: ContentBlock[];
148
+ colSpan?: number;
149
+ rowSpan?: number;
150
+ background?: Color;
151
+ }
152
+ interface ContentTableRow {
153
+ cells: ContentTableCell[];
154
+ heightPt?: number;
155
+ }
156
+ interface ContentTable {
157
+ kind: 'table';
158
+ rows: ContentTableRow[];
159
+ columnWidthsPt: number[];
160
+ }
161
+ type ContentBlock = ContentParagraph | ContentTable | ContentImageBlock | ContentPageBreak;
162
+ declare function isContentBlock(value: unknown): value is ContentBlock;
163
+ declare const ContentBlockSchema: z.ZodCustom<ContentBlock, ContentBlock>;
164
+ declare const ContentTableCellSchema: z.ZodObject<{
165
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
166
+ colSpan: z.ZodOptional<z.ZodNumber>;
167
+ rowSpan: z.ZodOptional<z.ZodNumber>;
168
+ background: z.ZodOptional<z.ZodObject<{
169
+ r: z.ZodNumber;
170
+ g: z.ZodNumber;
171
+ b: z.ZodNumber;
172
+ }, z.core.$strip>>;
173
+ }, z.core.$strip>;
174
+ declare const ContentTableRowSchema: z.ZodObject<{
175
+ cells: z.ZodArray<z.ZodObject<{
176
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
177
+ colSpan: z.ZodOptional<z.ZodNumber>;
178
+ rowSpan: z.ZodOptional<z.ZodNumber>;
179
+ background: z.ZodOptional<z.ZodObject<{
180
+ r: z.ZodNumber;
181
+ g: z.ZodNumber;
182
+ b: z.ZodNumber;
183
+ }, z.core.$strip>>;
184
+ }, z.core.$strip>>;
185
+ heightPt: z.ZodOptional<z.ZodNumber>;
186
+ }, z.core.$strip>;
187
+ declare const ContentTableSchema: z.ZodObject<{
188
+ kind: z.ZodLiteral<"table">;
189
+ rows: z.ZodArray<z.ZodObject<{
190
+ cells: z.ZodArray<z.ZodObject<{
191
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
192
+ colSpan: z.ZodOptional<z.ZodNumber>;
193
+ rowSpan: z.ZodOptional<z.ZodNumber>;
194
+ background: z.ZodOptional<z.ZodObject<{
195
+ r: z.ZodNumber;
196
+ g: z.ZodNumber;
197
+ b: z.ZodNumber;
198
+ }, z.core.$strip>>;
199
+ }, z.core.$strip>>;
200
+ heightPt: z.ZodOptional<z.ZodNumber>;
201
+ }, z.core.$strip>>;
202
+ columnWidthsPt: z.ZodArray<z.ZodNumber>;
203
+ }, z.core.$strip>;
204
+ declare const ContentSectionSchema: z.ZodObject<{
205
+ pageSize: z.ZodObject<{
206
+ widthPt: z.ZodNumber;
207
+ heightPt: z.ZodNumber;
208
+ }, z.core.$strip>;
209
+ margins: z.ZodObject<{
210
+ topPt: z.ZodNumber;
211
+ rightPt: z.ZodNumber;
212
+ bottomPt: z.ZodNumber;
213
+ leftPt: z.ZodNumber;
214
+ }, z.core.$strip>;
215
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
216
+ }, z.core.$strip>;
217
+ type ContentSection = z.infer<typeof ContentSectionSchema>;
218
+ declare const ContentShapeSchema: z.ZodObject<{
219
+ name: z.ZodOptional<z.ZodString>;
220
+ frame: z.ZodObject<{
221
+ xPt: z.ZodNumber;
222
+ yPt: z.ZodNumber;
223
+ widthPt: z.ZodNumber;
224
+ heightPt: z.ZodNumber;
225
+ }, z.core.$strip>;
226
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
227
+ insetLeftPt: z.ZodNumber;
228
+ insetTopPt: z.ZodNumber;
229
+ insetRightPt: z.ZodNumber;
230
+ insetBottomPt: z.ZodNumber;
231
+ fontScale: z.ZodOptional<z.ZodNumber>;
232
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
233
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
234
+ }, z.core.$strip>;
235
+ type ContentShape = z.infer<typeof ContentShapeSchema>;
236
+ declare const ContentSlideSchema: z.ZodObject<{
237
+ size: z.ZodObject<{
238
+ widthPt: z.ZodNumber;
239
+ heightPt: z.ZodNumber;
240
+ }, z.core.$strip>;
241
+ shapes: z.ZodArray<z.ZodObject<{
242
+ name: z.ZodOptional<z.ZodString>;
243
+ frame: z.ZodObject<{
244
+ xPt: z.ZodNumber;
245
+ yPt: z.ZodNumber;
246
+ widthPt: z.ZodNumber;
247
+ heightPt: z.ZodNumber;
248
+ }, z.core.$strip>;
249
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
250
+ insetLeftPt: z.ZodNumber;
251
+ insetTopPt: z.ZodNumber;
252
+ insetRightPt: z.ZodNumber;
253
+ insetBottomPt: z.ZodNumber;
254
+ fontScale: z.ZodOptional<z.ZodNumber>;
255
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
256
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
257
+ }, z.core.$strip>>;
258
+ notes: z.ZodString;
259
+ }, z.core.$strip>;
260
+ type ContentSlide = z.infer<typeof ContentSlideSchema>;
261
+ declare const CONTENT_FORMAT_VERSION = 1;
262
+ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
263
+ kind: z.ZodLiteral<"wordprocessing">;
264
+ formatVersion: z.ZodLiteral<1>;
265
+ metadata: z.ZodObject<{
266
+ title: z.ZodOptional<z.ZodString>;
267
+ author: z.ZodOptional<z.ZodString>;
268
+ subject: z.ZodOptional<z.ZodString>;
269
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
270
+ creator: z.ZodOptional<z.ZodString>;
271
+ producer: z.ZodOptional<z.ZodString>;
272
+ createdIso: z.ZodOptional<z.ZodString>;
273
+ modifiedIso: z.ZodOptional<z.ZodString>;
274
+ }, z.core.$strip>;
275
+ sections: z.ZodArray<z.ZodObject<{
276
+ pageSize: z.ZodObject<{
277
+ widthPt: z.ZodNumber;
278
+ heightPt: z.ZodNumber;
279
+ }, z.core.$strip>;
280
+ margins: z.ZodObject<{
281
+ topPt: z.ZodNumber;
282
+ rightPt: z.ZodNumber;
283
+ bottomPt: z.ZodNumber;
284
+ leftPt: z.ZodNumber;
285
+ }, z.core.$strip>;
286
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
287
+ }, z.core.$strip>>;
288
+ }, z.core.$strip>, z.ZodObject<{
289
+ kind: z.ZodLiteral<"presentation">;
290
+ formatVersion: z.ZodLiteral<1>;
291
+ metadata: z.ZodObject<{
292
+ title: z.ZodOptional<z.ZodString>;
293
+ author: z.ZodOptional<z.ZodString>;
294
+ subject: z.ZodOptional<z.ZodString>;
295
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
296
+ creator: z.ZodOptional<z.ZodString>;
297
+ producer: z.ZodOptional<z.ZodString>;
298
+ createdIso: z.ZodOptional<z.ZodString>;
299
+ modifiedIso: z.ZodOptional<z.ZodString>;
300
+ }, z.core.$strip>;
301
+ slides: z.ZodArray<z.ZodObject<{
302
+ size: z.ZodObject<{
303
+ widthPt: z.ZodNumber;
304
+ heightPt: z.ZodNumber;
305
+ }, z.core.$strip>;
306
+ shapes: z.ZodArray<z.ZodObject<{
307
+ name: z.ZodOptional<z.ZodString>;
308
+ frame: z.ZodObject<{
309
+ xPt: z.ZodNumber;
310
+ yPt: z.ZodNumber;
311
+ widthPt: z.ZodNumber;
312
+ heightPt: z.ZodNumber;
313
+ }, z.core.$strip>;
314
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
315
+ insetLeftPt: z.ZodNumber;
316
+ insetTopPt: z.ZodNumber;
317
+ insetRightPt: z.ZodNumber;
318
+ insetBottomPt: z.ZodNumber;
319
+ fontScale: z.ZodOptional<z.ZodNumber>;
320
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
321
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
322
+ }, z.core.$strip>>;
323
+ notes: z.ZodString;
324
+ }, z.core.$strip>>;
325
+ }, z.core.$strip>], "kind">;
326
+ type ContentDocument = z.infer<typeof ContentDocumentSchema>;
327
+ //#endregion
328
+ //#region src/layout.d.ts
329
+ declare const LAYOUT_FORMAT_VERSION = 1;
330
+ declare const LayoutTextSchema: z.ZodObject<{
331
+ kind: z.ZodLiteral<"text">;
332
+ text: z.ZodString;
333
+ xPt: z.ZodNumber;
334
+ yPt: z.ZodNumber;
335
+ font: z.ZodObject<{
336
+ family: z.ZodString;
337
+ weight: z.ZodEnum<{
338
+ normal: "normal";
339
+ bold: "bold";
340
+ }>;
341
+ style: z.ZodEnum<{
342
+ normal: "normal";
343
+ italic: "italic";
344
+ }>;
345
+ }, z.core.$strip>;
346
+ sizePt: z.ZodNumber;
347
+ color: z.ZodObject<{
348
+ r: z.ZodNumber;
349
+ g: z.ZodNumber;
350
+ b: z.ZodNumber;
351
+ }, z.core.$strip>;
352
+ widthPt: z.ZodOptional<z.ZodNumber>;
353
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
354
+ underline: z.ZodOptional<z.ZodBoolean>;
355
+ }, z.core.$strip>;
356
+ type LayoutText = z.infer<typeof LayoutTextSchema>;
357
+ declare const LayoutImageSchema: z.ZodObject<{
358
+ kind: z.ZodLiteral<"image">;
359
+ imageId: z.ZodString;
360
+ xPt: z.ZodNumber;
361
+ yPt: z.ZodNumber;
362
+ widthPt: z.ZodNumber;
363
+ heightPt: z.ZodNumber;
364
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
365
+ }, z.core.$strip>;
366
+ type LayoutImage = z.infer<typeof LayoutImageSchema>;
367
+ declare const LayoutRectSchema: z.ZodObject<{
368
+ kind: z.ZodLiteral<"rect">;
369
+ xPt: z.ZodNumber;
370
+ yPt: z.ZodNumber;
371
+ widthPt: z.ZodNumber;
372
+ heightPt: z.ZodNumber;
373
+ fill: z.ZodOptional<z.ZodObject<{
374
+ r: z.ZodNumber;
375
+ g: z.ZodNumber;
376
+ b: z.ZodNumber;
377
+ }, z.core.$strip>>;
378
+ stroke: z.ZodOptional<z.ZodObject<{
379
+ color: z.ZodObject<{
380
+ r: z.ZodNumber;
381
+ g: z.ZodNumber;
382
+ b: z.ZodNumber;
383
+ }, z.core.$strip>;
384
+ widthPt: z.ZodNumber;
385
+ }, z.core.$strip>>;
386
+ }, z.core.$strip>;
387
+ type LayoutRect = z.infer<typeof LayoutRectSchema>;
388
+ declare const LayoutLineSchema: z.ZodObject<{
389
+ kind: z.ZodLiteral<"line">;
390
+ x1Pt: z.ZodNumber;
391
+ y1Pt: z.ZodNumber;
392
+ x2Pt: z.ZodNumber;
393
+ y2Pt: z.ZodNumber;
394
+ color: z.ZodObject<{
395
+ r: z.ZodNumber;
396
+ g: z.ZodNumber;
397
+ b: z.ZodNumber;
398
+ }, z.core.$strip>;
399
+ widthPt: z.ZodNumber;
400
+ }, z.core.$strip>;
401
+ type LayoutLine = z.infer<typeof LayoutLineSchema>;
402
+ declare const LayoutEllipseSchema: z.ZodObject<{
403
+ kind: z.ZodLiteral<"ellipse">;
404
+ xPt: z.ZodNumber;
405
+ yPt: z.ZodNumber;
406
+ widthPt: z.ZodNumber;
407
+ heightPt: z.ZodNumber;
408
+ fill: z.ZodOptional<z.ZodObject<{
409
+ r: z.ZodNumber;
410
+ g: z.ZodNumber;
411
+ b: z.ZodNumber;
412
+ }, z.core.$strip>>;
413
+ stroke: z.ZodOptional<z.ZodObject<{
414
+ color: z.ZodObject<{
415
+ r: z.ZodNumber;
416
+ g: z.ZodNumber;
417
+ b: z.ZodNumber;
418
+ }, z.core.$strip>;
419
+ widthPt: z.ZodNumber;
420
+ }, z.core.$strip>>;
421
+ }, z.core.$strip>;
422
+ type LayoutEllipse = z.infer<typeof LayoutEllipseSchema>;
423
+ declare const LayoutLinkSchema: z.ZodObject<{
424
+ kind: z.ZodLiteral<"link">;
425
+ uri: z.ZodString;
426
+ xPt: z.ZodNumber;
427
+ yPt: z.ZodNumber;
428
+ widthPt: z.ZodNumber;
429
+ heightPt: z.ZodNumber;
430
+ }, z.core.$strip>;
431
+ type LayoutLink = z.infer<typeof LayoutLinkSchema>;
432
+ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
433
+ kind: z.ZodLiteral<"text">;
434
+ text: z.ZodString;
435
+ xPt: z.ZodNumber;
436
+ yPt: z.ZodNumber;
437
+ font: z.ZodObject<{
438
+ family: z.ZodString;
439
+ weight: z.ZodEnum<{
440
+ normal: "normal";
441
+ bold: "bold";
442
+ }>;
443
+ style: z.ZodEnum<{
444
+ normal: "normal";
445
+ italic: "italic";
446
+ }>;
447
+ }, z.core.$strip>;
448
+ sizePt: z.ZodNumber;
449
+ color: z.ZodObject<{
450
+ r: z.ZodNumber;
451
+ g: z.ZodNumber;
452
+ b: z.ZodNumber;
453
+ }, z.core.$strip>;
454
+ widthPt: z.ZodOptional<z.ZodNumber>;
455
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
456
+ underline: z.ZodOptional<z.ZodBoolean>;
457
+ }, z.core.$strip>, z.ZodObject<{
458
+ kind: z.ZodLiteral<"image">;
459
+ imageId: z.ZodString;
460
+ xPt: z.ZodNumber;
461
+ yPt: z.ZodNumber;
462
+ widthPt: z.ZodNumber;
463
+ heightPt: z.ZodNumber;
464
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ kind: z.ZodLiteral<"rect">;
467
+ xPt: z.ZodNumber;
468
+ yPt: z.ZodNumber;
469
+ widthPt: z.ZodNumber;
470
+ heightPt: z.ZodNumber;
471
+ fill: z.ZodOptional<z.ZodObject<{
472
+ r: z.ZodNumber;
473
+ g: z.ZodNumber;
474
+ b: z.ZodNumber;
475
+ }, z.core.$strip>>;
476
+ stroke: z.ZodOptional<z.ZodObject<{
477
+ color: z.ZodObject<{
478
+ r: z.ZodNumber;
479
+ g: z.ZodNumber;
480
+ b: z.ZodNumber;
481
+ }, z.core.$strip>;
482
+ widthPt: z.ZodNumber;
483
+ }, z.core.$strip>>;
484
+ }, z.core.$strip>, z.ZodObject<{
485
+ kind: z.ZodLiteral<"line">;
486
+ x1Pt: z.ZodNumber;
487
+ y1Pt: z.ZodNumber;
488
+ x2Pt: z.ZodNumber;
489
+ y2Pt: z.ZodNumber;
490
+ color: z.ZodObject<{
491
+ r: z.ZodNumber;
492
+ g: z.ZodNumber;
493
+ b: z.ZodNumber;
494
+ }, z.core.$strip>;
495
+ widthPt: z.ZodNumber;
496
+ }, z.core.$strip>, z.ZodObject<{
497
+ kind: z.ZodLiteral<"ellipse">;
498
+ xPt: z.ZodNumber;
499
+ yPt: z.ZodNumber;
500
+ widthPt: z.ZodNumber;
501
+ heightPt: z.ZodNumber;
502
+ fill: z.ZodOptional<z.ZodObject<{
503
+ r: z.ZodNumber;
504
+ g: z.ZodNumber;
505
+ b: z.ZodNumber;
506
+ }, z.core.$strip>>;
507
+ stroke: z.ZodOptional<z.ZodObject<{
508
+ color: z.ZodObject<{
509
+ r: z.ZodNumber;
510
+ g: z.ZodNumber;
511
+ b: z.ZodNumber;
512
+ }, z.core.$strip>;
513
+ widthPt: z.ZodNumber;
514
+ }, z.core.$strip>>;
515
+ }, z.core.$strip>, z.ZodObject<{
516
+ kind: z.ZodLiteral<"link">;
517
+ uri: z.ZodString;
518
+ xPt: z.ZodNumber;
519
+ yPt: z.ZodNumber;
520
+ widthPt: z.ZodNumber;
521
+ heightPt: z.ZodNumber;
522
+ }, z.core.$strip>], "kind">;
523
+ type LayoutItem = z.infer<typeof LayoutItemSchema>;
524
+ declare const LayoutPageSchema: z.ZodObject<{
525
+ widthPt: z.ZodNumber;
526
+ heightPt: z.ZodNumber;
527
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
528
+ kind: z.ZodLiteral<"text">;
529
+ text: z.ZodString;
530
+ xPt: z.ZodNumber;
531
+ yPt: z.ZodNumber;
532
+ font: z.ZodObject<{
533
+ family: z.ZodString;
534
+ weight: z.ZodEnum<{
535
+ normal: "normal";
536
+ bold: "bold";
537
+ }>;
538
+ style: z.ZodEnum<{
539
+ normal: "normal";
540
+ italic: "italic";
541
+ }>;
542
+ }, z.core.$strip>;
543
+ sizePt: z.ZodNumber;
544
+ color: z.ZodObject<{
545
+ r: z.ZodNumber;
546
+ g: z.ZodNumber;
547
+ b: z.ZodNumber;
548
+ }, z.core.$strip>;
549
+ widthPt: z.ZodOptional<z.ZodNumber>;
550
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
551
+ underline: z.ZodOptional<z.ZodBoolean>;
552
+ }, z.core.$strip>, z.ZodObject<{
553
+ kind: z.ZodLiteral<"image">;
554
+ imageId: z.ZodString;
555
+ xPt: z.ZodNumber;
556
+ yPt: z.ZodNumber;
557
+ widthPt: z.ZodNumber;
558
+ heightPt: z.ZodNumber;
559
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
560
+ }, z.core.$strip>, z.ZodObject<{
561
+ kind: z.ZodLiteral<"rect">;
562
+ xPt: z.ZodNumber;
563
+ yPt: z.ZodNumber;
564
+ widthPt: z.ZodNumber;
565
+ heightPt: z.ZodNumber;
566
+ fill: z.ZodOptional<z.ZodObject<{
567
+ r: z.ZodNumber;
568
+ g: z.ZodNumber;
569
+ b: z.ZodNumber;
570
+ }, z.core.$strip>>;
571
+ stroke: z.ZodOptional<z.ZodObject<{
572
+ color: z.ZodObject<{
573
+ r: z.ZodNumber;
574
+ g: z.ZodNumber;
575
+ b: z.ZodNumber;
576
+ }, z.core.$strip>;
577
+ widthPt: z.ZodNumber;
578
+ }, z.core.$strip>>;
579
+ }, z.core.$strip>, z.ZodObject<{
580
+ kind: z.ZodLiteral<"line">;
581
+ x1Pt: z.ZodNumber;
582
+ y1Pt: z.ZodNumber;
583
+ x2Pt: z.ZodNumber;
584
+ y2Pt: z.ZodNumber;
585
+ color: z.ZodObject<{
586
+ r: z.ZodNumber;
587
+ g: z.ZodNumber;
588
+ b: z.ZodNumber;
589
+ }, z.core.$strip>;
590
+ widthPt: z.ZodNumber;
591
+ }, z.core.$strip>, z.ZodObject<{
592
+ kind: z.ZodLiteral<"ellipse">;
593
+ xPt: z.ZodNumber;
594
+ yPt: z.ZodNumber;
595
+ widthPt: z.ZodNumber;
596
+ heightPt: z.ZodNumber;
597
+ fill: z.ZodOptional<z.ZodObject<{
598
+ r: z.ZodNumber;
599
+ g: z.ZodNumber;
600
+ b: z.ZodNumber;
601
+ }, z.core.$strip>>;
602
+ stroke: z.ZodOptional<z.ZodObject<{
603
+ color: z.ZodObject<{
604
+ r: z.ZodNumber;
605
+ g: z.ZodNumber;
606
+ b: z.ZodNumber;
607
+ }, z.core.$strip>;
608
+ widthPt: z.ZodNumber;
609
+ }, z.core.$strip>>;
610
+ }, z.core.$strip>, z.ZodObject<{
611
+ kind: z.ZodLiteral<"link">;
612
+ uri: z.ZodString;
613
+ xPt: z.ZodNumber;
614
+ yPt: z.ZodNumber;
615
+ widthPt: z.ZodNumber;
616
+ heightPt: z.ZodNumber;
617
+ }, z.core.$strip>], "kind">>;
618
+ notes: z.ZodOptional<z.ZodString>;
619
+ }, z.core.$strip>;
620
+ type LayoutPage = z.infer<typeof LayoutPageSchema>;
621
+ declare const LayoutImageAssetSchema: z.ZodObject<{
622
+ format: z.ZodEnum<{
623
+ png: "png";
624
+ jpeg: "jpeg";
625
+ }>;
626
+ base64: z.ZodString;
627
+ widthPx: z.ZodNumber;
628
+ heightPx: z.ZodNumber;
629
+ }, z.core.$strip>;
630
+ type LayoutImageAsset = z.infer<typeof LayoutImageAssetSchema>;
631
+ declare const LayoutDocumentSchema: z.ZodObject<{
632
+ formatVersion: z.ZodLiteral<1>;
633
+ metadata: z.ZodObject<{
634
+ title: z.ZodOptional<z.ZodString>;
635
+ author: z.ZodOptional<z.ZodString>;
636
+ subject: z.ZodOptional<z.ZodString>;
637
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
638
+ creator: z.ZodOptional<z.ZodString>;
639
+ producer: z.ZodOptional<z.ZodString>;
640
+ createdIso: z.ZodOptional<z.ZodString>;
641
+ modifiedIso: z.ZodOptional<z.ZodString>;
642
+ }, z.core.$strip>;
643
+ pages: z.ZodArray<z.ZodObject<{
644
+ widthPt: z.ZodNumber;
645
+ heightPt: z.ZodNumber;
646
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
647
+ kind: z.ZodLiteral<"text">;
648
+ text: z.ZodString;
649
+ xPt: z.ZodNumber;
650
+ yPt: z.ZodNumber;
651
+ font: z.ZodObject<{
652
+ family: z.ZodString;
653
+ weight: z.ZodEnum<{
654
+ normal: "normal";
655
+ bold: "bold";
656
+ }>;
657
+ style: z.ZodEnum<{
658
+ normal: "normal";
659
+ italic: "italic";
660
+ }>;
661
+ }, z.core.$strip>;
662
+ sizePt: z.ZodNumber;
663
+ color: z.ZodObject<{
664
+ r: z.ZodNumber;
665
+ g: z.ZodNumber;
666
+ b: z.ZodNumber;
667
+ }, z.core.$strip>;
668
+ widthPt: z.ZodOptional<z.ZodNumber>;
669
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
670
+ underline: z.ZodOptional<z.ZodBoolean>;
671
+ }, z.core.$strip>, z.ZodObject<{
672
+ kind: z.ZodLiteral<"image">;
673
+ imageId: z.ZodString;
674
+ xPt: z.ZodNumber;
675
+ yPt: z.ZodNumber;
676
+ widthPt: z.ZodNumber;
677
+ heightPt: z.ZodNumber;
678
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
679
+ }, z.core.$strip>, z.ZodObject<{
680
+ kind: z.ZodLiteral<"rect">;
681
+ xPt: z.ZodNumber;
682
+ yPt: z.ZodNumber;
683
+ widthPt: z.ZodNumber;
684
+ heightPt: z.ZodNumber;
685
+ fill: z.ZodOptional<z.ZodObject<{
686
+ r: z.ZodNumber;
687
+ g: z.ZodNumber;
688
+ b: z.ZodNumber;
689
+ }, z.core.$strip>>;
690
+ stroke: z.ZodOptional<z.ZodObject<{
691
+ color: z.ZodObject<{
692
+ r: z.ZodNumber;
693
+ g: z.ZodNumber;
694
+ b: z.ZodNumber;
695
+ }, z.core.$strip>;
696
+ widthPt: z.ZodNumber;
697
+ }, z.core.$strip>>;
698
+ }, z.core.$strip>, z.ZodObject<{
699
+ kind: z.ZodLiteral<"line">;
700
+ x1Pt: z.ZodNumber;
701
+ y1Pt: z.ZodNumber;
702
+ x2Pt: z.ZodNumber;
703
+ y2Pt: z.ZodNumber;
704
+ color: z.ZodObject<{
705
+ r: z.ZodNumber;
706
+ g: z.ZodNumber;
707
+ b: z.ZodNumber;
708
+ }, z.core.$strip>;
709
+ widthPt: z.ZodNumber;
710
+ }, z.core.$strip>, z.ZodObject<{
711
+ kind: z.ZodLiteral<"ellipse">;
712
+ xPt: z.ZodNumber;
713
+ yPt: z.ZodNumber;
714
+ widthPt: z.ZodNumber;
715
+ heightPt: z.ZodNumber;
716
+ fill: z.ZodOptional<z.ZodObject<{
717
+ r: z.ZodNumber;
718
+ g: z.ZodNumber;
719
+ b: z.ZodNumber;
720
+ }, z.core.$strip>>;
721
+ stroke: z.ZodOptional<z.ZodObject<{
722
+ color: z.ZodObject<{
723
+ r: z.ZodNumber;
724
+ g: z.ZodNumber;
725
+ b: z.ZodNumber;
726
+ }, z.core.$strip>;
727
+ widthPt: z.ZodNumber;
728
+ }, z.core.$strip>>;
729
+ }, z.core.$strip>, z.ZodObject<{
730
+ kind: z.ZodLiteral<"link">;
731
+ uri: z.ZodString;
732
+ xPt: z.ZodNumber;
733
+ yPt: z.ZodNumber;
734
+ widthPt: z.ZodNumber;
735
+ heightPt: z.ZodNumber;
736
+ }, z.core.$strip>], "kind">>;
737
+ notes: z.ZodOptional<z.ZodString>;
738
+ }, z.core.$strip>>;
739
+ images: z.ZodRecord<z.ZodString, z.ZodObject<{
740
+ format: z.ZodEnum<{
741
+ png: "png";
742
+ jpeg: "jpeg";
743
+ }>;
744
+ base64: z.ZodString;
745
+ widthPx: z.ZodNumber;
746
+ heightPx: z.ZodNumber;
747
+ }, z.core.$strip>>;
748
+ }, z.core.$strip>;
749
+ type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
750
+ //#endregion
751
+ export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentDocument, ContentDocumentSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSlide, ContentSlideSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, DEFAULT_LAYOUT_FONT, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutRect, LayoutRectSchema, LayoutText, LayoutTextSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };