@inkbar/react 0.2.0 → 0.4.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.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
2
- import { Annotation, AnnotationChange, AnnotationDefaults, AnnotationDocument, AnnotationInput, ConfidenceBucket, DocumentSource, ImportOptions, InkDocument, InkError, InkStatus, PageInfo, PdfAssets, Readable } from "@inkbar/core";
3
- import { AnnotationSlotProps, AnnotationSlotProps as AnnotationSlotProps$1, AnnotationState, LayoutMode, NotePopoverSlotProps, NotePopoverSlotProps as NotePopoverSlotProps$1, PageMount, SuggestionCardSlotProps, SuggestionCardSlotProps as SuggestionCardSlotProps$1, ToolController, ToolId, ViewRotation, Viewport, ZoomValue } from "@inkbar/core/dom";
2
+ import { Annotation, AnnotationChange, AnnotationDefaults, AnnotationDocument, AnnotationInput, AnnotationPatch, ConfidenceBucket, CurrentStyle, DocumentSource, ImportOptions, InkDocument, InkError, InkStatus, PageInfo, PdfAssets, Readable, SignatureLibrary, SignatureStore, SignatureTemplate, StyleGroup, StyleKey, StyleProps } from "@inkbar/core";
3
+ import { AnnotationSlotProps, AnnotationSlotProps as AnnotationSlotProps$1, AnnotationState, ColorProperty, LayoutMode, PageMount, SuggestionCardSlotProps, SuggestionCardSlotProps as SuggestionCardSlotProps$1, ThreadPopoverSlotProps, ThreadPopoverSlotProps as ThreadPopoverSlotProps$1, Tool, ToolController, ToolId, ToolOptions, ToolStyle, ViewRotation, Viewport, ZoomValue } from "@inkbar/core/dom";
4
4
  import { Select } from "radix-ui";
5
5
  import { IconNode } from "@inkbar/icons";
6
6
  //#region src/context.d.ts
@@ -32,6 +32,18 @@ interface InkContext {
32
32
  /** Desired tool; InkViewport applies it to the controller. */
33
33
  tool: ToolId;
34
34
  setTool: (id: ToolId) => void;
35
+ /** Host tools from InkRoot's `tools` prop; InkViewport registers them. */
36
+ hostTools: Tool[] | undefined;
37
+ /** The font families text boxes offer: InkRoot's `fonts`, else `FONT_FAMILIES`. */
38
+ fonts: readonly string[];
39
+ /** The tools' options for InkRoot's life, so they persist across documents. */
40
+ toolOptions: ToolOptions;
41
+ /** The saved signatures, from InkRoot's `signatures` store (memory by default). */
42
+ signatures: SignatureLibrary;
43
+ /** The fonts a typed signature offers: InkRoot's `signatureFonts`, else `SIGNATURE_FONTS`. */
44
+ signatureFonts: readonly string[];
45
+ /** The open document's tool style; `null` while no document is open. */
46
+ toolStyle: ToolStyle | null;
35
47
  /** Desired zoom and page from the host's props; InkViewport applies and reports back. */
36
48
  zoomModel: ZoomValue | undefined;
37
49
  pageModel: number | undefined;
@@ -109,6 +121,8 @@ export declare function useAnnotations(): {
109
121
  contents?: string | undefined;
110
122
  inReplyTo?: string | undefined;
111
123
  locked?: boolean | undefined;
124
+ subject?: string | undefined;
125
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
112
126
  custom?: Record<string, unknown> | undefined;
113
127
  } | {
114
128
  id: string;
@@ -124,12 +138,14 @@ export declare function useAnnotations(): {
124
138
  createdAt: string;
125
139
  modifiedAt: string;
126
140
  source: "session" | "pdf";
127
- type: "note";
128
- icon: "note" | "comment" | "help" | "insert" | "key" | "paragraph";
141
+ type: "text";
142
+ icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
129
143
  author?: string | undefined;
130
144
  contents?: string | undefined;
131
145
  inReplyTo?: string | undefined;
132
146
  locked?: boolean | undefined;
147
+ subject?: string | undefined;
148
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
133
149
  custom?: Record<string, unknown> | undefined;
134
150
  } | {
135
151
  id: string;
@@ -140,25 +156,73 @@ export declare function useAnnotations(): {
140
156
  width: number;
141
157
  height: number;
142
158
  };
143
- color: string;
144
159
  opacity: number;
145
160
  createdAt: string;
146
161
  modifiedAt: string;
147
162
  source: "session" | "pdf";
148
- type: "freeText";
149
- text: string;
150
- fontSize: number;
151
- fontFamily: string;
152
- align: "left" | "center" | "right";
163
+ type: "freetext";
164
+ contents: string;
165
+ width: number;
166
+ defaultStyle: {
167
+ fontFamily: string;
168
+ fontSize: number;
169
+ color: string;
170
+ textAlign: "left" | "right" | "center" | "justify";
171
+ fontWeight?: "bold" | undefined;
172
+ fontStyle?: "italic" | undefined;
173
+ textDecoration?: "underline" | undefined;
174
+ align?: undefined;
175
+ };
153
176
  author?: string | undefined;
154
- contents?: string | undefined;
155
177
  inReplyTo?: string | undefined;
156
178
  locked?: boolean | undefined;
179
+ subject?: string | undefined;
180
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
157
181
  custom?: Record<string, unknown> | undefined;
182
+ color?: string | undefined;
183
+ borderColor?: string | undefined;
184
+ dashes?: number[] | undefined;
185
+ cornerRadius?: number | undefined;
186
+ fringe?: {
187
+ left: number;
188
+ top: number;
189
+ right: number;
190
+ bottom: number;
191
+ } | undefined;
158
192
  callout?: {
159
193
  x: number;
160
194
  y: number;
161
195
  }[] | undefined;
196
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
197
+ fontFamily?: undefined;
198
+ fontSize?: undefined;
199
+ align?: undefined;
200
+ } | {
201
+ id: string;
202
+ page: number;
203
+ rect: {
204
+ x: number;
205
+ y: number;
206
+ width: number;
207
+ height: number;
208
+ };
209
+ color: string;
210
+ opacity: number;
211
+ createdAt: string;
212
+ modifiedAt: string;
213
+ source: "session" | "pdf";
214
+ width: number;
215
+ type: "square";
216
+ author?: string | undefined;
217
+ contents?: string | undefined;
218
+ inReplyTo?: string | undefined;
219
+ locked?: boolean | undefined;
220
+ subject?: string | undefined;
221
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
222
+ custom?: Record<string, unknown> | undefined;
223
+ cornerRadius?: number | undefined;
224
+ dashes?: number[] | undefined;
225
+ interiorColor?: string | undefined;
162
226
  } | {
163
227
  id: string;
164
228
  page: number;
@@ -173,14 +237,18 @@ export declare function useAnnotations(): {
173
237
  createdAt: string;
174
238
  modifiedAt: string;
175
239
  source: "session" | "pdf";
176
- type: "square" | "circle";
177
- strokeWidth: number;
240
+ width: number;
241
+ type: "circle";
178
242
  author?: string | undefined;
179
243
  contents?: string | undefined;
180
244
  inReplyTo?: string | undefined;
181
245
  locked?: boolean | undefined;
246
+ subject?: string | undefined;
247
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
182
248
  custom?: Record<string, unknown> | undefined;
183
- fill?: string | undefined;
249
+ cornerRadius?: undefined;
250
+ dashes?: number[] | undefined;
251
+ interiorColor?: string | undefined;
184
252
  } | {
185
253
  id: string;
186
254
  page: number;
@@ -204,13 +272,48 @@ export declare function useAnnotations(): {
204
272
  x: number;
205
273
  y: number;
206
274
  };
207
- strokeWidth: number;
275
+ width: number;
276
+ author?: string | undefined;
277
+ contents?: string | undefined;
278
+ inReplyTo?: string | undefined;
279
+ locked?: boolean | undefined;
280
+ subject?: string | undefined;
281
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
282
+ custom?: Record<string, unknown> | undefined;
283
+ dashes?: number[] | undefined;
284
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
285
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
286
+ } | {
287
+ id: string;
288
+ page: number;
289
+ rect: {
290
+ x: number;
291
+ y: number;
292
+ width: number;
293
+ height: number;
294
+ };
295
+ color: string;
296
+ opacity: number;
297
+ createdAt: string;
298
+ modifiedAt: string;
299
+ source: "session" | "pdf";
300
+ vertices: {
301
+ x: number;
302
+ y: number;
303
+ }[];
304
+ width: number;
305
+ type: "polyline";
208
306
  author?: string | undefined;
209
307
  contents?: string | undefined;
210
308
  inReplyTo?: string | undefined;
211
309
  locked?: boolean | undefined;
310
+ subject?: string | undefined;
311
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
212
312
  custom?: Record<string, unknown> | undefined;
213
- endings?: ["square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash", "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash"] | undefined;
313
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
314
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
315
+ dashes?: number[] | undefined;
316
+ interiorColor?: string | undefined;
214
317
  } | {
215
318
  id: string;
216
319
  page: number;
@@ -225,18 +328,23 @@ export declare function useAnnotations(): {
225
328
  createdAt: string;
226
329
  modifiedAt: string;
227
330
  source: "session" | "pdf";
228
- type: "polyline" | "polygon";
229
331
  vertices: {
230
332
  x: number;
231
333
  y: number;
232
334
  }[];
233
- strokeWidth: number;
335
+ width: number;
336
+ type: "polygon";
234
337
  author?: string | undefined;
235
338
  contents?: string | undefined;
236
339
  inReplyTo?: string | undefined;
237
340
  locked?: boolean | undefined;
341
+ subject?: string | undefined;
342
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
238
343
  custom?: Record<string, unknown> | undefined;
239
- fill?: string | undefined;
344
+ head?: undefined;
345
+ tail?: undefined;
346
+ dashes?: number[] | undefined;
347
+ interiorColor?: string | undefined;
240
348
  } | {
241
349
  id: string;
242
350
  page: number;
@@ -252,15 +360,91 @@ export declare function useAnnotations(): {
252
360
  modifiedAt: string;
253
361
  source: "session" | "pdf";
254
362
  type: "ink";
255
- paths: {
363
+ inklist: {
256
364
  x: number;
257
365
  y: number;
258
366
  }[][];
259
- strokeWidth: number;
367
+ width: number;
368
+ author?: string | undefined;
369
+ contents?: string | undefined;
370
+ inReplyTo?: string | undefined;
371
+ locked?: boolean | undefined;
372
+ subject?: string | undefined;
373
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
374
+ custom?: Record<string, unknown> | undefined;
375
+ pressure?: number[][] | undefined;
376
+ dashes?: number[] | undefined;
377
+ } | {
378
+ id: string;
379
+ page: number;
380
+ rect: {
381
+ x: number;
382
+ y: number;
383
+ width: number;
384
+ height: number;
385
+ };
386
+ color: string;
387
+ opacity: number;
388
+ createdAt: string;
389
+ modifiedAt: string;
390
+ source: "session" | "pdf";
391
+ type: "stamp";
392
+ imagedata: string;
393
+ author?: string | undefined;
394
+ contents?: string | undefined;
395
+ inReplyTo?: string | undefined;
396
+ locked?: boolean | undefined;
397
+ subject?: string | undefined;
398
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
399
+ custom?: Record<string, unknown> | undefined;
400
+ rotation?: 0 | 90 | 180 | 270 | undefined;
401
+ } | {
402
+ id: string;
403
+ page: number;
404
+ rect: {
405
+ x: number;
406
+ y: number;
407
+ width: number;
408
+ height: number;
409
+ };
410
+ color: string;
411
+ opacity: number;
412
+ createdAt: string;
413
+ modifiedAt: string;
414
+ source: "session" | "pdf";
415
+ type: "loupe";
416
+ magnification: number;
417
+ width: number;
418
+ author?: string | undefined;
419
+ contents?: string | undefined;
420
+ inReplyTo?: string | undefined;
421
+ locked?: boolean | undefined;
422
+ subject?: string | undefined;
423
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
424
+ custom?: Record<string, unknown> | undefined;
425
+ } | {
426
+ id: string;
427
+ page: number;
428
+ rect: {
429
+ x: number;
430
+ y: number;
431
+ width: number;
432
+ height: number;
433
+ };
434
+ color: string;
435
+ opacity: number;
436
+ createdAt: string;
437
+ modifiedAt: string;
438
+ source: "session" | "pdf";
439
+ type: "mask";
440
+ shape: "rect" | "ellipse";
441
+ dim: number;
260
442
  author?: string | undefined;
261
443
  contents?: string | undefined;
262
444
  inReplyTo?: string | undefined;
263
445
  locked?: boolean | undefined;
446
+ subject?: string | undefined;
447
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
264
448
  custom?: Record<string, unknown> | undefined;
265
449
  } | {
266
450
  id: string;
@@ -278,11 +462,13 @@ export declare function useAnnotations(): {
278
462
  source: "session" | "pdf";
279
463
  type: "redact";
280
464
  origin: "user" | "suggested";
281
- fill: string;
465
+ interiorColor: string;
282
466
  author?: string | undefined;
283
467
  contents?: string | undefined;
284
468
  inReplyTo?: string | undefined;
285
469
  locked?: boolean | undefined;
470
+ subject?: string | undefined;
471
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
286
472
  custom?: Record<string, unknown> | undefined;
287
473
  quads?: {
288
474
  p1: {
@@ -311,7 +497,7 @@ export declare function useAnnotations(): {
311
497
  } | undefined;
312
498
  overlayText?: string | undefined;
313
499
  } | undefined;
314
- update: (id: string, patch: Partial<Annotation>) => {
500
+ update: (id: string, patch: AnnotationPatch) => {
315
501
  id: string;
316
502
  page: number;
317
503
  rect: {
@@ -348,6 +534,8 @@ export declare function useAnnotations(): {
348
534
  contents?: string | undefined;
349
535
  inReplyTo?: string | undefined;
350
536
  locked?: boolean | undefined;
537
+ subject?: string | undefined;
538
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
351
539
  custom?: Record<string, unknown> | undefined;
352
540
  } | {
353
541
  id: string;
@@ -363,12 +551,14 @@ export declare function useAnnotations(): {
363
551
  createdAt: string;
364
552
  modifiedAt: string;
365
553
  source: "session" | "pdf";
366
- type: "note";
367
- icon: "note" | "comment" | "help" | "insert" | "key" | "paragraph";
554
+ type: "text";
555
+ icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
368
556
  author?: string | undefined;
369
557
  contents?: string | undefined;
370
558
  inReplyTo?: string | undefined;
371
559
  locked?: boolean | undefined;
560
+ subject?: string | undefined;
561
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
372
562
  custom?: Record<string, unknown> | undefined;
373
563
  } | {
374
564
  id: string;
@@ -379,25 +569,73 @@ export declare function useAnnotations(): {
379
569
  width: number;
380
570
  height: number;
381
571
  };
382
- color: string;
383
572
  opacity: number;
384
573
  createdAt: string;
385
574
  modifiedAt: string;
386
575
  source: "session" | "pdf";
387
- type: "freeText";
388
- text: string;
389
- fontSize: number;
390
- fontFamily: string;
391
- align: "left" | "center" | "right";
576
+ type: "freetext";
577
+ contents: string;
578
+ width: number;
579
+ defaultStyle: {
580
+ fontFamily: string;
581
+ fontSize: number;
582
+ color: string;
583
+ textAlign: "left" | "right" | "center" | "justify";
584
+ fontWeight?: "bold" | undefined;
585
+ fontStyle?: "italic" | undefined;
586
+ textDecoration?: "underline" | undefined;
587
+ align?: undefined;
588
+ };
392
589
  author?: string | undefined;
393
- contents?: string | undefined;
394
590
  inReplyTo?: string | undefined;
395
591
  locked?: boolean | undefined;
592
+ subject?: string | undefined;
593
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
396
594
  custom?: Record<string, unknown> | undefined;
595
+ color?: string | undefined;
596
+ borderColor?: string | undefined;
597
+ dashes?: number[] | undefined;
598
+ cornerRadius?: number | undefined;
599
+ fringe?: {
600
+ left: number;
601
+ top: number;
602
+ right: number;
603
+ bottom: number;
604
+ } | undefined;
397
605
  callout?: {
398
606
  x: number;
399
607
  y: number;
400
608
  }[] | undefined;
609
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
610
+ fontFamily?: undefined;
611
+ fontSize?: undefined;
612
+ align?: undefined;
613
+ } | {
614
+ id: string;
615
+ page: number;
616
+ rect: {
617
+ x: number;
618
+ y: number;
619
+ width: number;
620
+ height: number;
621
+ };
622
+ color: string;
623
+ opacity: number;
624
+ createdAt: string;
625
+ modifiedAt: string;
626
+ source: "session" | "pdf";
627
+ width: number;
628
+ type: "square";
629
+ author?: string | undefined;
630
+ contents?: string | undefined;
631
+ inReplyTo?: string | undefined;
632
+ locked?: boolean | undefined;
633
+ subject?: string | undefined;
634
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
635
+ custom?: Record<string, unknown> | undefined;
636
+ cornerRadius?: number | undefined;
637
+ dashes?: number[] | undefined;
638
+ interiorColor?: string | undefined;
401
639
  } | {
402
640
  id: string;
403
641
  page: number;
@@ -412,14 +650,18 @@ export declare function useAnnotations(): {
412
650
  createdAt: string;
413
651
  modifiedAt: string;
414
652
  source: "session" | "pdf";
415
- type: "square" | "circle";
416
- strokeWidth: number;
653
+ width: number;
654
+ type: "circle";
417
655
  author?: string | undefined;
418
656
  contents?: string | undefined;
419
657
  inReplyTo?: string | undefined;
420
658
  locked?: boolean | undefined;
659
+ subject?: string | undefined;
660
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
421
661
  custom?: Record<string, unknown> | undefined;
422
- fill?: string | undefined;
662
+ cornerRadius?: undefined;
663
+ dashes?: number[] | undefined;
664
+ interiorColor?: string | undefined;
423
665
  } | {
424
666
  id: string;
425
667
  page: number;
@@ -443,13 +685,48 @@ export declare function useAnnotations(): {
443
685
  x: number;
444
686
  y: number;
445
687
  };
446
- strokeWidth: number;
688
+ width: number;
689
+ author?: string | undefined;
690
+ contents?: string | undefined;
691
+ inReplyTo?: string | undefined;
692
+ locked?: boolean | undefined;
693
+ subject?: string | undefined;
694
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
695
+ custom?: Record<string, unknown> | undefined;
696
+ dashes?: number[] | undefined;
697
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
698
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
699
+ } | {
700
+ id: string;
701
+ page: number;
702
+ rect: {
703
+ x: number;
704
+ y: number;
705
+ width: number;
706
+ height: number;
707
+ };
708
+ color: string;
709
+ opacity: number;
710
+ createdAt: string;
711
+ modifiedAt: string;
712
+ source: "session" | "pdf";
713
+ vertices: {
714
+ x: number;
715
+ y: number;
716
+ }[];
717
+ width: number;
718
+ type: "polyline";
447
719
  author?: string | undefined;
448
720
  contents?: string | undefined;
449
721
  inReplyTo?: string | undefined;
450
722
  locked?: boolean | undefined;
723
+ subject?: string | undefined;
724
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
451
725
  custom?: Record<string, unknown> | undefined;
452
- endings?: ["square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash", "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash"] | undefined;
726
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
727
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
728
+ dashes?: number[] | undefined;
729
+ interiorColor?: string | undefined;
453
730
  } | {
454
731
  id: string;
455
732
  page: number;
@@ -464,18 +741,23 @@ export declare function useAnnotations(): {
464
741
  createdAt: string;
465
742
  modifiedAt: string;
466
743
  source: "session" | "pdf";
467
- type: "polyline" | "polygon";
468
744
  vertices: {
469
745
  x: number;
470
746
  y: number;
471
747
  }[];
472
- strokeWidth: number;
748
+ width: number;
749
+ type: "polygon";
473
750
  author?: string | undefined;
474
751
  contents?: string | undefined;
475
752
  inReplyTo?: string | undefined;
476
753
  locked?: boolean | undefined;
754
+ subject?: string | undefined;
755
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
477
756
  custom?: Record<string, unknown> | undefined;
478
- fill?: string | undefined;
757
+ head?: undefined;
758
+ tail?: undefined;
759
+ dashes?: number[] | undefined;
760
+ interiorColor?: string | undefined;
479
761
  } | {
480
762
  id: string;
481
763
  page: number;
@@ -491,15 +773,91 @@ export declare function useAnnotations(): {
491
773
  modifiedAt: string;
492
774
  source: "session" | "pdf";
493
775
  type: "ink";
494
- paths: {
776
+ inklist: {
495
777
  x: number;
496
778
  y: number;
497
779
  }[][];
498
- strokeWidth: number;
780
+ width: number;
781
+ author?: string | undefined;
782
+ contents?: string | undefined;
783
+ inReplyTo?: string | undefined;
784
+ locked?: boolean | undefined;
785
+ subject?: string | undefined;
786
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
787
+ custom?: Record<string, unknown> | undefined;
788
+ pressure?: number[][] | undefined;
789
+ dashes?: number[] | undefined;
790
+ } | {
791
+ id: string;
792
+ page: number;
793
+ rect: {
794
+ x: number;
795
+ y: number;
796
+ width: number;
797
+ height: number;
798
+ };
799
+ color: string;
800
+ opacity: number;
801
+ createdAt: string;
802
+ modifiedAt: string;
803
+ source: "session" | "pdf";
804
+ type: "stamp";
805
+ imagedata: string;
806
+ author?: string | undefined;
807
+ contents?: string | undefined;
808
+ inReplyTo?: string | undefined;
809
+ locked?: boolean | undefined;
810
+ subject?: string | undefined;
811
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
812
+ custom?: Record<string, unknown> | undefined;
813
+ rotation?: 0 | 90 | 180 | 270 | undefined;
814
+ } | {
815
+ id: string;
816
+ page: number;
817
+ rect: {
818
+ x: number;
819
+ y: number;
820
+ width: number;
821
+ height: number;
822
+ };
823
+ color: string;
824
+ opacity: number;
825
+ createdAt: string;
826
+ modifiedAt: string;
827
+ source: "session" | "pdf";
828
+ type: "loupe";
829
+ magnification: number;
830
+ width: number;
831
+ author?: string | undefined;
832
+ contents?: string | undefined;
833
+ inReplyTo?: string | undefined;
834
+ locked?: boolean | undefined;
835
+ subject?: string | undefined;
836
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
837
+ custom?: Record<string, unknown> | undefined;
838
+ } | {
839
+ id: string;
840
+ page: number;
841
+ rect: {
842
+ x: number;
843
+ y: number;
844
+ width: number;
845
+ height: number;
846
+ };
847
+ color: string;
848
+ opacity: number;
849
+ createdAt: string;
850
+ modifiedAt: string;
851
+ source: "session" | "pdf";
852
+ type: "mask";
853
+ shape: "rect" | "ellipse";
854
+ dim: number;
499
855
  author?: string | undefined;
500
856
  contents?: string | undefined;
501
857
  inReplyTo?: string | undefined;
502
858
  locked?: boolean | undefined;
859
+ subject?: string | undefined;
860
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
503
861
  custom?: Record<string, unknown> | undefined;
504
862
  } | {
505
863
  id: string;
@@ -517,11 +875,13 @@ export declare function useAnnotations(): {
517
875
  source: "session" | "pdf";
518
876
  type: "redact";
519
877
  origin: "user" | "suggested";
520
- fill: string;
878
+ interiorColor: string;
521
879
  author?: string | undefined;
522
880
  contents?: string | undefined;
523
881
  inReplyTo?: string | undefined;
524
882
  locked?: boolean | undefined;
883
+ subject?: string | undefined;
884
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
525
885
  custom?: Record<string, unknown> | undefined;
526
886
  quads?: {
527
887
  p1: {
@@ -590,6 +950,8 @@ export declare function useAnnotations(): {
590
950
  contents?: string | undefined;
591
951
  inReplyTo?: string | undefined;
592
952
  locked?: boolean | undefined;
953
+ subject?: string | undefined;
954
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
593
955
  custom?: Record<string, unknown> | undefined;
594
956
  } | {
595
957
  id: string;
@@ -605,12 +967,14 @@ export declare function useAnnotations(): {
605
967
  createdAt: string;
606
968
  modifiedAt: string;
607
969
  source: "session" | "pdf";
608
- type: "note";
609
- icon: "note" | "comment" | "help" | "insert" | "key" | "paragraph";
970
+ type: "text";
971
+ icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
610
972
  author?: string | undefined;
611
973
  contents?: string | undefined;
612
974
  inReplyTo?: string | undefined;
613
975
  locked?: boolean | undefined;
976
+ subject?: string | undefined;
977
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
614
978
  custom?: Record<string, unknown> | undefined;
615
979
  } | {
616
980
  id: string;
@@ -621,25 +985,73 @@ export declare function useAnnotations(): {
621
985
  width: number;
622
986
  height: number;
623
987
  };
624
- color: string;
625
988
  opacity: number;
626
989
  createdAt: string;
627
990
  modifiedAt: string;
628
991
  source: "session" | "pdf";
629
- type: "freeText";
630
- text: string;
631
- fontSize: number;
632
- fontFamily: string;
633
- align: "left" | "center" | "right";
992
+ type: "freetext";
993
+ contents: string;
994
+ width: number;
995
+ defaultStyle: {
996
+ fontFamily: string;
997
+ fontSize: number;
998
+ color: string;
999
+ textAlign: "left" | "right" | "center" | "justify";
1000
+ fontWeight?: "bold" | undefined;
1001
+ fontStyle?: "italic" | undefined;
1002
+ textDecoration?: "underline" | undefined;
1003
+ align?: undefined;
1004
+ };
634
1005
  author?: string | undefined;
635
- contents?: string | undefined;
636
1006
  inReplyTo?: string | undefined;
637
1007
  locked?: boolean | undefined;
1008
+ subject?: string | undefined;
1009
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
638
1010
  custom?: Record<string, unknown> | undefined;
1011
+ color?: string | undefined;
1012
+ borderColor?: string | undefined;
1013
+ dashes?: number[] | undefined;
1014
+ cornerRadius?: number | undefined;
1015
+ fringe?: {
1016
+ left: number;
1017
+ top: number;
1018
+ right: number;
1019
+ bottom: number;
1020
+ } | undefined;
639
1021
  callout?: {
640
1022
  x: number;
641
1023
  y: number;
642
1024
  }[] | undefined;
1025
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1026
+ fontFamily?: undefined;
1027
+ fontSize?: undefined;
1028
+ align?: undefined;
1029
+ } | {
1030
+ id: string;
1031
+ page: number;
1032
+ rect: {
1033
+ x: number;
1034
+ y: number;
1035
+ width: number;
1036
+ height: number;
1037
+ };
1038
+ color: string;
1039
+ opacity: number;
1040
+ createdAt: string;
1041
+ modifiedAt: string;
1042
+ source: "session" | "pdf";
1043
+ width: number;
1044
+ type: "square";
1045
+ author?: string | undefined;
1046
+ contents?: string | undefined;
1047
+ inReplyTo?: string | undefined;
1048
+ locked?: boolean | undefined;
1049
+ subject?: string | undefined;
1050
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1051
+ custom?: Record<string, unknown> | undefined;
1052
+ cornerRadius?: number | undefined;
1053
+ dashes?: number[] | undefined;
1054
+ interiorColor?: string | undefined;
643
1055
  } | {
644
1056
  id: string;
645
1057
  page: number;
@@ -654,14 +1066,18 @@ export declare function useAnnotations(): {
654
1066
  createdAt: string;
655
1067
  modifiedAt: string;
656
1068
  source: "session" | "pdf";
657
- type: "square" | "circle";
658
- strokeWidth: number;
1069
+ width: number;
1070
+ type: "circle";
659
1071
  author?: string | undefined;
660
1072
  contents?: string | undefined;
661
1073
  inReplyTo?: string | undefined;
662
1074
  locked?: boolean | undefined;
1075
+ subject?: string | undefined;
1076
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
663
1077
  custom?: Record<string, unknown> | undefined;
664
- fill?: string | undefined;
1078
+ cornerRadius?: undefined;
1079
+ dashes?: number[] | undefined;
1080
+ interiorColor?: string | undefined;
665
1081
  } | {
666
1082
  id: string;
667
1083
  page: number;
@@ -685,13 +1101,48 @@ export declare function useAnnotations(): {
685
1101
  x: number;
686
1102
  y: number;
687
1103
  };
688
- strokeWidth: number;
1104
+ width: number;
1105
+ author?: string | undefined;
1106
+ contents?: string | undefined;
1107
+ inReplyTo?: string | undefined;
1108
+ locked?: boolean | undefined;
1109
+ subject?: string | undefined;
1110
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1111
+ custom?: Record<string, unknown> | undefined;
1112
+ dashes?: number[] | undefined;
1113
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1114
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1115
+ } | {
1116
+ id: string;
1117
+ page: number;
1118
+ rect: {
1119
+ x: number;
1120
+ y: number;
1121
+ width: number;
1122
+ height: number;
1123
+ };
1124
+ color: string;
1125
+ opacity: number;
1126
+ createdAt: string;
1127
+ modifiedAt: string;
1128
+ source: "session" | "pdf";
1129
+ vertices: {
1130
+ x: number;
1131
+ y: number;
1132
+ }[];
1133
+ width: number;
1134
+ type: "polyline";
689
1135
  author?: string | undefined;
690
1136
  contents?: string | undefined;
691
1137
  inReplyTo?: string | undefined;
692
1138
  locked?: boolean | undefined;
1139
+ subject?: string | undefined;
1140
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
693
1141
  custom?: Record<string, unknown> | undefined;
694
- endings?: ["square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash", "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash"] | undefined;
1142
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1143
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1144
+ dashes?: number[] | undefined;
1145
+ interiorColor?: string | undefined;
695
1146
  } | {
696
1147
  id: string;
697
1148
  page: number;
@@ -706,18 +1157,23 @@ export declare function useAnnotations(): {
706
1157
  createdAt: string;
707
1158
  modifiedAt: string;
708
1159
  source: "session" | "pdf";
709
- type: "polyline" | "polygon";
710
1160
  vertices: {
711
1161
  x: number;
712
1162
  y: number;
713
1163
  }[];
714
- strokeWidth: number;
1164
+ width: number;
1165
+ type: "polygon";
715
1166
  author?: string | undefined;
716
1167
  contents?: string | undefined;
717
1168
  inReplyTo?: string | undefined;
718
1169
  locked?: boolean | undefined;
1170
+ subject?: string | undefined;
1171
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
719
1172
  custom?: Record<string, unknown> | undefined;
720
- fill?: string | undefined;
1173
+ head?: undefined;
1174
+ tail?: undefined;
1175
+ dashes?: number[] | undefined;
1176
+ interiorColor?: string | undefined;
721
1177
  } | {
722
1178
  id: string;
723
1179
  page: number;
@@ -733,16 +1189,20 @@ export declare function useAnnotations(): {
733
1189
  modifiedAt: string;
734
1190
  source: "session" | "pdf";
735
1191
  type: "ink";
736
- paths: {
1192
+ inklist: {
737
1193
  x: number;
738
1194
  y: number;
739
1195
  }[][];
740
- strokeWidth: number;
1196
+ width: number;
741
1197
  author?: string | undefined;
742
1198
  contents?: string | undefined;
743
1199
  inReplyTo?: string | undefined;
744
1200
  locked?: boolean | undefined;
1201
+ subject?: string | undefined;
1202
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
745
1203
  custom?: Record<string, unknown> | undefined;
1204
+ pressure?: number[][] | undefined;
1205
+ dashes?: number[] | undefined;
746
1206
  } | {
747
1207
  id: string;
748
1208
  page: number;
@@ -757,16 +1217,90 @@ export declare function useAnnotations(): {
757
1217
  createdAt: string;
758
1218
  modifiedAt: string;
759
1219
  source: "session" | "pdf";
760
- type: "redact";
761
- origin: "user" | "suggested";
762
- fill: string;
1220
+ type: "stamp";
1221
+ imagedata: string;
763
1222
  author?: string | undefined;
764
1223
  contents?: string | undefined;
765
1224
  inReplyTo?: string | undefined;
766
1225
  locked?: boolean | undefined;
1226
+ subject?: string | undefined;
1227
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
767
1228
  custom?: Record<string, unknown> | undefined;
768
- quads?: {
769
- p1: {
1229
+ rotation?: 0 | 90 | 180 | 270 | undefined;
1230
+ } | {
1231
+ id: string;
1232
+ page: number;
1233
+ rect: {
1234
+ x: number;
1235
+ y: number;
1236
+ width: number;
1237
+ height: number;
1238
+ };
1239
+ color: string;
1240
+ opacity: number;
1241
+ createdAt: string;
1242
+ modifiedAt: string;
1243
+ source: "session" | "pdf";
1244
+ type: "loupe";
1245
+ magnification: number;
1246
+ width: number;
1247
+ author?: string | undefined;
1248
+ contents?: string | undefined;
1249
+ inReplyTo?: string | undefined;
1250
+ locked?: boolean | undefined;
1251
+ subject?: string | undefined;
1252
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1253
+ custom?: Record<string, unknown> | undefined;
1254
+ } | {
1255
+ id: string;
1256
+ page: number;
1257
+ rect: {
1258
+ x: number;
1259
+ y: number;
1260
+ width: number;
1261
+ height: number;
1262
+ };
1263
+ color: string;
1264
+ opacity: number;
1265
+ createdAt: string;
1266
+ modifiedAt: string;
1267
+ source: "session" | "pdf";
1268
+ type: "mask";
1269
+ shape: "rect" | "ellipse";
1270
+ dim: number;
1271
+ author?: string | undefined;
1272
+ contents?: string | undefined;
1273
+ inReplyTo?: string | undefined;
1274
+ locked?: boolean | undefined;
1275
+ subject?: string | undefined;
1276
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1277
+ custom?: Record<string, unknown> | undefined;
1278
+ } | {
1279
+ id: string;
1280
+ page: number;
1281
+ rect: {
1282
+ x: number;
1283
+ y: number;
1284
+ width: number;
1285
+ height: number;
1286
+ };
1287
+ color: string;
1288
+ opacity: number;
1289
+ createdAt: string;
1290
+ modifiedAt: string;
1291
+ source: "session" | "pdf";
1292
+ type: "redact";
1293
+ origin: "user" | "suggested";
1294
+ interiorColor: string;
1295
+ author?: string | undefined;
1296
+ contents?: string | undefined;
1297
+ inReplyTo?: string | undefined;
1298
+ locked?: boolean | undefined;
1299
+ subject?: string | undefined;
1300
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1301
+ custom?: Record<string, unknown> | undefined;
1302
+ quads?: {
1303
+ p1: {
770
1304
  x: number;
771
1305
  y: number;
772
1306
  };
@@ -830,6 +1364,8 @@ export declare function useAnnotations(): {
830
1364
  contents?: string | undefined;
831
1365
  inReplyTo?: string | undefined;
832
1366
  locked?: boolean | undefined;
1367
+ subject?: string | undefined;
1368
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
833
1369
  custom?: Record<string, unknown> | undefined;
834
1370
  } | {
835
1371
  id: string;
@@ -845,12 +1381,14 @@ export declare function useAnnotations(): {
845
1381
  createdAt: string;
846
1382
  modifiedAt: string;
847
1383
  source: "session" | "pdf";
848
- type: "note";
849
- icon: "note" | "comment" | "help" | "insert" | "key" | "paragraph";
1384
+ type: "text";
1385
+ icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
850
1386
  author?: string | undefined;
851
1387
  contents?: string | undefined;
852
1388
  inReplyTo?: string | undefined;
853
1389
  locked?: boolean | undefined;
1390
+ subject?: string | undefined;
1391
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
854
1392
  custom?: Record<string, unknown> | undefined;
855
1393
  } | {
856
1394
  id: string;
@@ -861,25 +1399,73 @@ export declare function useAnnotations(): {
861
1399
  width: number;
862
1400
  height: number;
863
1401
  };
864
- color: string;
865
1402
  opacity: number;
866
1403
  createdAt: string;
867
1404
  modifiedAt: string;
868
1405
  source: "session" | "pdf";
869
- type: "freeText";
870
- text: string;
871
- fontSize: number;
872
- fontFamily: string;
873
- align: "left" | "center" | "right";
1406
+ type: "freetext";
1407
+ contents: string;
1408
+ width: number;
1409
+ defaultStyle: {
1410
+ fontFamily: string;
1411
+ fontSize: number;
1412
+ color: string;
1413
+ textAlign: "left" | "right" | "center" | "justify";
1414
+ fontWeight?: "bold" | undefined;
1415
+ fontStyle?: "italic" | undefined;
1416
+ textDecoration?: "underline" | undefined;
1417
+ align?: undefined;
1418
+ };
874
1419
  author?: string | undefined;
875
- contents?: string | undefined;
876
1420
  inReplyTo?: string | undefined;
877
1421
  locked?: boolean | undefined;
1422
+ subject?: string | undefined;
1423
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
878
1424
  custom?: Record<string, unknown> | undefined;
1425
+ color?: string | undefined;
1426
+ borderColor?: string | undefined;
1427
+ dashes?: number[] | undefined;
1428
+ cornerRadius?: number | undefined;
1429
+ fringe?: {
1430
+ left: number;
1431
+ top: number;
1432
+ right: number;
1433
+ bottom: number;
1434
+ } | undefined;
879
1435
  callout?: {
880
1436
  x: number;
881
1437
  y: number;
882
1438
  }[] | undefined;
1439
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1440
+ fontFamily?: undefined;
1441
+ fontSize?: undefined;
1442
+ align?: undefined;
1443
+ } | {
1444
+ id: string;
1445
+ page: number;
1446
+ rect: {
1447
+ x: number;
1448
+ y: number;
1449
+ width: number;
1450
+ height: number;
1451
+ };
1452
+ color: string;
1453
+ opacity: number;
1454
+ createdAt: string;
1455
+ modifiedAt: string;
1456
+ source: "session" | "pdf";
1457
+ width: number;
1458
+ type: "square";
1459
+ author?: string | undefined;
1460
+ contents?: string | undefined;
1461
+ inReplyTo?: string | undefined;
1462
+ locked?: boolean | undefined;
1463
+ subject?: string | undefined;
1464
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1465
+ custom?: Record<string, unknown> | undefined;
1466
+ cornerRadius?: number | undefined;
1467
+ dashes?: number[] | undefined;
1468
+ interiorColor?: string | undefined;
883
1469
  } | {
884
1470
  id: string;
885
1471
  page: number;
@@ -894,14 +1480,18 @@ export declare function useAnnotations(): {
894
1480
  createdAt: string;
895
1481
  modifiedAt: string;
896
1482
  source: "session" | "pdf";
897
- type: "square" | "circle";
898
- strokeWidth: number;
1483
+ width: number;
1484
+ type: "circle";
899
1485
  author?: string | undefined;
900
1486
  contents?: string | undefined;
901
1487
  inReplyTo?: string | undefined;
902
1488
  locked?: boolean | undefined;
1489
+ subject?: string | undefined;
1490
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
903
1491
  custom?: Record<string, unknown> | undefined;
904
- fill?: string | undefined;
1492
+ cornerRadius?: undefined;
1493
+ dashes?: number[] | undefined;
1494
+ interiorColor?: string | undefined;
905
1495
  } | {
906
1496
  id: string;
907
1497
  page: number;
@@ -925,13 +1515,17 @@ export declare function useAnnotations(): {
925
1515
  x: number;
926
1516
  y: number;
927
1517
  };
928
- strokeWidth: number;
1518
+ width: number;
929
1519
  author?: string | undefined;
930
1520
  contents?: string | undefined;
931
1521
  inReplyTo?: string | undefined;
932
1522
  locked?: boolean | undefined;
1523
+ subject?: string | undefined;
1524
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
933
1525
  custom?: Record<string, unknown> | undefined;
934
- endings?: ["square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash", "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash"] | undefined;
1526
+ dashes?: number[] | undefined;
1527
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1528
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
935
1529
  } | {
936
1530
  id: string;
937
1531
  page: number;
@@ -946,18 +1540,54 @@ export declare function useAnnotations(): {
946
1540
  createdAt: string;
947
1541
  modifiedAt: string;
948
1542
  source: "session" | "pdf";
949
- type: "polyline" | "polygon";
950
1543
  vertices: {
951
1544
  x: number;
952
1545
  y: number;
953
1546
  }[];
954
- strokeWidth: number;
1547
+ width: number;
1548
+ type: "polyline";
955
1549
  author?: string | undefined;
956
1550
  contents?: string | undefined;
957
1551
  inReplyTo?: string | undefined;
958
1552
  locked?: boolean | undefined;
1553
+ subject?: string | undefined;
1554
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
959
1555
  custom?: Record<string, unknown> | undefined;
960
- fill?: string | undefined;
1556
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1557
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1558
+ dashes?: number[] | undefined;
1559
+ interiorColor?: string | undefined;
1560
+ } | {
1561
+ id: string;
1562
+ page: number;
1563
+ rect: {
1564
+ x: number;
1565
+ y: number;
1566
+ width: number;
1567
+ height: number;
1568
+ };
1569
+ color: string;
1570
+ opacity: number;
1571
+ createdAt: string;
1572
+ modifiedAt: string;
1573
+ source: "session" | "pdf";
1574
+ vertices: {
1575
+ x: number;
1576
+ y: number;
1577
+ }[];
1578
+ width: number;
1579
+ type: "polygon";
1580
+ author?: string | undefined;
1581
+ contents?: string | undefined;
1582
+ inReplyTo?: string | undefined;
1583
+ locked?: boolean | undefined;
1584
+ subject?: string | undefined;
1585
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1586
+ custom?: Record<string, unknown> | undefined;
1587
+ head?: undefined;
1588
+ tail?: undefined;
1589
+ dashes?: number[] | undefined;
1590
+ interiorColor?: string | undefined;
961
1591
  } | {
962
1592
  id: string;
963
1593
  page: number;
@@ -973,15 +1603,91 @@ export declare function useAnnotations(): {
973
1603
  modifiedAt: string;
974
1604
  source: "session" | "pdf";
975
1605
  type: "ink";
976
- paths: {
1606
+ inklist: {
977
1607
  x: number;
978
1608
  y: number;
979
1609
  }[][];
980
- strokeWidth: number;
1610
+ width: number;
981
1611
  author?: string | undefined;
982
1612
  contents?: string | undefined;
983
1613
  inReplyTo?: string | undefined;
984
1614
  locked?: boolean | undefined;
1615
+ subject?: string | undefined;
1616
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1617
+ custom?: Record<string, unknown> | undefined;
1618
+ pressure?: number[][] | undefined;
1619
+ dashes?: number[] | undefined;
1620
+ } | {
1621
+ id: string;
1622
+ page: number;
1623
+ rect: {
1624
+ x: number;
1625
+ y: number;
1626
+ width: number;
1627
+ height: number;
1628
+ };
1629
+ color: string;
1630
+ opacity: number;
1631
+ createdAt: string;
1632
+ modifiedAt: string;
1633
+ source: "session" | "pdf";
1634
+ type: "stamp";
1635
+ imagedata: string;
1636
+ author?: string | undefined;
1637
+ contents?: string | undefined;
1638
+ inReplyTo?: string | undefined;
1639
+ locked?: boolean | undefined;
1640
+ subject?: string | undefined;
1641
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1642
+ custom?: Record<string, unknown> | undefined;
1643
+ rotation?: 0 | 90 | 180 | 270 | undefined;
1644
+ } | {
1645
+ id: string;
1646
+ page: number;
1647
+ rect: {
1648
+ x: number;
1649
+ y: number;
1650
+ width: number;
1651
+ height: number;
1652
+ };
1653
+ color: string;
1654
+ opacity: number;
1655
+ createdAt: string;
1656
+ modifiedAt: string;
1657
+ source: "session" | "pdf";
1658
+ type: "loupe";
1659
+ magnification: number;
1660
+ width: number;
1661
+ author?: string | undefined;
1662
+ contents?: string | undefined;
1663
+ inReplyTo?: string | undefined;
1664
+ locked?: boolean | undefined;
1665
+ subject?: string | undefined;
1666
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1667
+ custom?: Record<string, unknown> | undefined;
1668
+ } | {
1669
+ id: string;
1670
+ page: number;
1671
+ rect: {
1672
+ x: number;
1673
+ y: number;
1674
+ width: number;
1675
+ height: number;
1676
+ };
1677
+ color: string;
1678
+ opacity: number;
1679
+ createdAt: string;
1680
+ modifiedAt: string;
1681
+ source: "session" | "pdf";
1682
+ type: "mask";
1683
+ shape: "rect" | "ellipse";
1684
+ dim: number;
1685
+ author?: string | undefined;
1686
+ contents?: string | undefined;
1687
+ inReplyTo?: string | undefined;
1688
+ locked?: boolean | undefined;
1689
+ subject?: string | undefined;
1690
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
985
1691
  custom?: Record<string, unknown> | undefined;
986
1692
  } | {
987
1693
  id: string;
@@ -999,11 +1705,13 @@ export declare function useAnnotations(): {
999
1705
  source: "session" | "pdf";
1000
1706
  type: "redact";
1001
1707
  origin: "user" | "suggested";
1002
- fill: string;
1708
+ interiorColor: string;
1003
1709
  author?: string | undefined;
1004
1710
  contents?: string | undefined;
1005
1711
  inReplyTo?: string | undefined;
1006
1712
  locked?: boolean | undefined;
1713
+ subject?: string | undefined;
1714
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1007
1715
  custom?: Record<string, unknown> | undefined;
1008
1716
  quads?: {
1009
1717
  p1: {
@@ -1070,6 +1778,8 @@ export declare function useAnnotations(): {
1070
1778
  contents?: string | undefined;
1071
1779
  inReplyTo?: string | undefined;
1072
1780
  locked?: boolean | undefined;
1781
+ subject?: string | undefined;
1782
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1073
1783
  custom?: Record<string, unknown> | undefined;
1074
1784
  } | {
1075
1785
  id: string;
@@ -1085,12 +1795,14 @@ export declare function useAnnotations(): {
1085
1795
  createdAt: string;
1086
1796
  modifiedAt: string;
1087
1797
  source: "session" | "pdf";
1088
- type: "note";
1089
- icon: "note" | "comment" | "help" | "insert" | "key" | "paragraph";
1798
+ type: "text";
1799
+ icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
1090
1800
  author?: string | undefined;
1091
1801
  contents?: string | undefined;
1092
1802
  inReplyTo?: string | undefined;
1093
1803
  locked?: boolean | undefined;
1804
+ subject?: string | undefined;
1805
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1094
1806
  custom?: Record<string, unknown> | undefined;
1095
1807
  } | {
1096
1808
  id: string;
@@ -1101,25 +1813,47 @@ export declare function useAnnotations(): {
1101
1813
  width: number;
1102
1814
  height: number;
1103
1815
  };
1104
- color: string;
1105
1816
  opacity: number;
1106
1817
  createdAt: string;
1107
1818
  modifiedAt: string;
1108
1819
  source: "session" | "pdf";
1109
- type: "freeText";
1110
- text: string;
1111
- fontSize: number;
1112
- fontFamily: string;
1113
- align: "left" | "center" | "right";
1820
+ type: "freetext";
1821
+ contents: string;
1822
+ width: number;
1823
+ defaultStyle: {
1824
+ fontFamily: string;
1825
+ fontSize: number;
1826
+ color: string;
1827
+ textAlign: "left" | "right" | "center" | "justify";
1828
+ fontWeight?: "bold" | undefined;
1829
+ fontStyle?: "italic" | undefined;
1830
+ textDecoration?: "underline" | undefined;
1831
+ align?: undefined;
1832
+ };
1114
1833
  author?: string | undefined;
1115
- contents?: string | undefined;
1116
1834
  inReplyTo?: string | undefined;
1117
1835
  locked?: boolean | undefined;
1836
+ subject?: string | undefined;
1837
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1118
1838
  custom?: Record<string, unknown> | undefined;
1839
+ color?: string | undefined;
1840
+ borderColor?: string | undefined;
1841
+ dashes?: number[] | undefined;
1842
+ cornerRadius?: number | undefined;
1843
+ fringe?: {
1844
+ left: number;
1845
+ top: number;
1846
+ right: number;
1847
+ bottom: number;
1848
+ } | undefined;
1119
1849
  callout?: {
1120
1850
  x: number;
1121
1851
  y: number;
1122
1852
  }[] | undefined;
1853
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1854
+ fontFamily?: undefined;
1855
+ fontSize?: undefined;
1856
+ align?: undefined;
1123
1857
  } | {
1124
1858
  id: string;
1125
1859
  page: number;
@@ -1134,14 +1868,44 @@ export declare function useAnnotations(): {
1134
1868
  createdAt: string;
1135
1869
  modifiedAt: string;
1136
1870
  source: "session" | "pdf";
1137
- type: "square" | "circle";
1138
- strokeWidth: number;
1871
+ width: number;
1872
+ type: "square";
1139
1873
  author?: string | undefined;
1140
1874
  contents?: string | undefined;
1141
1875
  inReplyTo?: string | undefined;
1142
1876
  locked?: boolean | undefined;
1877
+ subject?: string | undefined;
1878
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1143
1879
  custom?: Record<string, unknown> | undefined;
1144
- fill?: string | undefined;
1880
+ cornerRadius?: number | undefined;
1881
+ dashes?: number[] | undefined;
1882
+ interiorColor?: string | undefined;
1883
+ } | {
1884
+ id: string;
1885
+ page: number;
1886
+ rect: {
1887
+ x: number;
1888
+ y: number;
1889
+ width: number;
1890
+ height: number;
1891
+ };
1892
+ color: string;
1893
+ opacity: number;
1894
+ createdAt: string;
1895
+ modifiedAt: string;
1896
+ source: "session" | "pdf";
1897
+ width: number;
1898
+ type: "circle";
1899
+ author?: string | undefined;
1900
+ contents?: string | undefined;
1901
+ inReplyTo?: string | undefined;
1902
+ locked?: boolean | undefined;
1903
+ subject?: string | undefined;
1904
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1905
+ custom?: Record<string, unknown> | undefined;
1906
+ cornerRadius?: undefined;
1907
+ dashes?: number[] | undefined;
1908
+ interiorColor?: string | undefined;
1145
1909
  } | {
1146
1910
  id: string;
1147
1911
  page: number;
@@ -1165,13 +1929,132 @@ export declare function useAnnotations(): {
1165
1929
  x: number;
1166
1930
  y: number;
1167
1931
  };
1168
- strokeWidth: number;
1932
+ width: number;
1933
+ author?: string | undefined;
1934
+ contents?: string | undefined;
1935
+ inReplyTo?: string | undefined;
1936
+ locked?: boolean | undefined;
1937
+ subject?: string | undefined;
1938
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1939
+ custom?: Record<string, unknown> | undefined;
1940
+ dashes?: number[] | undefined;
1941
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1942
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1943
+ } | {
1944
+ id: string;
1945
+ page: number;
1946
+ rect: {
1947
+ x: number;
1948
+ y: number;
1949
+ width: number;
1950
+ height: number;
1951
+ };
1952
+ color: string;
1953
+ opacity: number;
1954
+ createdAt: string;
1955
+ modifiedAt: string;
1956
+ source: "session" | "pdf";
1957
+ vertices: {
1958
+ x: number;
1959
+ y: number;
1960
+ }[];
1961
+ width: number;
1962
+ type: "polyline";
1963
+ author?: string | undefined;
1964
+ contents?: string | undefined;
1965
+ inReplyTo?: string | undefined;
1966
+ locked?: boolean | undefined;
1967
+ subject?: string | undefined;
1968
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1969
+ custom?: Record<string, unknown> | undefined;
1970
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1971
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
1972
+ dashes?: number[] | undefined;
1973
+ interiorColor?: string | undefined;
1974
+ } | {
1975
+ id: string;
1976
+ page: number;
1977
+ rect: {
1978
+ x: number;
1979
+ y: number;
1980
+ width: number;
1981
+ height: number;
1982
+ };
1983
+ color: string;
1984
+ opacity: number;
1985
+ createdAt: string;
1986
+ modifiedAt: string;
1987
+ source: "session" | "pdf";
1988
+ vertices: {
1989
+ x: number;
1990
+ y: number;
1991
+ }[];
1992
+ width: number;
1993
+ type: "polygon";
1994
+ author?: string | undefined;
1995
+ contents?: string | undefined;
1996
+ inReplyTo?: string | undefined;
1997
+ locked?: boolean | undefined;
1998
+ subject?: string | undefined;
1999
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2000
+ custom?: Record<string, unknown> | undefined;
2001
+ head?: undefined;
2002
+ tail?: undefined;
2003
+ dashes?: number[] | undefined;
2004
+ interiorColor?: string | undefined;
2005
+ } | {
2006
+ id: string;
2007
+ page: number;
2008
+ rect: {
2009
+ x: number;
2010
+ y: number;
2011
+ width: number;
2012
+ height: number;
2013
+ };
2014
+ color: string;
2015
+ opacity: number;
2016
+ createdAt: string;
2017
+ modifiedAt: string;
2018
+ source: "session" | "pdf";
2019
+ type: "ink";
2020
+ inklist: {
2021
+ x: number;
2022
+ y: number;
2023
+ }[][];
2024
+ width: number;
2025
+ author?: string | undefined;
2026
+ contents?: string | undefined;
2027
+ inReplyTo?: string | undefined;
2028
+ locked?: boolean | undefined;
2029
+ subject?: string | undefined;
2030
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2031
+ custom?: Record<string, unknown> | undefined;
2032
+ pressure?: number[][] | undefined;
2033
+ dashes?: number[] | undefined;
2034
+ } | {
2035
+ id: string;
2036
+ page: number;
2037
+ rect: {
2038
+ x: number;
2039
+ y: number;
2040
+ width: number;
2041
+ height: number;
2042
+ };
2043
+ color: string;
2044
+ opacity: number;
2045
+ createdAt: string;
2046
+ modifiedAt: string;
2047
+ source: "session" | "pdf";
2048
+ type: "stamp";
2049
+ imagedata: string;
1169
2050
  author?: string | undefined;
1170
2051
  contents?: string | undefined;
1171
2052
  inReplyTo?: string | undefined;
1172
2053
  locked?: boolean | undefined;
2054
+ subject?: string | undefined;
2055
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1173
2056
  custom?: Record<string, unknown> | undefined;
1174
- endings?: ["square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash", "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash"] | undefined;
2057
+ rotation?: 0 | 90 | 180 | 270 | undefined;
1175
2058
  } | {
1176
2059
  id: string;
1177
2060
  page: number;
@@ -1186,18 +2069,16 @@ export declare function useAnnotations(): {
1186
2069
  createdAt: string;
1187
2070
  modifiedAt: string;
1188
2071
  source: "session" | "pdf";
1189
- type: "polyline" | "polygon";
1190
- vertices: {
1191
- x: number;
1192
- y: number;
1193
- }[];
1194
- strokeWidth: number;
2072
+ type: "loupe";
2073
+ magnification: number;
2074
+ width: number;
1195
2075
  author?: string | undefined;
1196
2076
  contents?: string | undefined;
1197
2077
  inReplyTo?: string | undefined;
1198
2078
  locked?: boolean | undefined;
2079
+ subject?: string | undefined;
2080
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1199
2081
  custom?: Record<string, unknown> | undefined;
1200
- fill?: string | undefined;
1201
2082
  } | {
1202
2083
  id: string;
1203
2084
  page: number;
@@ -1212,16 +2093,15 @@ export declare function useAnnotations(): {
1212
2093
  createdAt: string;
1213
2094
  modifiedAt: string;
1214
2095
  source: "session" | "pdf";
1215
- type: "ink";
1216
- paths: {
1217
- x: number;
1218
- y: number;
1219
- }[][];
1220
- strokeWidth: number;
2096
+ type: "mask";
2097
+ shape: "rect" | "ellipse";
2098
+ dim: number;
1221
2099
  author?: string | undefined;
1222
2100
  contents?: string | undefined;
1223
2101
  inReplyTo?: string | undefined;
1224
2102
  locked?: boolean | undefined;
2103
+ subject?: string | undefined;
2104
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1225
2105
  custom?: Record<string, unknown> | undefined;
1226
2106
  } | {
1227
2107
  id: string;
@@ -1239,11 +2119,13 @@ export declare function useAnnotations(): {
1239
2119
  source: "session" | "pdf";
1240
2120
  type: "redact";
1241
2121
  origin: "user" | "suggested";
1242
- fill: string;
2122
+ interiorColor: string;
1243
2123
  author?: string | undefined;
1244
2124
  contents?: string | undefined;
1245
2125
  inReplyTo?: string | undefined;
1246
2126
  locked?: boolean | undefined;
2127
+ subject?: string | undefined;
2128
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1247
2129
  custom?: Record<string, unknown> | undefined;
1248
2130
  quads?: {
1249
2131
  p1: {
@@ -1309,6 +2191,8 @@ export declare function useAnnotations(): {
1309
2191
  contents?: string | undefined;
1310
2192
  inReplyTo?: string | undefined;
1311
2193
  locked?: boolean | undefined;
2194
+ subject?: string | undefined;
2195
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1312
2196
  custom?: Record<string, unknown> | undefined;
1313
2197
  } | {
1314
2198
  id: string;
@@ -1324,12 +2208,14 @@ export declare function useAnnotations(): {
1324
2208
  createdAt: string;
1325
2209
  modifiedAt: string;
1326
2210
  source: "session" | "pdf";
1327
- type: "note";
1328
- icon: "note" | "comment" | "help" | "insert" | "key" | "paragraph";
2211
+ type: "text";
2212
+ icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
1329
2213
  author?: string | undefined;
1330
2214
  contents?: string | undefined;
1331
2215
  inReplyTo?: string | undefined;
1332
2216
  locked?: boolean | undefined;
2217
+ subject?: string | undefined;
2218
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1333
2219
  custom?: Record<string, unknown> | undefined;
1334
2220
  } | {
1335
2221
  id: string;
@@ -1340,25 +2226,73 @@ export declare function useAnnotations(): {
1340
2226
  width: number;
1341
2227
  height: number;
1342
2228
  };
1343
- color: string;
1344
2229
  opacity: number;
1345
2230
  createdAt: string;
1346
2231
  modifiedAt: string;
1347
2232
  source: "session" | "pdf";
1348
- type: "freeText";
1349
- text: string;
1350
- fontSize: number;
1351
- fontFamily: string;
1352
- align: "left" | "center" | "right";
2233
+ type: "freetext";
2234
+ contents: string;
2235
+ width: number;
2236
+ defaultStyle: {
2237
+ fontFamily: string;
2238
+ fontSize: number;
2239
+ color: string;
2240
+ textAlign: "left" | "right" | "center" | "justify";
2241
+ fontWeight?: "bold" | undefined;
2242
+ fontStyle?: "italic" | undefined;
2243
+ textDecoration?: "underline" | undefined;
2244
+ align?: undefined;
2245
+ };
1353
2246
  author?: string | undefined;
1354
- contents?: string | undefined;
1355
2247
  inReplyTo?: string | undefined;
1356
2248
  locked?: boolean | undefined;
2249
+ subject?: string | undefined;
2250
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1357
2251
  custom?: Record<string, unknown> | undefined;
2252
+ color?: string | undefined;
2253
+ borderColor?: string | undefined;
2254
+ dashes?: number[] | undefined;
2255
+ cornerRadius?: number | undefined;
2256
+ fringe?: {
2257
+ left: number;
2258
+ top: number;
2259
+ right: number;
2260
+ bottom: number;
2261
+ } | undefined;
1358
2262
  callout?: {
1359
2263
  x: number;
1360
2264
  y: number;
1361
2265
  }[] | undefined;
2266
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
2267
+ fontFamily?: undefined;
2268
+ fontSize?: undefined;
2269
+ align?: undefined;
2270
+ } | {
2271
+ id: string;
2272
+ page: number;
2273
+ rect: {
2274
+ x: number;
2275
+ y: number;
2276
+ width: number;
2277
+ height: number;
2278
+ };
2279
+ color: string;
2280
+ opacity: number;
2281
+ createdAt: string;
2282
+ modifiedAt: string;
2283
+ source: "session" | "pdf";
2284
+ width: number;
2285
+ type: "square";
2286
+ author?: string | undefined;
2287
+ contents?: string | undefined;
2288
+ inReplyTo?: string | undefined;
2289
+ locked?: boolean | undefined;
2290
+ subject?: string | undefined;
2291
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2292
+ custom?: Record<string, unknown> | undefined;
2293
+ cornerRadius?: number | undefined;
2294
+ dashes?: number[] | undefined;
2295
+ interiorColor?: string | undefined;
1362
2296
  } | {
1363
2297
  id: string;
1364
2298
  page: number;
@@ -1373,14 +2307,18 @@ export declare function useAnnotations(): {
1373
2307
  createdAt: string;
1374
2308
  modifiedAt: string;
1375
2309
  source: "session" | "pdf";
1376
- type: "square" | "circle";
1377
- strokeWidth: number;
2310
+ width: number;
2311
+ type: "circle";
1378
2312
  author?: string | undefined;
1379
2313
  contents?: string | undefined;
1380
2314
  inReplyTo?: string | undefined;
1381
2315
  locked?: boolean | undefined;
2316
+ subject?: string | undefined;
2317
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1382
2318
  custom?: Record<string, unknown> | undefined;
1383
- fill?: string | undefined;
2319
+ cornerRadius?: undefined;
2320
+ dashes?: number[] | undefined;
2321
+ interiorColor?: string | undefined;
1384
2322
  } | {
1385
2323
  id: string;
1386
2324
  page: number;
@@ -1404,13 +2342,48 @@ export declare function useAnnotations(): {
1404
2342
  x: number;
1405
2343
  y: number;
1406
2344
  };
1407
- strokeWidth: number;
2345
+ width: number;
2346
+ author?: string | undefined;
2347
+ contents?: string | undefined;
2348
+ inReplyTo?: string | undefined;
2349
+ locked?: boolean | undefined;
2350
+ subject?: string | undefined;
2351
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2352
+ custom?: Record<string, unknown> | undefined;
2353
+ dashes?: number[] | undefined;
2354
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
2355
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
2356
+ } | {
2357
+ id: string;
2358
+ page: number;
2359
+ rect: {
2360
+ x: number;
2361
+ y: number;
2362
+ width: number;
2363
+ height: number;
2364
+ };
2365
+ color: string;
2366
+ opacity: number;
2367
+ createdAt: string;
2368
+ modifiedAt: string;
2369
+ source: "session" | "pdf";
2370
+ vertices: {
2371
+ x: number;
2372
+ y: number;
2373
+ }[];
2374
+ width: number;
2375
+ type: "polyline";
1408
2376
  author?: string | undefined;
1409
2377
  contents?: string | undefined;
1410
2378
  inReplyTo?: string | undefined;
1411
2379
  locked?: boolean | undefined;
2380
+ subject?: string | undefined;
2381
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1412
2382
  custom?: Record<string, unknown> | undefined;
1413
- endings?: ["square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash", "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash"] | undefined;
2383
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
2384
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
2385
+ dashes?: number[] | undefined;
2386
+ interiorColor?: string | undefined;
1414
2387
  } | {
1415
2388
  id: string;
1416
2389
  page: number;
@@ -1425,18 +2398,23 @@ export declare function useAnnotations(): {
1425
2398
  createdAt: string;
1426
2399
  modifiedAt: string;
1427
2400
  source: "session" | "pdf";
1428
- type: "polyline" | "polygon";
1429
2401
  vertices: {
1430
2402
  x: number;
1431
2403
  y: number;
1432
2404
  }[];
1433
- strokeWidth: number;
2405
+ width: number;
2406
+ type: "polygon";
1434
2407
  author?: string | undefined;
1435
2408
  contents?: string | undefined;
1436
2409
  inReplyTo?: string | undefined;
1437
2410
  locked?: boolean | undefined;
2411
+ subject?: string | undefined;
2412
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1438
2413
  custom?: Record<string, unknown> | undefined;
1439
- fill?: string | undefined;
2414
+ head?: undefined;
2415
+ tail?: undefined;
2416
+ dashes?: number[] | undefined;
2417
+ interiorColor?: string | undefined;
1440
2418
  } | {
1441
2419
  id: string;
1442
2420
  page: number;
@@ -1452,15 +2430,91 @@ export declare function useAnnotations(): {
1452
2430
  modifiedAt: string;
1453
2431
  source: "session" | "pdf";
1454
2432
  type: "ink";
1455
- paths: {
2433
+ inklist: {
1456
2434
  x: number;
1457
2435
  y: number;
1458
2436
  }[][];
1459
- strokeWidth: number;
2437
+ width: number;
2438
+ author?: string | undefined;
2439
+ contents?: string | undefined;
2440
+ inReplyTo?: string | undefined;
2441
+ locked?: boolean | undefined;
2442
+ subject?: string | undefined;
2443
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2444
+ custom?: Record<string, unknown> | undefined;
2445
+ pressure?: number[][] | undefined;
2446
+ dashes?: number[] | undefined;
2447
+ } | {
2448
+ id: string;
2449
+ page: number;
2450
+ rect: {
2451
+ x: number;
2452
+ y: number;
2453
+ width: number;
2454
+ height: number;
2455
+ };
2456
+ color: string;
2457
+ opacity: number;
2458
+ createdAt: string;
2459
+ modifiedAt: string;
2460
+ source: "session" | "pdf";
2461
+ type: "stamp";
2462
+ imagedata: string;
2463
+ author?: string | undefined;
2464
+ contents?: string | undefined;
2465
+ inReplyTo?: string | undefined;
2466
+ locked?: boolean | undefined;
2467
+ subject?: string | undefined;
2468
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2469
+ custom?: Record<string, unknown> | undefined;
2470
+ rotation?: 0 | 90 | 180 | 270 | undefined;
2471
+ } | {
2472
+ id: string;
2473
+ page: number;
2474
+ rect: {
2475
+ x: number;
2476
+ y: number;
2477
+ width: number;
2478
+ height: number;
2479
+ };
2480
+ color: string;
2481
+ opacity: number;
2482
+ createdAt: string;
2483
+ modifiedAt: string;
2484
+ source: "session" | "pdf";
2485
+ type: "loupe";
2486
+ magnification: number;
2487
+ width: number;
2488
+ author?: string | undefined;
2489
+ contents?: string | undefined;
2490
+ inReplyTo?: string | undefined;
2491
+ locked?: boolean | undefined;
2492
+ subject?: string | undefined;
2493
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2494
+ custom?: Record<string, unknown> | undefined;
2495
+ } | {
2496
+ id: string;
2497
+ page: number;
2498
+ rect: {
2499
+ x: number;
2500
+ y: number;
2501
+ width: number;
2502
+ height: number;
2503
+ };
2504
+ color: string;
2505
+ opacity: number;
2506
+ createdAt: string;
2507
+ modifiedAt: string;
2508
+ source: "session" | "pdf";
2509
+ type: "mask";
2510
+ shape: "rect" | "ellipse";
2511
+ dim: number;
1460
2512
  author?: string | undefined;
1461
2513
  contents?: string | undefined;
1462
2514
  inReplyTo?: string | undefined;
1463
2515
  locked?: boolean | undefined;
2516
+ subject?: string | undefined;
2517
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1464
2518
  custom?: Record<string, unknown> | undefined;
1465
2519
  } | {
1466
2520
  id: string;
@@ -1478,11 +2532,13 @@ export declare function useAnnotations(): {
1478
2532
  source: "session" | "pdf";
1479
2533
  type: "redact";
1480
2534
  origin: "user" | "suggested";
1481
- fill: string;
2535
+ interiorColor: string;
1482
2536
  author?: string | undefined;
1483
2537
  contents?: string | undefined;
1484
2538
  inReplyTo?: string | undefined;
1485
2539
  locked?: boolean | undefined;
2540
+ subject?: string | undefined;
2541
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1486
2542
  custom?: Record<string, unknown> | undefined;
1487
2543
  quads?: {
1488
2544
  p1: {
@@ -1549,6 +2605,8 @@ export declare function useAnnotations(): {
1549
2605
  contents?: string | undefined;
1550
2606
  inReplyTo?: string | undefined;
1551
2607
  locked?: boolean | undefined;
2608
+ subject?: string | undefined;
2609
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1552
2610
  custom?: Record<string, unknown> | undefined;
1553
2611
  } | {
1554
2612
  id: string;
@@ -1564,12 +2622,14 @@ export declare function useAnnotations(): {
1564
2622
  createdAt: string;
1565
2623
  modifiedAt: string;
1566
2624
  source: "session" | "pdf";
1567
- type: "note";
1568
- icon: "note" | "comment" | "help" | "insert" | "key" | "paragraph";
2625
+ type: "text";
2626
+ icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
1569
2627
  author?: string | undefined;
1570
2628
  contents?: string | undefined;
1571
2629
  inReplyTo?: string | undefined;
1572
2630
  locked?: boolean | undefined;
2631
+ subject?: string | undefined;
2632
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1573
2633
  custom?: Record<string, unknown> | undefined;
1574
2634
  } | {
1575
2635
  id: string;
@@ -1580,25 +2640,73 @@ export declare function useAnnotations(): {
1580
2640
  width: number;
1581
2641
  height: number;
1582
2642
  };
1583
- color: string;
1584
2643
  opacity: number;
1585
2644
  createdAt: string;
1586
2645
  modifiedAt: string;
1587
2646
  source: "session" | "pdf";
1588
- type: "freeText";
1589
- text: string;
1590
- fontSize: number;
1591
- fontFamily: string;
1592
- align: "left" | "center" | "right";
2647
+ type: "freetext";
2648
+ contents: string;
2649
+ width: number;
2650
+ defaultStyle: {
2651
+ fontFamily: string;
2652
+ fontSize: number;
2653
+ color: string;
2654
+ textAlign: "left" | "right" | "center" | "justify";
2655
+ fontWeight?: "bold" | undefined;
2656
+ fontStyle?: "italic" | undefined;
2657
+ textDecoration?: "underline" | undefined;
2658
+ align?: undefined;
2659
+ };
1593
2660
  author?: string | undefined;
1594
- contents?: string | undefined;
1595
2661
  inReplyTo?: string | undefined;
1596
2662
  locked?: boolean | undefined;
2663
+ subject?: string | undefined;
2664
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1597
2665
  custom?: Record<string, unknown> | undefined;
2666
+ color?: string | undefined;
2667
+ borderColor?: string | undefined;
2668
+ dashes?: number[] | undefined;
2669
+ cornerRadius?: number | undefined;
2670
+ fringe?: {
2671
+ left: number;
2672
+ top: number;
2673
+ right: number;
2674
+ bottom: number;
2675
+ } | undefined;
1598
2676
  callout?: {
1599
2677
  x: number;
1600
2678
  y: number;
1601
2679
  }[] | undefined;
2680
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
2681
+ fontFamily?: undefined;
2682
+ fontSize?: undefined;
2683
+ align?: undefined;
2684
+ } | {
2685
+ id: string;
2686
+ page: number;
2687
+ rect: {
2688
+ x: number;
2689
+ y: number;
2690
+ width: number;
2691
+ height: number;
2692
+ };
2693
+ color: string;
2694
+ opacity: number;
2695
+ createdAt: string;
2696
+ modifiedAt: string;
2697
+ source: "session" | "pdf";
2698
+ width: number;
2699
+ type: "square";
2700
+ author?: string | undefined;
2701
+ contents?: string | undefined;
2702
+ inReplyTo?: string | undefined;
2703
+ locked?: boolean | undefined;
2704
+ subject?: string | undefined;
2705
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2706
+ custom?: Record<string, unknown> | undefined;
2707
+ cornerRadius?: number | undefined;
2708
+ dashes?: number[] | undefined;
2709
+ interiorColor?: string | undefined;
1602
2710
  } | {
1603
2711
  id: string;
1604
2712
  page: number;
@@ -1613,14 +2721,18 @@ export declare function useAnnotations(): {
1613
2721
  createdAt: string;
1614
2722
  modifiedAt: string;
1615
2723
  source: "session" | "pdf";
1616
- type: "square" | "circle";
1617
- strokeWidth: number;
2724
+ width: number;
2725
+ type: "circle";
1618
2726
  author?: string | undefined;
1619
2727
  contents?: string | undefined;
1620
2728
  inReplyTo?: string | undefined;
1621
2729
  locked?: boolean | undefined;
2730
+ subject?: string | undefined;
2731
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1622
2732
  custom?: Record<string, unknown> | undefined;
1623
- fill?: string | undefined;
2733
+ cornerRadius?: undefined;
2734
+ dashes?: number[] | undefined;
2735
+ interiorColor?: string | undefined;
1624
2736
  } | {
1625
2737
  id: string;
1626
2738
  page: number;
@@ -1644,13 +2756,48 @@ export declare function useAnnotations(): {
1644
2756
  x: number;
1645
2757
  y: number;
1646
2758
  };
1647
- strokeWidth: number;
2759
+ width: number;
2760
+ author?: string | undefined;
2761
+ contents?: string | undefined;
2762
+ inReplyTo?: string | undefined;
2763
+ locked?: boolean | undefined;
2764
+ subject?: string | undefined;
2765
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2766
+ custom?: Record<string, unknown> | undefined;
2767
+ dashes?: number[] | undefined;
2768
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
2769
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
2770
+ } | {
2771
+ id: string;
2772
+ page: number;
2773
+ rect: {
2774
+ x: number;
2775
+ y: number;
2776
+ width: number;
2777
+ height: number;
2778
+ };
2779
+ color: string;
2780
+ opacity: number;
2781
+ createdAt: string;
2782
+ modifiedAt: string;
2783
+ source: "session" | "pdf";
2784
+ vertices: {
2785
+ x: number;
2786
+ y: number;
2787
+ }[];
2788
+ width: number;
2789
+ type: "polyline";
1648
2790
  author?: string | undefined;
1649
2791
  contents?: string | undefined;
1650
2792
  inReplyTo?: string | undefined;
1651
2793
  locked?: boolean | undefined;
2794
+ subject?: string | undefined;
2795
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1652
2796
  custom?: Record<string, unknown> | undefined;
1653
- endings?: ["square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash", "square" | "circle" | "none" | "openArrow" | "closedArrow" | "diamond" | "butt" | "slash"] | undefined;
2797
+ head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
2798
+ tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
2799
+ dashes?: number[] | undefined;
2800
+ interiorColor?: string | undefined;
1654
2801
  } | {
1655
2802
  id: string;
1656
2803
  page: number;
@@ -1665,18 +2812,23 @@ export declare function useAnnotations(): {
1665
2812
  createdAt: string;
1666
2813
  modifiedAt: string;
1667
2814
  source: "session" | "pdf";
1668
- type: "polyline" | "polygon";
1669
2815
  vertices: {
1670
2816
  x: number;
1671
2817
  y: number;
1672
2818
  }[];
1673
- strokeWidth: number;
2819
+ width: number;
2820
+ type: "polygon";
1674
2821
  author?: string | undefined;
1675
2822
  contents?: string | undefined;
1676
2823
  inReplyTo?: string | undefined;
1677
2824
  locked?: boolean | undefined;
2825
+ subject?: string | undefined;
2826
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1678
2827
  custom?: Record<string, unknown> | undefined;
1679
- fill?: string | undefined;
2828
+ head?: undefined;
2829
+ tail?: undefined;
2830
+ dashes?: number[] | undefined;
2831
+ interiorColor?: string | undefined;
1680
2832
  } | {
1681
2833
  id: string;
1682
2834
  page: number;
@@ -1692,15 +2844,91 @@ export declare function useAnnotations(): {
1692
2844
  modifiedAt: string;
1693
2845
  source: "session" | "pdf";
1694
2846
  type: "ink";
1695
- paths: {
2847
+ inklist: {
1696
2848
  x: number;
1697
2849
  y: number;
1698
2850
  }[][];
1699
- strokeWidth: number;
2851
+ width: number;
2852
+ author?: string | undefined;
2853
+ contents?: string | undefined;
2854
+ inReplyTo?: string | undefined;
2855
+ locked?: boolean | undefined;
2856
+ subject?: string | undefined;
2857
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2858
+ custom?: Record<string, unknown> | undefined;
2859
+ pressure?: number[][] | undefined;
2860
+ dashes?: number[] | undefined;
2861
+ } | {
2862
+ id: string;
2863
+ page: number;
2864
+ rect: {
2865
+ x: number;
2866
+ y: number;
2867
+ width: number;
2868
+ height: number;
2869
+ };
2870
+ color: string;
2871
+ opacity: number;
2872
+ createdAt: string;
2873
+ modifiedAt: string;
2874
+ source: "session" | "pdf";
2875
+ type: "stamp";
2876
+ imagedata: string;
2877
+ author?: string | undefined;
2878
+ contents?: string | undefined;
2879
+ inReplyTo?: string | undefined;
2880
+ locked?: boolean | undefined;
2881
+ subject?: string | undefined;
2882
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2883
+ custom?: Record<string, unknown> | undefined;
2884
+ rotation?: 0 | 90 | 180 | 270 | undefined;
2885
+ } | {
2886
+ id: string;
2887
+ page: number;
2888
+ rect: {
2889
+ x: number;
2890
+ y: number;
2891
+ width: number;
2892
+ height: number;
2893
+ };
2894
+ color: string;
2895
+ opacity: number;
2896
+ createdAt: string;
2897
+ modifiedAt: string;
2898
+ source: "session" | "pdf";
2899
+ type: "loupe";
2900
+ magnification: number;
2901
+ width: number;
2902
+ author?: string | undefined;
2903
+ contents?: string | undefined;
2904
+ inReplyTo?: string | undefined;
2905
+ locked?: boolean | undefined;
2906
+ subject?: string | undefined;
2907
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
2908
+ custom?: Record<string, unknown> | undefined;
2909
+ } | {
2910
+ id: string;
2911
+ page: number;
2912
+ rect: {
2913
+ x: number;
2914
+ y: number;
2915
+ width: number;
2916
+ height: number;
2917
+ };
2918
+ color: string;
2919
+ opacity: number;
2920
+ createdAt: string;
2921
+ modifiedAt: string;
2922
+ source: "session" | "pdf";
2923
+ type: "mask";
2924
+ shape: "rect" | "ellipse";
2925
+ dim: number;
1700
2926
  author?: string | undefined;
1701
2927
  contents?: string | undefined;
1702
2928
  inReplyTo?: string | undefined;
1703
2929
  locked?: boolean | undefined;
2930
+ subject?: string | undefined;
2931
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1704
2932
  custom?: Record<string, unknown> | undefined;
1705
2933
  } | {
1706
2934
  id: string;
@@ -1718,11 +2946,13 @@ export declare function useAnnotations(): {
1718
2946
  source: "session" | "pdf";
1719
2947
  type: "redact";
1720
2948
  origin: "user" | "suggested";
1721
- fill: string;
2949
+ interiorColor: string;
1722
2950
  author?: string | undefined;
1723
2951
  contents?: string | undefined;
1724
2952
  inReplyTo?: string | undefined;
1725
2953
  locked?: boolean | undefined;
2954
+ subject?: string | undefined;
2955
+ intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
1726
2956
  custom?: Record<string, unknown> | undefined;
1727
2957
  quads?: {
1728
2958
  p1: {
@@ -1759,6 +2989,43 @@ export declare function useTool(): {
1759
2989
  setTool: (id: import("@inkbar/core/dom").ToolId) => void;
1760
2990
  };
1761
2991
  //#endregion
2992
+ //#region src/hooks/useToolStyle.d.ts
2993
+ interface ToolStyleView {
2994
+ current: CurrentStyle;
2995
+ supported: ReadonlySet<StyleKey>;
2996
+ /** A group's own style. */
2997
+ get: (group: StyleGroup) => Readonly<StyleProps>;
2998
+ }
2999
+ /** The tool style for the active tool or the selection. */
3000
+ interface ToolStyleHandle extends ToolStyleView {
3001
+ set: (patch: StyleProps, opts?: {
3002
+ group?: StyleGroup;
3003
+ apply?: boolean;
3004
+ }) => void;
3005
+ }
3006
+ /** The tool style scoped to one group: `set` writes that group, so it takes no options. */
3007
+ interface ScopedToolStyleHandle extends ToolStyleView {
3008
+ set: (patch: StyleProps) => void;
3009
+ }
3010
+ /**
3011
+ * The tool style the style controls read and write: `current` shows the selection's values
3012
+ * (`'mixed'` where they differ), else the active tool's group; `supported` names the props
3013
+ * the active tool or the selection has. `set` updates the group and the selected annotations.
3014
+ *
3015
+ * With `group`, the style as a control for that group sees it, whatever tool is active: the
3016
+ * selection's when it is all in the group, else the group's own; `set` updates the group, and
3017
+ * the selection only when it is all in the group.
3018
+ */
3019
+ export declare function useToolStyle(): ToolStyleHandle;
3020
+ export declare function useToolStyle(group: StyleGroup | undefined): ScopedToolStyleHandle;
3021
+ //#endregion
3022
+ //#region src/hooks/useToolOptions.d.ts
3023
+ /**
3024
+ * A tool's options and a setter that merges a patch into them without switching tools.
3025
+ * Options are empty, and the setter does nothing, until the viewport has mounted.
3026
+ */
3027
+ export declare function useToolOptions<O extends object = object>(id: ToolId): [O, (patch: Partial<O>) => void];
3028
+ //#endregion
1762
3029
  //#region src/hooks/useSelection.d.ts
1763
3030
  export declare function useSelection(): {
1764
3031
  selection: readonly string[];
@@ -1825,6 +3092,24 @@ interface InkRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
1825
3092
  onChange?: ((change: AnnotationChange) => void) | undefined;
1826
3093
  tool?: ToolId | undefined;
1827
3094
  onToolChange?: ((tool: ToolId) => void) | undefined;
3095
+ /**
3096
+ * Host tools, added to the built-ins; one with a built-in's id replaces it. Read when a
3097
+ * document opens.
3098
+ */
3099
+ tools?: Tool[] | undefined;
3100
+ /**
3101
+ * The font families text boxes offer, replacing the PDF standard families
3102
+ * (`FONT_FAMILIES`). Fonts beyond those are the PDF writer's to embed.
3103
+ */
3104
+ fonts?: string[] | undefined;
3105
+ /**
3106
+ * Where saved signatures live. Default: memory, gone on reload. `createLocalSignatureStore`
3107
+ * keeps them in the browser; a host can keep them anywhere. A new store takes effect at
3108
+ * once, for the menus and the `signature` tool alike.
3109
+ */
3110
+ signatures?: SignatureStore | undefined;
3111
+ /** The handwriting fonts a typed signature offers; the host loads them. */
3112
+ signatureFonts?: string[] | undefined;
1828
3113
  page?: number | undefined;
1829
3114
  onPageChange?: ((page: number) => void) | undefined;
1830
3115
  zoom?: ZoomValue | undefined;
@@ -1841,7 +3126,7 @@ interface InkRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
1841
3126
  }) => ReactNode);
1842
3127
  ref?: Ref<InkRootHandle>;
1843
3128
  }
1844
- export declare function InkRoot({ src, assets, password, defaults, annotations, onAnnotationsChange, onChange, tool, onToolChange, page, onPageChange, zoom, onZoomChange, history, asChild, onReady, onError, onActivate, children, ref, ...rest }: InkRootProps): import("react").JSX.Element;
3129
+ export declare function InkRoot({ src, assets, password, defaults, annotations, onAnnotationsChange, onChange, tool, onToolChange, tools: hostTools, fonts: fontsProp, signatures: signatureStore, signatureFonts: signatureFontsProp, page, onPageChange, zoom, onZoomChange, history, asChild, onReady, onError, onActivate, children, ref, ...rest }: InkRootProps): import("react").JSX.Element;
1845
3130
  //#endregion
1846
3131
  //#region src/components/InkViewport.d.ts
1847
3132
  interface InkViewportProps extends ComponentPropsWithoutRef<'div'> {
@@ -1976,11 +3261,81 @@ export declare function InkPrevPage({ asChild, className, children, disabled, on
1976
3261
  //#region src/components/InkNextPage.d.ts
1977
3262
  export declare function InkNextPage({ asChild, className, children, disabled, onClick, ...rest }: InkPageButtonProps): import("react").JSX.Element;
1978
3263
  //#endregion
1979
- //#region src/components/InkNotePopover.d.ts
1980
- interface InkNotePopoverProps {
1981
- children?: ((props: NotePopoverSlotProps$1) => ReactNode) | undefined;
3264
+ //#region src/components/InkColorMenu.d.ts
3265
+ interface InkColorMenuProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children'> {
3266
+ /** The colour this menu sets. */
3267
+ property: ColorProperty;
3268
+ /** Accessible name; defaults to "Border colour", "Fill colour" or "Text colour". */
3269
+ label?: string;
3270
+ /** Replaces the swatch. */
3271
+ children?: ReactNode;
3272
+ /**
3273
+ * Renders the trigger outside the toolbar's roving focus, for a menu nested in another
3274
+ * panel (the text style menu's text colour).
3275
+ */
3276
+ standalone?: boolean;
3277
+ /**
3278
+ * Scopes the menu to one style group: it shows and sets that group's colour whatever tool
3279
+ * is active, and recolours the selection only when it is all in the group.
3280
+ */
3281
+ group?: StyleGroup;
3282
+ }
3283
+ export declare function InkColorMenu({ property, label, className, children, standalone, group, disabled, ...rest }: InkColorMenuProps): import("react").JSX.Element;
3284
+ //#endregion
3285
+ //#region src/components/InkShapeMenu.d.ts
3286
+ interface InkShapeMenuProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
3287
+ /** Replaces the main button's icon. */
3288
+ children?: ReactNode;
3289
+ }
3290
+ export declare function InkShapeMenu({ className, children, ...rest }: InkShapeMenuProps): import("react").JSX.Element;
3291
+ //#endregion
3292
+ //#region src/components/InkSignatureMenu.d.ts
3293
+ interface InkSignatureMenuProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
3294
+ /** Replaces the main button's icon. */
3295
+ children?: ReactNode;
3296
+ /** The fonts the dialog's Type tab offers. Default: InkRoot's `signatureFonts`. */
3297
+ fonts?: readonly string[] | undefined;
3298
+ }
3299
+ export declare function InkSignatureMenu({ className, children, fonts, ...rest }: InkSignatureMenuProps): import("react").JSX.Element;
3300
+ //#endregion
3301
+ //#region src/components/InkSignatureDialog.d.ts
3302
+ interface InkSignatureDialogProps {
3303
+ open: boolean;
3304
+ onOpenChange: (open: boolean) => void;
3305
+ /** The fonts the Type tab offers. Default: InkRoot's `signatureFonts`. */
3306
+ fonts?: readonly string[] | undefined;
3307
+ /** Called with the new template once it is saved and selected. */
3308
+ onSave?: ((template: SignatureTemplate) => void) | undefined;
3309
+ /** Where focus goes on close; by default, back to what had it before. */
3310
+ onCloseAutoFocus?: ((event: Event) => void) | undefined;
3311
+ className?: string | undefined;
3312
+ }
3313
+ export declare function InkSignatureDialog({ open, onOpenChange, fonts, onSave, onCloseAutoFocus, className }: InkSignatureDialogProps): import("react").JSX.Element;
3314
+ //#endregion
3315
+ //#region src/components/InkHighlightMenu.d.ts
3316
+ interface InkHighlightMenuProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
3317
+ /** Replaces the main button's icon. */
3318
+ children?: ReactNode;
3319
+ }
3320
+ export declare function InkHighlightMenu({ className, children, ...rest }: InkHighlightMenuProps): import("react").JSX.Element;
3321
+ //#endregion
3322
+ //#region src/components/InkTextStyleMenu.d.ts
3323
+ interface InkTextStyleMenuProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children'> {
3324
+ children?: ReactNode;
3325
+ }
3326
+ export declare function InkTextStyleMenu({ className, children, disabled, ...rest }: InkTextStyleMenuProps): import("react").JSX.Element;
3327
+ //#endregion
3328
+ //#region src/components/InkLineStyleMenu.d.ts
3329
+ interface InkLineStyleMenuProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children'> {
3330
+ children?: ReactNode;
3331
+ }
3332
+ export declare function InkLineStyleMenu({ className, children, disabled, ...rest }: InkLineStyleMenuProps): import("react").JSX.Element;
3333
+ //#endregion
3334
+ //#region src/components/InkThreadPopover.d.ts
3335
+ interface InkThreadPopoverProps {
3336
+ children?: ((props: ThreadPopoverSlotProps$1) => ReactNode) | undefined;
1982
3337
  }
1983
- export declare function InkNotePopover({ children }: InkNotePopoverProps): import("react").JSX.Element;
3338
+ export declare function InkThreadPopover({ children }: InkThreadPopoverProps): import("react").JSX.Element;
1984
3339
  //#endregion
1985
3340
  //#region src/components/InkSuggestionCard.d.ts
1986
3341
  interface InkSuggestionCardProps {
@@ -1988,5 +3343,5 @@ interface InkSuggestionCardProps {
1988
3343
  }
1989
3344
  export declare function InkSuggestionCard({ children }: InkSuggestionCardProps): import("react").JSX.Element;
1990
3345
  //#endregion
1991
- export type { AnnotationSlotProps, AnnotationState, ConfidenceBucket, InkAnnotationProps, InkContext, InkHistory, InkHistoryButtonProps, InkIconProps, InkNotePopoverProps, InkPageButtonProps, InkPageInputProps, InkPageProps, InkRootHandle, InkRootProps, InkStatus, InkSuggestionCardProps, InkToolButtonProps, InkToolbarProps, InkToolbarSeparatorProps, InkViewportProps, InkZoomButtonProps, InkZoomSelectProps, NotePopoverSlotProps, SuggestionCardSlotProps };
3346
+ export type { AnnotationSlotProps, AnnotationState, ConfidenceBucket, InkAnnotationProps, InkColorMenuProps, InkContext, InkHighlightMenuProps, InkHistory, InkHistoryButtonProps, InkIconProps, InkLineStyleMenuProps, InkPageButtonProps, InkPageInputProps, InkPageProps, InkRootHandle, InkRootProps, InkShapeMenuProps, InkSignatureDialogProps, InkSignatureMenuProps, InkStatus, InkSuggestionCardProps, InkTextStyleMenuProps, InkThreadPopoverProps, InkToolButtonProps, InkToolbarProps, InkToolbarSeparatorProps, InkViewportProps, InkZoomButtonProps, InkZoomSelectProps, ScopedToolStyleHandle, SuggestionCardSlotProps, ThreadPopoverSlotProps, ToolStyleHandle };
1992
3347
  //# sourceMappingURL=index.d.mts.map