@prismicio/types-internal 1.4.1 → 1.5.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/lib/content/CustomType.d.ts +2972 -0
  2. package/lib/content/CustomType.js +15 -0
  3. package/lib/content/fields/UIDContent.d.ts +7 -0
  4. package/lib/content/fields/UIDContent.js +11 -0
  5. package/lib/content/fields/index.d.ts +2990 -0
  6. package/lib/content/fields/index.js +19 -0
  7. package/lib/content/fields/nestable/EmbedContent.d.ts +1 -0
  8. package/lib/content/fields/nestable/EmbedContent.js +2 -1
  9. package/lib/content/fields/nestable/ImageContent.d.ts +25 -0
  10. package/lib/content/fields/nestable/ImageContent.js +2 -1
  11. package/lib/content/fields/nestable/LinkContent.d.ts +7 -0
  12. package/lib/content/fields/nestable/LinkContent.js +8 -1
  13. package/lib/content/fields/nestable/NestableContent.d.ts +17 -0
  14. package/lib/content/fields/nestable/NestableContent.js +13 -1
  15. package/lib/content/fields/nestable/RichTextContent.d.ts +249 -0
  16. package/lib/content/fields/nestable/RichTextContent.js +6 -1
  17. package/lib/content/fields/slices/CompositeSliceContent.d.ts +743 -0
  18. package/lib/content/fields/slices/CompositeSliceContent.js +14 -0
  19. package/lib/content/fields/slices/RepeatableContent.d.ts +371 -0
  20. package/lib/content/fields/slices/RepeatableContent.js +16 -0
  21. package/lib/content/fields/slices/SharedSliceContent.js +2 -2
  22. package/lib/content/fields/slices/SimpleSliceContent.d.ts +741 -0
  23. package/lib/content/fields/slices/SimpleSliceContent.js +8 -0
  24. package/lib/content/fields/slices/SlicesContent.d.ts +4453 -0
  25. package/lib/content/fields/slices/SlicesContent.js +24 -0
  26. package/lib/content/fields/slices/index.d.ts +3 -0
  27. package/lib/content/fields/slices/index.js +3 -0
  28. package/lib/content/index.d.ts +1 -0
  29. package/lib/content/index.js +1 -0
  30. package/lib/customtypes/index.d.ts +1 -1
  31. package/lib/customtypes/index.js +1 -1
  32. package/package.json +2 -1
  33. package/src/content/CustomType.ts +21 -0
  34. package/src/content/fields/UIDContent.ts +11 -0
  35. package/src/content/fields/index.ts +24 -0
  36. package/src/content/fields/nestable/EmbedContent.ts +3 -2
  37. package/src/content/fields/nestable/ImageContent.ts +4 -0
  38. package/src/content/fields/nestable/LinkContent.ts +8 -0
  39. package/src/content/fields/nestable/NestableContent.ts +26 -7
  40. package/src/content/fields/nestable/RichTextContent.ts +18 -0
  41. package/src/content/fields/slices/CompositeSliceContent.ts +14 -0
  42. package/src/content/fields/slices/RepeatableContent.ts +15 -0
  43. package/src/content/fields/slices/SharedSliceContent.ts +2 -2
  44. package/src/content/fields/slices/SimpleSliceContent.ts +7 -0
  45. package/src/content/fields/slices/SlicesContent.ts +28 -0
  46. package/src/content/fields/slices/index.ts +3 -0
  47. package/src/content/index.ts +1 -0
  48. package/src/customtypes/index.ts +1 -1
@@ -0,0 +1,741 @@
1
+ import * as t from "io-ts";
2
+ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
3
+ __TYPE__: t.LiteralC<"BooleanContent">;
4
+ value: t.BooleanC;
5
+ }>>, t.IntersectionC<[t.Type<{
6
+ embed_url: string;
7
+ type: string;
8
+ } & {
9
+ version?: string | number | null;
10
+ title?: string | null | undefined;
11
+ author_name?: string | null | undefined;
12
+ author_url?: string | null | undefined;
13
+ provider_name?: string | null | undefined;
14
+ provider_url?: string | null | undefined;
15
+ cache_age?: string | number | null;
16
+ thumbnail_url?: string | null | undefined;
17
+ thumbnail_width?: number | null | undefined;
18
+ thumbnail_height?: number | null | undefined;
19
+ html?: string | null | undefined;
20
+ }, {
21
+ embed_url: string;
22
+ type: string;
23
+ } & {
24
+ version?: string | number | null;
25
+ title?: string | null | undefined;
26
+ author_name?: string | null | undefined;
27
+ author_url?: string | null | undefined;
28
+ provider_name?: string | null | undefined;
29
+ provider_url?: string | null | undefined;
30
+ cache_age?: string | number | null;
31
+ thumbnail_url?: string | null | undefined;
32
+ thumbnail_width?: number | null | undefined;
33
+ thumbnail_height?: number | null | undefined;
34
+ html?: string | null | undefined;
35
+ } & {
36
+ __TYPE__: "EmbedContent";
37
+ }, unknown>, t.ExactC<t.TypeC<{
38
+ __TYPE__: t.LiteralC<"EmbedContent">;
39
+ all: t.UnknownC;
40
+ }>>]>, t.ExactC<t.TypeC<{
41
+ type: t.KeyofC<{
42
+ Text: null;
43
+ Date: null;
44
+ Timestamp: null;
45
+ Color: null;
46
+ Number: null;
47
+ Range: null;
48
+ Select: null;
49
+ }>;
50
+ value: t.Type<string, string, unknown>;
51
+ __TYPE__: t.LiteralC<"FieldContent">;
52
+ }>>, t.IntersectionC<[t.Type<{
53
+ position: {
54
+ lat: number;
55
+ lng: number;
56
+ };
57
+ }, {
58
+ position: {
59
+ lat: number;
60
+ lng: number;
61
+ };
62
+ } & {
63
+ __TYPE__: "GeoPointContent";
64
+ }, unknown>, t.ExactC<t.TypeC<{
65
+ __TYPE__: t.LiteralC<"GeoPointContent">;
66
+ }>>]>, t.IntersectionC<[t.Type<{
67
+ origin: {
68
+ id: string;
69
+ url: string;
70
+ width: number;
71
+ height: number;
72
+ };
73
+ width: number;
74
+ height: number;
75
+ edit: {
76
+ zoom: number;
77
+ crop: {
78
+ x: number;
79
+ y: number;
80
+ };
81
+ background: string;
82
+ };
83
+ } & {
84
+ url?: string;
85
+ credits?: string | null;
86
+ alt?: string | null;
87
+ provider?: string | null | undefined;
88
+ } & {
89
+ thumbnails?: {
90
+ [x: string]: {
91
+ origin: {
92
+ id: string;
93
+ url: string;
94
+ width: number;
95
+ height: number;
96
+ };
97
+ width: number;
98
+ height: number;
99
+ edit: {
100
+ zoom: number;
101
+ crop: {
102
+ x: number;
103
+ y: number;
104
+ };
105
+ background: string;
106
+ };
107
+ } & {
108
+ url?: string;
109
+ credits?: string | null;
110
+ alt?: string | null;
111
+ provider?: string | null | undefined;
112
+ };
113
+ };
114
+ }, {
115
+ origin: {
116
+ id: string;
117
+ url: string;
118
+ width: number;
119
+ height: number;
120
+ };
121
+ width: number;
122
+ height: number;
123
+ edit: {
124
+ zoom: number;
125
+ crop: {
126
+ x: number;
127
+ y: number;
128
+ };
129
+ background: string;
130
+ };
131
+ } & {
132
+ url?: string;
133
+ credits?: string | null;
134
+ alt?: string | null;
135
+ provider?: string | null | undefined;
136
+ } & {
137
+ thumbnails?: {
138
+ [x: string]: {
139
+ origin: {
140
+ id: string;
141
+ url: string;
142
+ width: number;
143
+ height: number;
144
+ };
145
+ width: number;
146
+ height: number;
147
+ edit: {
148
+ zoom: number;
149
+ crop: {
150
+ x: number;
151
+ y: number;
152
+ };
153
+ background: string;
154
+ };
155
+ } & {
156
+ url?: string;
157
+ credits?: string | null;
158
+ alt?: string | null;
159
+ provider?: string | null | undefined;
160
+ };
161
+ };
162
+ } & {
163
+ __TYPE__: "ImageContent";
164
+ }, unknown>, t.ExactC<t.TypeC<{
165
+ __TYPE__: t.LiteralC<"ImageContent">;
166
+ }>>]>, t.ExactC<t.TypeC<{
167
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
168
+ value: t.StringC;
169
+ }>>, t.ExactC<t.TypeC<{
170
+ __TYPE__: t.LiteralC<"LinkContent">;
171
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
172
+ __TYPE__: t.LiteralC<"ImageLink">;
173
+ }>>, t.Type<{
174
+ id: string;
175
+ url: string;
176
+ height: string;
177
+ width: string;
178
+ size: string;
179
+ name: string;
180
+ kind: string;
181
+ } & {
182
+ date?: string | null | undefined;
183
+ }, {
184
+ id: string;
185
+ url: string;
186
+ height: string;
187
+ width: string;
188
+ size: string;
189
+ name: string;
190
+ kind: string;
191
+ } & {
192
+ date?: string | null | undefined;
193
+ } & {
194
+ __TYPE__: "ImageLink";
195
+ }, unknown>]>, t.IntersectionC<[t.Type<{
196
+ id: string;
197
+ url: string;
198
+ name: string;
199
+ kind: string;
200
+ } & {
201
+ date?: string | null | undefined;
202
+ size?: string;
203
+ }, {
204
+ readonly size: string;
205
+ readonly __TYPE__: "FileLink";
206
+ readonly id: string;
207
+ readonly url: string;
208
+ readonly name: string;
209
+ readonly kind: string;
210
+ readonly date?: string | null | undefined;
211
+ }, unknown>, t.ExactC<t.TypeC<{
212
+ __TYPE__: t.LiteralC<"FileLink">;
213
+ size: t.StringC;
214
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
215
+ __TYPE__: t.LiteralC<"DocumentLink">;
216
+ }>>, t.Type<{
217
+ id: string;
218
+ }, {
219
+ id: string;
220
+ } & {
221
+ __TYPE__: "DocumentLink";
222
+ }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
223
+ __TYPE__: t.LiteralC<"ExternalLink">;
224
+ }>>, t.Type<{
225
+ url: string;
226
+ } & {
227
+ kind?: "web";
228
+ target?: string | null | undefined;
229
+ preview?: {
230
+ title?: string;
231
+ } | null | undefined;
232
+ }, {
233
+ url: string;
234
+ } & {
235
+ kind?: "web";
236
+ target?: string | null | undefined;
237
+ preview?: {
238
+ title?: string;
239
+ } | null | undefined;
240
+ } & {
241
+ __TYPE__: "ExternalLink";
242
+ }, unknown>]>]>;
243
+ }>>, t.ExactC<t.TypeC<{
244
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
245
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
246
+ type: t.LiteralC<"image">;
247
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
248
+ origin: t.ExactC<t.TypeC<{
249
+ id: t.StringC;
250
+ url: t.StringC;
251
+ width: t.NumberC;
252
+ height: t.NumberC;
253
+ }>>;
254
+ width: t.NumberC;
255
+ height: t.NumberC;
256
+ edit: t.TypeC<{
257
+ zoom: t.NumberC;
258
+ crop: t.TypeC<{
259
+ x: t.NumberC;
260
+ y: t.NumberC;
261
+ }>;
262
+ background: t.StringC;
263
+ }>;
264
+ }>, t.PartialC<{
265
+ url: t.StringC;
266
+ credits: t.Type<string | null, string | null, unknown>;
267
+ alt: t.Type<string | null, string | null, unknown>;
268
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
269
+ }>]>>, t.PartialC<{
270
+ linkTo: t.UnionC<[t.Type<{
271
+ id: string;
272
+ } | ({
273
+ url: string;
274
+ } & {
275
+ kind?: "web";
276
+ target?: string | null | undefined;
277
+ preview?: {
278
+ title?: string;
279
+ } | null | undefined;
280
+ }) | ({
281
+ id: string;
282
+ url: string;
283
+ name: string;
284
+ kind: string;
285
+ } & {
286
+ date?: string | null | undefined;
287
+ size?: string;
288
+ }) | ({
289
+ id: string;
290
+ url: string;
291
+ height: string;
292
+ width: string;
293
+ size: string;
294
+ name: string;
295
+ kind: string;
296
+ } & {
297
+ date?: string | null | undefined;
298
+ }), ({
299
+ id: string;
300
+ } & {
301
+ __TYPE__: "DocumentLink";
302
+ }) | ({
303
+ url: string;
304
+ } & {
305
+ kind?: "web";
306
+ target?: string | null | undefined;
307
+ preview?: {
308
+ title?: string;
309
+ } | null | undefined;
310
+ } & {
311
+ __TYPE__: "ExternalLink";
312
+ }) | {
313
+ readonly size: string;
314
+ readonly __TYPE__: "FileLink";
315
+ readonly id: string;
316
+ readonly url: string;
317
+ readonly name: string;
318
+ readonly kind: string;
319
+ readonly date?: string | null | undefined;
320
+ } | ({
321
+ id: string;
322
+ url: string;
323
+ height: string;
324
+ width: string;
325
+ size: string;
326
+ name: string;
327
+ kind: string;
328
+ } & {
329
+ date?: string | null | undefined;
330
+ } & {
331
+ __TYPE__: "ImageLink";
332
+ }), unknown>, t.NullC, t.UndefinedC]>;
333
+ }>]>;
334
+ }>, t.PartialC<{
335
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
336
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
337
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
338
+ type: t.LiteralC<"embed">;
339
+ data: t.Type<import("../../../documents/widgets/nestable").EmbedContentO, unknown, unknown>;
340
+ }>, t.PartialC<{
341
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
342
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
343
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
344
+ type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
345
+ content: t.IntersectionC<[t.TypeC<{
346
+ text: t.StringC;
347
+ }>, t.PartialC<{
348
+ spans: t.Type<({
349
+ data?: unknown;
350
+ } & {
351
+ start: number;
352
+ end: number;
353
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
354
+ })[], ({
355
+ data?: unknown;
356
+ } & {
357
+ start: number;
358
+ end: number;
359
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
360
+ })[], unknown>;
361
+ }>]>;
362
+ }>, t.PartialC<{
363
+ label: t.StringC;
364
+ direction: t.StringC;
365
+ }>]>>]>>;
366
+ }>>, t.ExactC<t.TypeC<{
367
+ __TYPE__: t.LiteralC<"SeparatorContent">;
368
+ }>>]>, t.ExactC<t.TypeC<{
369
+ __TYPE__: t.LiteralC<"GroupContentType">;
370
+ value: t.ArrayC<t.ExactC<t.TypeC<{
371
+ __TYPE__: t.LiteralC<"GroupItemContent">;
372
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
373
+ __TYPE__: t.LiteralC<"BooleanContent">;
374
+ value: t.BooleanC;
375
+ }>>, t.IntersectionC<[t.Type<{
376
+ embed_url: string;
377
+ type: string;
378
+ } & {
379
+ version?: string | number | null;
380
+ title?: string | null | undefined;
381
+ author_name?: string | null | undefined;
382
+ author_url?: string | null | undefined;
383
+ provider_name?: string | null | undefined;
384
+ provider_url?: string | null | undefined;
385
+ cache_age?: string | number | null;
386
+ thumbnail_url?: string | null | undefined;
387
+ thumbnail_width?: number | null | undefined;
388
+ thumbnail_height?: number | null | undefined;
389
+ html?: string | null | undefined;
390
+ }, {
391
+ embed_url: string;
392
+ type: string;
393
+ } & {
394
+ version?: string | number | null;
395
+ title?: string | null | undefined;
396
+ author_name?: string | null | undefined;
397
+ author_url?: string | null | undefined;
398
+ provider_name?: string | null | undefined;
399
+ provider_url?: string | null | undefined;
400
+ cache_age?: string | number | null;
401
+ thumbnail_url?: string | null | undefined;
402
+ thumbnail_width?: number | null | undefined;
403
+ thumbnail_height?: number | null | undefined;
404
+ html?: string | null | undefined;
405
+ } & {
406
+ __TYPE__: "EmbedContent";
407
+ }, unknown>, t.ExactC<t.TypeC<{
408
+ __TYPE__: t.LiteralC<"EmbedContent">;
409
+ all: t.UnknownC;
410
+ }>>]>, t.ExactC<t.TypeC<{
411
+ type: t.KeyofC<{
412
+ Text: null;
413
+ Date: null;
414
+ Timestamp: null;
415
+ Color: null;
416
+ Number: null;
417
+ Range: null;
418
+ Select: null;
419
+ }>;
420
+ value: t.Type<string, string, unknown>;
421
+ __TYPE__: t.LiteralC<"FieldContent">;
422
+ }>>, t.IntersectionC<[t.Type<{
423
+ position: {
424
+ lat: number;
425
+ lng: number;
426
+ };
427
+ }, {
428
+ position: {
429
+ lat: number;
430
+ lng: number;
431
+ };
432
+ } & {
433
+ __TYPE__: "GeoPointContent";
434
+ }, unknown>, t.ExactC<t.TypeC<{
435
+ __TYPE__: t.LiteralC<"GeoPointContent">;
436
+ }>>]>, t.IntersectionC<[t.Type<{
437
+ origin: {
438
+ id: string;
439
+ url: string;
440
+ width: number;
441
+ height: number;
442
+ };
443
+ width: number;
444
+ height: number;
445
+ edit: {
446
+ zoom: number;
447
+ crop: {
448
+ x: number;
449
+ y: number;
450
+ };
451
+ background: string;
452
+ };
453
+ } & {
454
+ url?: string;
455
+ credits?: string | null;
456
+ alt?: string | null;
457
+ provider?: string | null | undefined;
458
+ } & {
459
+ thumbnails?: {
460
+ [x: string]: {
461
+ origin: {
462
+ id: string;
463
+ url: string;
464
+ width: number;
465
+ height: number;
466
+ };
467
+ width: number;
468
+ height: number;
469
+ edit: {
470
+ zoom: number;
471
+ crop: {
472
+ x: number;
473
+ y: number;
474
+ };
475
+ background: string;
476
+ };
477
+ } & {
478
+ url?: string;
479
+ credits?: string | null;
480
+ alt?: string | null;
481
+ provider?: string | null | undefined;
482
+ };
483
+ };
484
+ }, {
485
+ origin: {
486
+ id: string;
487
+ url: string;
488
+ width: number;
489
+ height: number;
490
+ };
491
+ width: number;
492
+ height: number;
493
+ edit: {
494
+ zoom: number;
495
+ crop: {
496
+ x: number;
497
+ y: number;
498
+ };
499
+ background: string;
500
+ };
501
+ } & {
502
+ url?: string;
503
+ credits?: string | null;
504
+ alt?: string | null;
505
+ provider?: string | null | undefined;
506
+ } & {
507
+ thumbnails?: {
508
+ [x: string]: {
509
+ origin: {
510
+ id: string;
511
+ url: string;
512
+ width: number;
513
+ height: number;
514
+ };
515
+ width: number;
516
+ height: number;
517
+ edit: {
518
+ zoom: number;
519
+ crop: {
520
+ x: number;
521
+ y: number;
522
+ };
523
+ background: string;
524
+ };
525
+ } & {
526
+ url?: string;
527
+ credits?: string | null;
528
+ alt?: string | null;
529
+ provider?: string | null | undefined;
530
+ };
531
+ };
532
+ } & {
533
+ __TYPE__: "ImageContent";
534
+ }, unknown>, t.ExactC<t.TypeC<{
535
+ __TYPE__: t.LiteralC<"ImageContent">;
536
+ }>>]>, t.ExactC<t.TypeC<{
537
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
538
+ value: t.StringC;
539
+ }>>, t.ExactC<t.TypeC<{
540
+ __TYPE__: t.LiteralC<"LinkContent">;
541
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
542
+ __TYPE__: t.LiteralC<"ImageLink">;
543
+ }>>, t.Type<{
544
+ id: string;
545
+ url: string;
546
+ height: string;
547
+ width: string;
548
+ size: string;
549
+ name: string;
550
+ kind: string;
551
+ } & {
552
+ date?: string | null | undefined;
553
+ }, {
554
+ id: string;
555
+ url: string;
556
+ height: string;
557
+ width: string;
558
+ size: string;
559
+ name: string;
560
+ kind: string;
561
+ } & {
562
+ date?: string | null | undefined;
563
+ } & {
564
+ __TYPE__: "ImageLink";
565
+ }, unknown>]>, t.IntersectionC<[t.Type<{
566
+ id: string;
567
+ url: string;
568
+ name: string;
569
+ kind: string;
570
+ } & {
571
+ date?: string | null | undefined;
572
+ size?: string;
573
+ }, {
574
+ readonly size: string;
575
+ readonly __TYPE__: "FileLink";
576
+ readonly id: string;
577
+ readonly url: string;
578
+ readonly name: string;
579
+ readonly kind: string;
580
+ readonly date?: string | null | undefined;
581
+ }, unknown>, t.ExactC<t.TypeC<{
582
+ __TYPE__: t.LiteralC<"FileLink">;
583
+ size: t.StringC;
584
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
585
+ __TYPE__: t.LiteralC<"DocumentLink">;
586
+ }>>, t.Type<{
587
+ id: string;
588
+ }, {
589
+ id: string;
590
+ } & {
591
+ __TYPE__: "DocumentLink";
592
+ }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
593
+ __TYPE__: t.LiteralC<"ExternalLink">;
594
+ }>>, t.Type<{
595
+ url: string;
596
+ } & {
597
+ kind?: "web";
598
+ target?: string | null | undefined;
599
+ preview?: {
600
+ title?: string;
601
+ } | null | undefined;
602
+ }, {
603
+ url: string;
604
+ } & {
605
+ kind?: "web";
606
+ target?: string | null | undefined;
607
+ preview?: {
608
+ title?: string;
609
+ } | null | undefined;
610
+ } & {
611
+ __TYPE__: "ExternalLink";
612
+ }, unknown>]>]>;
613
+ }>>, t.ExactC<t.TypeC<{
614
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
615
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
616
+ type: t.LiteralC<"image">;
617
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
618
+ origin: t.ExactC<t.TypeC<{
619
+ id: t.StringC;
620
+ url: t.StringC;
621
+ width: t.NumberC;
622
+ height: t.NumberC;
623
+ }>>;
624
+ width: t.NumberC;
625
+ height: t.NumberC;
626
+ edit: t.TypeC<{
627
+ zoom: t.NumberC;
628
+ crop: t.TypeC<{
629
+ x: t.NumberC;
630
+ y: t.NumberC;
631
+ }>;
632
+ background: t.StringC;
633
+ }>;
634
+ }>, t.PartialC<{
635
+ url: t.StringC;
636
+ credits: t.Type<string | null, string | null, unknown>;
637
+ alt: t.Type<string | null, string | null, unknown>;
638
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
639
+ }>]>>, t.PartialC<{
640
+ linkTo: t.UnionC<[t.Type<{
641
+ id: string;
642
+ } | ({
643
+ url: string;
644
+ } & {
645
+ kind?: "web";
646
+ target?: string | null | undefined;
647
+ preview?: {
648
+ title?: string;
649
+ } | null | undefined;
650
+ }) | ({
651
+ id: string;
652
+ url: string;
653
+ name: string;
654
+ kind: string;
655
+ } & {
656
+ date?: string | null | undefined;
657
+ size?: string;
658
+ }) | ({
659
+ id: string;
660
+ url: string;
661
+ height: string;
662
+ width: string;
663
+ size: string;
664
+ name: string;
665
+ kind: string;
666
+ } & {
667
+ date?: string | null | undefined;
668
+ }), ({
669
+ id: string;
670
+ } & {
671
+ __TYPE__: "DocumentLink";
672
+ }) | ({
673
+ url: string;
674
+ } & {
675
+ kind?: "web";
676
+ target?: string | null | undefined;
677
+ preview?: {
678
+ title?: string;
679
+ } | null | undefined;
680
+ } & {
681
+ __TYPE__: "ExternalLink";
682
+ }) | {
683
+ readonly size: string;
684
+ readonly __TYPE__: "FileLink";
685
+ readonly id: string;
686
+ readonly url: string;
687
+ readonly name: string;
688
+ readonly kind: string;
689
+ readonly date?: string | null | undefined;
690
+ } | ({
691
+ id: string;
692
+ url: string;
693
+ height: string;
694
+ width: string;
695
+ size: string;
696
+ name: string;
697
+ kind: string;
698
+ } & {
699
+ date?: string | null | undefined;
700
+ } & {
701
+ __TYPE__: "ImageLink";
702
+ }), unknown>, t.NullC, t.UndefinedC]>;
703
+ }>]>;
704
+ }>, t.PartialC<{
705
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
706
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
707
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
708
+ type: t.LiteralC<"embed">;
709
+ data: t.Type<import("../../../documents/widgets/nestable").EmbedContentO, unknown, unknown>;
710
+ }>, t.PartialC<{
711
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
712
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
713
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
714
+ type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
715
+ content: t.IntersectionC<[t.TypeC<{
716
+ text: t.StringC;
717
+ }>, t.PartialC<{
718
+ spans: t.Type<({
719
+ data?: unknown;
720
+ } & {
721
+ start: number;
722
+ end: number;
723
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
724
+ })[], ({
725
+ data?: unknown;
726
+ } & {
727
+ start: number;
728
+ end: number;
729
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
730
+ })[], unknown>;
731
+ }>]>;
732
+ }>, t.PartialC<{
733
+ label: t.StringC;
734
+ direction: t.StringC;
735
+ }>]>>]>>;
736
+ }>>, t.ExactC<t.TypeC<{
737
+ __TYPE__: t.LiteralC<"SeparatorContent">;
738
+ }>>]>]>>;
739
+ }>>>;
740
+ }>>]>;
741
+ export declare type SimpleSliceContent = t.TypeOf<typeof SimpleSliceContent>;