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