@inkbar/core 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2284 @@
1
+ import { Annotation, GLOSS_FORMAT as GLOSS_FORMAT$1, GLOSS_MEDIA_TYPE, GLOSS_SCHEMA_ID, GLOSS_VERSION as GLOSS_VERSION$1, GlossDocument, IMAGE_DATA_URL, UnknownAnnotation } from "gloss-format";
2
+ import { z } from "zod";
3
+ import * as pdfjs from "pdfjs-dist";
4
+ //#region src/model/geometry.d.ts
5
+ /**
6
+ * All geometry in this module is PDF default user space: points, origin at the
7
+ * lower-left of the page, before /Rotate. Pixel conversions live in dom/transform.ts.
8
+ */
9
+ interface Point$1 {
10
+ x: number;
11
+ y: number;
12
+ }
13
+ /** Axis-aligned box. `x`,`y` is the lower-left corner. */
14
+ interface Rect$1 {
15
+ x: number;
16
+ y: number;
17
+ width: number;
18
+ height: number;
19
+ }
20
+ /** Four corners in PDF.js's normalised QuadPoints order: upper-left, upper-right, lower-left, lower-right. */
21
+ interface Quad {
22
+ p1: Point$1;
23
+ p2: Point$1;
24
+ p3: Point$1;
25
+ p4: Point$1;
26
+ }
27
+ /** PDF transformation matrix [a b c d e f]: x' = a·x + c·y + e, y' = b·x + d·y + f. */
28
+ type Matrix = readonly [number, number, number, number, number, number];
29
+ declare function approxEqual(a: number, b: number, eps?: number): boolean;
30
+ declare function rectFromPoints(a: Point$1, b: Point$1): Rect$1;
31
+ declare function rectFromQuad(q: Quad): Rect$1;
32
+ declare function quadFromRect(r: Rect$1): Quad;
33
+ declare function unionRects(rects: readonly Rect$1[]): Rect$1;
34
+ declare function rectsIntersect(a: Rect$1, b: Rect$1): boolean;
35
+ declare function rectContainsPoint(r: Rect$1, p: Point$1): boolean;
36
+ declare function translateRect(r: Rect$1, dx: number, dy: number): Rect$1;
37
+ declare function translateQuad(q: Quad, dx: number, dy: number): Quad;
38
+ declare function applyMatrix(m: Matrix, p: Point$1): Point$1;
39
+ declare function invertMatrix(m: Matrix): Matrix;
40
+ /** Returns the matrix that applies `a` first, then `b`. */
41
+ declare function multiplyMatrix(a: Matrix, b: Matrix): Matrix;
42
+ declare function pointsFromFlat(flat: ArrayLike<number>): Point$1[];
43
+ /** Eight numbers per quad, in PDF.js's normalised order. Trailing partial quads are dropped. */
44
+ declare function quadsFromFlat(flat: ArrayLike<number>): Quad[];
45
+ //#endregion
46
+ //#region src/pdfjs/types.d.ts
47
+ type PdfjsModule = typeof pdfjs;
48
+ type PdfjsDocument = pdfjs.PDFDocumentProxy;
49
+ type PdfjsPage = pdfjs.PDFPageProxy;
50
+ /** The shape of one entry from `PDFPageProxy.getAnnotations()`, limited to the fields Inkbar reads. */
51
+ interface PdfjsAnnotationData {
52
+ id: string;
53
+ subtype: string;
54
+ annotationType: number;
55
+ rect: [number, number, number, number];
56
+ quadPoints?: Float32Array | number[] | null;
57
+ color?: Uint8ClampedArray | null;
58
+ interiorColor?: Uint8ClampedArray | null;
59
+ opacity?: number;
60
+ contentsObj?: {
61
+ str: string;
62
+ dir: string;
63
+ };
64
+ titleObj?: {
65
+ str: string;
66
+ dir: string;
67
+ };
68
+ inReplyTo?: string;
69
+ replyType?: string;
70
+ creationDate?: string | null;
71
+ modificationDate?: string | null;
72
+ name?: string;
73
+ /** The intent (`/IT`), a PDF name. PDF.js 6.4 does not pass FreeText `/CL`, `/RD` or `/LE`. */
74
+ it?: string;
75
+ borderStyle?: {
76
+ width: number;
77
+ } | null;
78
+ lineCoordinates?: [number, number, number, number];
79
+ vertices?: Float32Array | number[];
80
+ inkLists?: Array<Float32Array | number[]>;
81
+ lineEndings?: string[];
82
+ /** Text under a markup annotation, not a redaction's overlay text. */
83
+ overlaidText?: string;
84
+ defaultAppearanceData?: {
85
+ fontSize: number;
86
+ fontName?: string;
87
+ fontColor?: Uint8ClampedArray | number[] | {
88
+ [index: number]: number;
89
+ };
90
+ };
91
+ hasAppearance?: boolean;
92
+ hidden?: boolean;
93
+ noView?: boolean;
94
+ }
95
+ interface PdfAssets {
96
+ /** URL (or file path in Node) of `pdf.worker(.min).mjs`. */
97
+ worker: string;
98
+ /** Directory URL ending in `/` containing the packed CMaps. */
99
+ cMaps: string;
100
+ /** Directory URL ending in `/` containing the standard 14 fonts. */
101
+ standardFonts: string;
102
+ /** Directory URL ending in `/` containing the image-decoder wasm files. */
103
+ wasm: string;
104
+ /** Directory URL ending in `/` containing ICC profiles. Optional. */
105
+ icc?: string;
106
+ }
107
+ //#endregion
108
+ //#region src/model/pages.d.ts
109
+ type PageRotation = 0 | 90 | 180 | 270;
110
+ interface PageInfo {
111
+ index: number;
112
+ /** CropBox ∩ MediaBox in user space before /Rotate, as PDF.js reports `page.view`. */
113
+ box: Rect$1;
114
+ /** The page's own /Rotate. View rotation applied by the viewer is separate. */
115
+ rotate: PageRotation;
116
+ userUnit: number;
117
+ /** Unrotated box width in points. */
118
+ width: number;
119
+ /** Unrotated box height in points. */
120
+ height: number;
121
+ }
122
+ //#endregion
123
+ //#region src/model/readable.d.ts
124
+ interface Readable<T> {
125
+ get(): T;
126
+ subscribe(fn: (value: T) => void): () => void;
127
+ }
128
+ interface Writable<T> extends Readable<T> {
129
+ set(this: void, value: T): void;
130
+ /** Safe to call detached (`const { update } = store`). */
131
+ update(this: void, fn: (value: T) => T): void;
132
+ }
133
+ declare function writable<T>(initial: T): Writable<T>;
134
+ /**
135
+ * A readable computed from `source`. It subscribes to the source only while it has
136
+ * subscribers of its own, so an unobserved derived value holds no reference to the source.
137
+ */
138
+ declare function derived<T, U>(source: Readable<T>, fn: (value: T) => U): Readable<U>;
139
+ declare function readonly<T>(w: Writable<T>): Readable<T>;
140
+ //#endregion
141
+ //#region src/model/annotations/types.d.ts
142
+ declare const PointSchema: z.ZodObject<{
143
+ x: z.ZodNumber;
144
+ y: z.ZodNumber;
145
+ }, z.core.$strip>;
146
+ declare const RectSchema: z.ZodObject<{
147
+ x: z.ZodNumber;
148
+ y: z.ZodNumber;
149
+ width: z.ZodNumber;
150
+ height: z.ZodNumber;
151
+ }, z.core.$strip>;
152
+ declare const QuadSchema: z.ZodObject<{
153
+ p1: z.ZodObject<{
154
+ x: z.ZodNumber;
155
+ y: z.ZodNumber;
156
+ }, z.core.$strip>;
157
+ p2: z.ZodObject<{
158
+ x: z.ZodNumber;
159
+ y: z.ZodNumber;
160
+ }, z.core.$strip>;
161
+ p3: z.ZodObject<{
162
+ x: z.ZodNumber;
163
+ y: z.ZodNumber;
164
+ }, z.core.$strip>;
165
+ p4: z.ZodObject<{
166
+ x: z.ZodNumber;
167
+ y: z.ZodNumber;
168
+ }, z.core.$strip>;
169
+ }, z.core.$strip>;
170
+ declare const TextMarkupSchema: z.ZodObject<{
171
+ type: z.ZodEnum<{
172
+ highlight: "highlight";
173
+ underline: "underline";
174
+ strikeout: "strikeout";
175
+ squiggly: "squiggly";
176
+ }>;
177
+ quads: z.ZodArray<z.ZodObject<{
178
+ p1: z.ZodObject<{
179
+ x: z.ZodNumber;
180
+ y: z.ZodNumber;
181
+ }, z.core.$strip>;
182
+ p2: z.ZodObject<{
183
+ x: z.ZodNumber;
184
+ y: z.ZodNumber;
185
+ }, z.core.$strip>;
186
+ p3: z.ZodObject<{
187
+ x: z.ZodNumber;
188
+ y: z.ZodNumber;
189
+ }, z.core.$strip>;
190
+ p4: z.ZodObject<{
191
+ x: z.ZodNumber;
192
+ y: z.ZodNumber;
193
+ }, z.core.$strip>;
194
+ }, z.core.$strip>>;
195
+ rect: z.ZodObject<{
196
+ x: z.ZodNumber;
197
+ y: z.ZodNumber;
198
+ width: z.ZodNumber;
199
+ height: z.ZodNumber;
200
+ }, z.core.$strip>;
201
+ color: z.ZodString;
202
+ opacity: z.ZodNumber;
203
+ createdAt: z.ZodISODateTime;
204
+ modifiedAt: z.ZodISODateTime;
205
+ source: z.ZodEnum<{
206
+ session: "session";
207
+ pdf: "pdf";
208
+ }>;
209
+ locked: z.ZodOptional<z.ZodBoolean>;
210
+ id: z.ZodString;
211
+ page: z.ZodNumber;
212
+ author: z.ZodOptional<z.ZodString>;
213
+ contents: z.ZodOptional<z.ZodString>;
214
+ inReplyTo: z.ZodOptional<z.ZodString>;
215
+ subject: z.ZodOptional<z.ZodString>;
216
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
217
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
218
+ }, z.core.$strip>;
219
+ /** A note's icon (XFDF `icon`): a PDF name, so a name Inkbar does not know is kept. */
220
+ declare const NoteIconSchema: z.ZodType<(string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", z.core.$ZodTypeInternals<(string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph">>;
221
+ declare const NoteSchema: z.ZodObject<{
222
+ rect: z.ZodObject<{
223
+ x: z.ZodNumber;
224
+ y: z.ZodNumber;
225
+ width: z.ZodNumber;
226
+ height: z.ZodNumber;
227
+ }, z.core.$strip>;
228
+ color: z.ZodString;
229
+ opacity: z.ZodNumber;
230
+ createdAt: z.ZodISODateTime;
231
+ modifiedAt: z.ZodISODateTime;
232
+ source: z.ZodEnum<{
233
+ session: "session";
234
+ pdf: "pdf";
235
+ }>;
236
+ locked: z.ZodOptional<z.ZodBoolean>;
237
+ icon: z.ZodDefault<z.ZodType<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), z.core.$ZodTypeInternals<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {})>>>;
238
+ id: z.ZodString;
239
+ page: z.ZodNumber;
240
+ author: z.ZodOptional<z.ZodString>;
241
+ contents: z.ZodOptional<z.ZodString>;
242
+ inReplyTo: z.ZodOptional<z.ZodString>;
243
+ subject: z.ZodOptional<z.ZodString>;
244
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
245
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
246
+ type: z.ZodLiteral<"text">;
247
+ }, z.core.$strip>;
248
+ /** A line ending (XFDF `head`/`tail`): a PDF name, so a name Inkbar does not know is kept. */
249
+ declare const LineEndingSchema: z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>;
250
+ /**
251
+ * A free-text box's text style, keyed by the CSS property names XFDF writes in its
252
+ * `defaultstyle` string. The older `align` is refused; other unknown keys are dropped.
253
+ */
254
+ declare const FreeTextStyleSchema: z.ZodObject<{
255
+ color: z.ZodString;
256
+ align: z.ZodOptional<z.ZodNever>;
257
+ fontFamily: z.ZodDefault<z.ZodString>;
258
+ fontSize: z.ZodDefault<z.ZodNumber>;
259
+ textAlign: z.ZodDefault<z.ZodEnum<{
260
+ left: "left";
261
+ right: "right";
262
+ center: "center";
263
+ justify: "justify";
264
+ }>>;
265
+ fontWeight: z.ZodOptional<z.ZodLiteral<"bold">>;
266
+ fontStyle: z.ZodOptional<z.ZodLiteral<"italic">>;
267
+ textDecoration: z.ZodOptional<z.ZodLiteral<"underline">>;
268
+ }, z.core.$strip>;
269
+ /**
270
+ * Free text, as XFDF has it: `color` is the box's fill and the text style lives in
271
+ * `defaultStyle`. A box in the older shape (top-level `fontFamily`, `fontSize`, `align`) is
272
+ * refused rather than silently losing its style; other unknown keys are dropped.
273
+ */
274
+ declare const FreeTextSchema: z.ZodObject<{
275
+ color: z.ZodOptional<z.ZodString>;
276
+ borderColor: z.ZodOptional<z.ZodString>;
277
+ defaultStyle: z.ZodObject<{
278
+ color: z.ZodString;
279
+ align: z.ZodOptional<z.ZodNever>;
280
+ fontFamily: z.ZodDefault<z.ZodString>;
281
+ fontSize: z.ZodDefault<z.ZodNumber>;
282
+ textAlign: z.ZodDefault<z.ZodEnum<{
283
+ left: "left";
284
+ right: "right";
285
+ center: "center";
286
+ justify: "justify";
287
+ }>>;
288
+ fontWeight: z.ZodOptional<z.ZodLiteral<"bold">>;
289
+ fontStyle: z.ZodOptional<z.ZodLiteral<"italic">>;
290
+ textDecoration: z.ZodOptional<z.ZodLiteral<"underline">>;
291
+ }, z.core.$strip>;
292
+ fringe: z.ZodOptional<z.ZodObject<{
293
+ left: z.ZodNumber;
294
+ top: z.ZodNumber;
295
+ right: z.ZodNumber;
296
+ bottom: z.ZodNumber;
297
+ }, z.core.$strip>>;
298
+ callout: z.ZodOptional<z.ZodArray<z.ZodObject<{
299
+ x: z.ZodNumber;
300
+ y: z.ZodNumber;
301
+ }, z.core.$strip>>>;
302
+ fontFamily: z.ZodOptional<z.ZodNever>;
303
+ fontSize: z.ZodOptional<z.ZodNever>;
304
+ align: z.ZodOptional<z.ZodNever>;
305
+ rect: z.ZodObject<{
306
+ x: z.ZodNumber;
307
+ y: z.ZodNumber;
308
+ width: z.ZodNumber;
309
+ height: z.ZodNumber;
310
+ }, z.core.$strip>;
311
+ opacity: z.ZodNumber;
312
+ createdAt: z.ZodISODateTime;
313
+ modifiedAt: z.ZodISODateTime;
314
+ source: z.ZodEnum<{
315
+ session: "session";
316
+ pdf: "pdf";
317
+ }>;
318
+ locked: z.ZodOptional<z.ZodBoolean>;
319
+ contents: z.ZodString;
320
+ width: z.ZodDefault<z.ZodNumber>;
321
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
322
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
323
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
324
+ id: z.ZodString;
325
+ page: z.ZodNumber;
326
+ author: z.ZodOptional<z.ZodString>;
327
+ inReplyTo: z.ZodOptional<z.ZodString>;
328
+ subject: z.ZodOptional<z.ZodString>;
329
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
330
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
331
+ type: z.ZodLiteral<"freetext">;
332
+ }, z.core.$strip>;
333
+ declare const SquareSchema: z.ZodObject<{
334
+ rect: z.ZodObject<{
335
+ x: z.ZodNumber;
336
+ y: z.ZodNumber;
337
+ width: z.ZodNumber;
338
+ height: z.ZodNumber;
339
+ }, z.core.$strip>;
340
+ color: z.ZodString;
341
+ opacity: z.ZodNumber;
342
+ createdAt: z.ZodISODateTime;
343
+ modifiedAt: z.ZodISODateTime;
344
+ source: z.ZodEnum<{
345
+ session: "session";
346
+ pdf: "pdf";
347
+ }>;
348
+ locked: z.ZodOptional<z.ZodBoolean>;
349
+ width: z.ZodDefault<z.ZodNumber>;
350
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
351
+ interiorColor: z.ZodOptional<z.ZodString>;
352
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
353
+ id: z.ZodString;
354
+ page: z.ZodNumber;
355
+ author: z.ZodOptional<z.ZodString>;
356
+ contents: z.ZodOptional<z.ZodString>;
357
+ inReplyTo: z.ZodOptional<z.ZodString>;
358
+ subject: z.ZodOptional<z.ZodString>;
359
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
360
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
361
+ type: z.ZodLiteral<"square">;
362
+ }, z.core.$strip>;
363
+ declare const CircleSchema: z.ZodObject<{
364
+ cornerRadius: z.ZodOptional<z.ZodNever>;
365
+ rect: z.ZodObject<{
366
+ x: z.ZodNumber;
367
+ y: z.ZodNumber;
368
+ width: z.ZodNumber;
369
+ height: z.ZodNumber;
370
+ }, z.core.$strip>;
371
+ color: z.ZodString;
372
+ opacity: z.ZodNumber;
373
+ createdAt: z.ZodISODateTime;
374
+ modifiedAt: z.ZodISODateTime;
375
+ source: z.ZodEnum<{
376
+ session: "session";
377
+ pdf: "pdf";
378
+ }>;
379
+ locked: z.ZodOptional<z.ZodBoolean>;
380
+ width: z.ZodDefault<z.ZodNumber>;
381
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
382
+ interiorColor: z.ZodOptional<z.ZodString>;
383
+ id: z.ZodString;
384
+ page: z.ZodNumber;
385
+ author: z.ZodOptional<z.ZodString>;
386
+ contents: z.ZodOptional<z.ZodString>;
387
+ inReplyTo: z.ZodOptional<z.ZodString>;
388
+ subject: z.ZodOptional<z.ZodString>;
389
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
390
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
391
+ type: z.ZodLiteral<"circle">;
392
+ }, z.core.$strip>;
393
+ declare const ShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
394
+ rect: z.ZodObject<{
395
+ x: z.ZodNumber;
396
+ y: z.ZodNumber;
397
+ width: z.ZodNumber;
398
+ height: z.ZodNumber;
399
+ }, z.core.$strip>;
400
+ color: z.ZodString;
401
+ opacity: z.ZodNumber;
402
+ createdAt: z.ZodISODateTime;
403
+ modifiedAt: z.ZodISODateTime;
404
+ source: z.ZodEnum<{
405
+ session: "session";
406
+ pdf: "pdf";
407
+ }>;
408
+ locked: z.ZodOptional<z.ZodBoolean>;
409
+ width: z.ZodDefault<z.ZodNumber>;
410
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
411
+ interiorColor: z.ZodOptional<z.ZodString>;
412
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
413
+ id: z.ZodString;
414
+ page: z.ZodNumber;
415
+ author: z.ZodOptional<z.ZodString>;
416
+ contents: z.ZodOptional<z.ZodString>;
417
+ inReplyTo: z.ZodOptional<z.ZodString>;
418
+ subject: z.ZodOptional<z.ZodString>;
419
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
420
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
421
+ type: z.ZodLiteral<"square">;
422
+ }, z.core.$strip>, z.ZodObject<{
423
+ cornerRadius: z.ZodOptional<z.ZodNever>;
424
+ rect: z.ZodObject<{
425
+ x: z.ZodNumber;
426
+ y: z.ZodNumber;
427
+ width: z.ZodNumber;
428
+ height: z.ZodNumber;
429
+ }, z.core.$strip>;
430
+ color: z.ZodString;
431
+ opacity: z.ZodNumber;
432
+ createdAt: z.ZodISODateTime;
433
+ modifiedAt: z.ZodISODateTime;
434
+ source: z.ZodEnum<{
435
+ session: "session";
436
+ pdf: "pdf";
437
+ }>;
438
+ locked: z.ZodOptional<z.ZodBoolean>;
439
+ width: z.ZodDefault<z.ZodNumber>;
440
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
441
+ interiorColor: z.ZodOptional<z.ZodString>;
442
+ id: z.ZodString;
443
+ page: z.ZodNumber;
444
+ author: z.ZodOptional<z.ZodString>;
445
+ contents: z.ZodOptional<z.ZodString>;
446
+ inReplyTo: z.ZodOptional<z.ZodString>;
447
+ subject: z.ZodOptional<z.ZodString>;
448
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
449
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
450
+ type: z.ZodLiteral<"circle">;
451
+ }, z.core.$strip>], "type">;
452
+ declare const LineSchema: z.ZodObject<{
453
+ start: z.ZodObject<{
454
+ x: z.ZodNumber;
455
+ y: z.ZodNumber;
456
+ }, z.core.$strip>;
457
+ end: z.ZodObject<{
458
+ x: z.ZodNumber;
459
+ y: z.ZodNumber;
460
+ }, z.core.$strip>;
461
+ rect: z.ZodObject<{
462
+ x: z.ZodNumber;
463
+ y: z.ZodNumber;
464
+ width: z.ZodNumber;
465
+ height: z.ZodNumber;
466
+ }, z.core.$strip>;
467
+ color: z.ZodString;
468
+ opacity: z.ZodNumber;
469
+ createdAt: z.ZodISODateTime;
470
+ modifiedAt: z.ZodISODateTime;
471
+ source: z.ZodEnum<{
472
+ session: "session";
473
+ pdf: "pdf";
474
+ }>;
475
+ locked: z.ZodOptional<z.ZodBoolean>;
476
+ width: z.ZodDefault<z.ZodNumber>;
477
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
478
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
479
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
480
+ id: z.ZodString;
481
+ page: z.ZodNumber;
482
+ author: z.ZodOptional<z.ZodString>;
483
+ contents: z.ZodOptional<z.ZodString>;
484
+ inReplyTo: z.ZodOptional<z.ZodString>;
485
+ subject: z.ZodOptional<z.ZodString>;
486
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
487
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
488
+ type: z.ZodLiteral<"line">;
489
+ }, z.core.$strip>;
490
+ declare const PolylineSchema: z.ZodObject<{
491
+ vertices: z.ZodArray<z.ZodObject<{
492
+ x: z.ZodNumber;
493
+ y: z.ZodNumber;
494
+ }, z.core.$strip>>;
495
+ rect: z.ZodObject<{
496
+ x: z.ZodNumber;
497
+ y: z.ZodNumber;
498
+ width: z.ZodNumber;
499
+ height: z.ZodNumber;
500
+ }, z.core.$strip>;
501
+ color: z.ZodString;
502
+ opacity: z.ZodNumber;
503
+ createdAt: z.ZodISODateTime;
504
+ modifiedAt: z.ZodISODateTime;
505
+ source: z.ZodEnum<{
506
+ session: "session";
507
+ pdf: "pdf";
508
+ }>;
509
+ locked: z.ZodOptional<z.ZodBoolean>;
510
+ width: z.ZodDefault<z.ZodNumber>;
511
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
512
+ interiorColor: z.ZodOptional<z.ZodString>;
513
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
514
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
515
+ id: z.ZodString;
516
+ page: z.ZodNumber;
517
+ author: z.ZodOptional<z.ZodString>;
518
+ contents: z.ZodOptional<z.ZodString>;
519
+ inReplyTo: z.ZodOptional<z.ZodString>;
520
+ subject: z.ZodOptional<z.ZodString>;
521
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
522
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
523
+ type: z.ZodLiteral<"polyline">;
524
+ }, z.core.$strip>;
525
+ declare const PolygonSchema: z.ZodObject<{
526
+ vertices: z.ZodArray<z.ZodObject<{
527
+ x: z.ZodNumber;
528
+ y: z.ZodNumber;
529
+ }, z.core.$strip>>;
530
+ head: z.ZodOptional<z.ZodNever>;
531
+ tail: z.ZodOptional<z.ZodNever>;
532
+ rect: z.ZodObject<{
533
+ x: z.ZodNumber;
534
+ y: z.ZodNumber;
535
+ width: z.ZodNumber;
536
+ height: z.ZodNumber;
537
+ }, z.core.$strip>;
538
+ color: z.ZodString;
539
+ opacity: z.ZodNumber;
540
+ createdAt: z.ZodISODateTime;
541
+ modifiedAt: z.ZodISODateTime;
542
+ source: z.ZodEnum<{
543
+ session: "session";
544
+ pdf: "pdf";
545
+ }>;
546
+ locked: z.ZodOptional<z.ZodBoolean>;
547
+ width: z.ZodDefault<z.ZodNumber>;
548
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
549
+ interiorColor: z.ZodOptional<z.ZodString>;
550
+ id: z.ZodString;
551
+ page: z.ZodNumber;
552
+ author: z.ZodOptional<z.ZodString>;
553
+ contents: z.ZodOptional<z.ZodString>;
554
+ inReplyTo: z.ZodOptional<z.ZodString>;
555
+ subject: z.ZodOptional<z.ZodString>;
556
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
557
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
558
+ type: z.ZodLiteral<"polygon">;
559
+ }, z.core.$strip>;
560
+ declare const PolySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
561
+ vertices: z.ZodArray<z.ZodObject<{
562
+ x: z.ZodNumber;
563
+ y: z.ZodNumber;
564
+ }, z.core.$strip>>;
565
+ rect: z.ZodObject<{
566
+ x: z.ZodNumber;
567
+ y: z.ZodNumber;
568
+ width: z.ZodNumber;
569
+ height: z.ZodNumber;
570
+ }, z.core.$strip>;
571
+ color: z.ZodString;
572
+ opacity: z.ZodNumber;
573
+ createdAt: z.ZodISODateTime;
574
+ modifiedAt: z.ZodISODateTime;
575
+ source: z.ZodEnum<{
576
+ session: "session";
577
+ pdf: "pdf";
578
+ }>;
579
+ locked: z.ZodOptional<z.ZodBoolean>;
580
+ width: z.ZodDefault<z.ZodNumber>;
581
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
582
+ interiorColor: z.ZodOptional<z.ZodString>;
583
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
584
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
585
+ id: z.ZodString;
586
+ page: z.ZodNumber;
587
+ author: z.ZodOptional<z.ZodString>;
588
+ contents: z.ZodOptional<z.ZodString>;
589
+ inReplyTo: z.ZodOptional<z.ZodString>;
590
+ subject: z.ZodOptional<z.ZodString>;
591
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
592
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
593
+ type: z.ZodLiteral<"polyline">;
594
+ }, z.core.$strip>, z.ZodObject<{
595
+ vertices: z.ZodArray<z.ZodObject<{
596
+ x: z.ZodNumber;
597
+ y: z.ZodNumber;
598
+ }, z.core.$strip>>;
599
+ head: z.ZodOptional<z.ZodNever>;
600
+ tail: z.ZodOptional<z.ZodNever>;
601
+ rect: z.ZodObject<{
602
+ x: z.ZodNumber;
603
+ y: z.ZodNumber;
604
+ width: z.ZodNumber;
605
+ height: z.ZodNumber;
606
+ }, z.core.$strip>;
607
+ color: z.ZodString;
608
+ opacity: z.ZodNumber;
609
+ createdAt: z.ZodISODateTime;
610
+ modifiedAt: z.ZodISODateTime;
611
+ source: z.ZodEnum<{
612
+ session: "session";
613
+ pdf: "pdf";
614
+ }>;
615
+ locked: z.ZodOptional<z.ZodBoolean>;
616
+ width: z.ZodDefault<z.ZodNumber>;
617
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
618
+ interiorColor: z.ZodOptional<z.ZodString>;
619
+ id: z.ZodString;
620
+ page: z.ZodNumber;
621
+ author: z.ZodOptional<z.ZodString>;
622
+ contents: z.ZodOptional<z.ZodString>;
623
+ inReplyTo: z.ZodOptional<z.ZodString>;
624
+ subject: z.ZodOptional<z.ZodString>;
625
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
626
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
627
+ type: z.ZodLiteral<"polygon">;
628
+ }, z.core.$strip>], "type">;
629
+ declare const InkSchema: z.ZodObject<{
630
+ inklist: z.ZodArray<z.ZodArray<z.ZodObject<{
631
+ x: z.ZodNumber;
632
+ y: z.ZodNumber;
633
+ }, z.core.$strip>>>;
634
+ pressure: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>;
635
+ rect: z.ZodObject<{
636
+ x: z.ZodNumber;
637
+ y: z.ZodNumber;
638
+ width: z.ZodNumber;
639
+ height: z.ZodNumber;
640
+ }, z.core.$strip>;
641
+ color: z.ZodString;
642
+ opacity: z.ZodNumber;
643
+ createdAt: z.ZodISODateTime;
644
+ modifiedAt: z.ZodISODateTime;
645
+ source: z.ZodEnum<{
646
+ session: "session";
647
+ pdf: "pdf";
648
+ }>;
649
+ locked: z.ZodOptional<z.ZodBoolean>;
650
+ width: z.ZodDefault<z.ZodNumber>;
651
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
652
+ id: z.ZodString;
653
+ page: z.ZodNumber;
654
+ author: z.ZodOptional<z.ZodString>;
655
+ contents: z.ZodOptional<z.ZodString>;
656
+ inReplyTo: z.ZodOptional<z.ZodString>;
657
+ subject: z.ZodOptional<z.ZodString>;
658
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
659
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
660
+ type: z.ZodLiteral<"ink">;
661
+ }, z.core.$strip>;
662
+ /**
663
+ * An image on the page (XFDF `stamp`), drawn to fill `rect`. Image and typed signatures are
664
+ * stamps with `subject: 'Signature'`.
665
+ */
666
+ declare const StampSchema: z.ZodObject<{
667
+ rect: z.ZodObject<{
668
+ x: z.ZodNumber;
669
+ y: z.ZodNumber;
670
+ width: z.ZodNumber;
671
+ height: z.ZodNumber;
672
+ }, z.core.$strip>;
673
+ color: z.ZodString;
674
+ opacity: z.ZodNumber;
675
+ createdAt: z.ZodISODateTime;
676
+ modifiedAt: z.ZodISODateTime;
677
+ source: z.ZodEnum<{
678
+ session: "session";
679
+ pdf: "pdf";
680
+ }>;
681
+ locked: z.ZodOptional<z.ZodBoolean>;
682
+ imagedata: z.ZodString;
683
+ rotation: z.ZodOptional<z.ZodLiteral<0 | 90 | 180 | 270>>;
684
+ id: z.ZodString;
685
+ page: z.ZodNumber;
686
+ author: z.ZodOptional<z.ZodString>;
687
+ contents: z.ZodOptional<z.ZodString>;
688
+ inReplyTo: z.ZodOptional<z.ZodString>;
689
+ subject: z.ZodOptional<z.ZodString>;
690
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
691
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
692
+ type: z.ZodLiteral<"stamp">;
693
+ }, z.core.$strip>;
694
+ /**
695
+ * A loupe (Inkbar's own type, a circle with `custom.inkbar.type: 'loupe'` in a file): a circle
696
+ * inscribed in `rect` that shows the page content under its own centre, magnified. `color` and
697
+ * `width` draw its rim.
698
+ */
699
+ declare const LoupeSchema: z.ZodObject<{
700
+ rect: z.ZodObject<{
701
+ x: z.ZodNumber;
702
+ y: z.ZodNumber;
703
+ width: z.ZodNumber;
704
+ height: z.ZodNumber;
705
+ }, z.core.$strip>;
706
+ color: z.ZodString;
707
+ opacity: z.ZodNumber;
708
+ createdAt: z.ZodISODateTime;
709
+ modifiedAt: z.ZodISODateTime;
710
+ source: z.ZodEnum<{
711
+ session: "session";
712
+ pdf: "pdf";
713
+ }>;
714
+ locked: z.ZodOptional<z.ZodBoolean>;
715
+ magnification: z.ZodDefault<z.ZodNumber>;
716
+ width: z.ZodDefault<z.ZodNumber>;
717
+ id: z.ZodString;
718
+ page: z.ZodNumber;
719
+ author: z.ZodOptional<z.ZodString>;
720
+ contents: z.ZodOptional<z.ZodString>;
721
+ inReplyTo: z.ZodOptional<z.ZodString>;
722
+ subject: z.ZodOptional<z.ZodString>;
723
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
724
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
725
+ type: z.ZodLiteral<"loupe">;
726
+ }, z.core.$strip>;
727
+ /**
728
+ * A mask (Inkbar's own type, a circle or square with `custom.inkbar.type: 'mask'` in a file):
729
+ * dims everything on the page outside `shape` drawn in `rect`, an ellipse inscribed in it or the
730
+ * rectangle itself. `color` is the dimming colour and `dim` how strongly it covers, from 0 to 1.
731
+ * One per page: adding a second replaces the first.
732
+ */
733
+ declare const MaskSchema: z.ZodObject<{
734
+ rect: z.ZodObject<{
735
+ x: z.ZodNumber;
736
+ y: z.ZodNumber;
737
+ width: z.ZodNumber;
738
+ height: z.ZodNumber;
739
+ }, z.core.$strip>;
740
+ color: z.ZodString;
741
+ opacity: z.ZodNumber;
742
+ createdAt: z.ZodISODateTime;
743
+ modifiedAt: z.ZodISODateTime;
744
+ source: z.ZodEnum<{
745
+ session: "session";
746
+ pdf: "pdf";
747
+ }>;
748
+ locked: z.ZodOptional<z.ZodBoolean>;
749
+ shape: z.ZodEnum<{
750
+ rect: "rect";
751
+ ellipse: "ellipse";
752
+ }>;
753
+ dim: z.ZodDefault<z.ZodNumber>;
754
+ id: z.ZodString;
755
+ page: z.ZodNumber;
756
+ author: z.ZodOptional<z.ZodString>;
757
+ contents: z.ZodOptional<z.ZodString>;
758
+ inReplyTo: z.ZodOptional<z.ZodString>;
759
+ subject: z.ZodOptional<z.ZodString>;
760
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
761
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
762
+ type: z.ZodLiteral<"mask">;
763
+ }, z.core.$strip>;
764
+ declare const RedactSchema: z.ZodObject<{
765
+ quads: z.ZodOptional<z.ZodArray<z.ZodObject<{
766
+ p1: z.ZodObject<{
767
+ x: z.ZodNumber;
768
+ y: z.ZodNumber;
769
+ }, z.core.$strip>;
770
+ p2: z.ZodObject<{
771
+ x: z.ZodNumber;
772
+ y: z.ZodNumber;
773
+ }, z.core.$strip>;
774
+ p3: z.ZodObject<{
775
+ x: z.ZodNumber;
776
+ y: z.ZodNumber;
777
+ }, z.core.$strip>;
778
+ p4: z.ZodObject<{
779
+ x: z.ZodNumber;
780
+ y: z.ZodNumber;
781
+ }, z.core.$strip>;
782
+ }, z.core.$strip>>>;
783
+ interiorColor: z.ZodString;
784
+ rect: z.ZodObject<{
785
+ x: z.ZodNumber;
786
+ y: z.ZodNumber;
787
+ width: z.ZodNumber;
788
+ height: z.ZodNumber;
789
+ }, z.core.$strip>;
790
+ color: z.ZodString;
791
+ opacity: z.ZodNumber;
792
+ createdAt: z.ZodISODateTime;
793
+ modifiedAt: z.ZodISODateTime;
794
+ source: z.ZodEnum<{
795
+ session: "session";
796
+ pdf: "pdf";
797
+ }>;
798
+ locked: z.ZodOptional<z.ZodBoolean>;
799
+ overlayText: z.ZodOptional<z.ZodString>;
800
+ id: z.ZodString;
801
+ page: z.ZodNumber;
802
+ author: z.ZodOptional<z.ZodString>;
803
+ contents: z.ZodOptional<z.ZodString>;
804
+ inReplyTo: z.ZodOptional<z.ZodString>;
805
+ subject: z.ZodOptional<z.ZodString>;
806
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
807
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
808
+ type: z.ZodLiteral<"redact">;
809
+ }, z.core.$strip>;
810
+ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
811
+ type: z.ZodEnum<{
812
+ highlight: "highlight";
813
+ underline: "underline";
814
+ strikeout: "strikeout";
815
+ squiggly: "squiggly";
816
+ }>;
817
+ quads: z.ZodArray<z.ZodObject<{
818
+ p1: z.ZodObject<{
819
+ x: z.ZodNumber;
820
+ y: z.ZodNumber;
821
+ }, z.core.$strip>;
822
+ p2: z.ZodObject<{
823
+ x: z.ZodNumber;
824
+ y: z.ZodNumber;
825
+ }, z.core.$strip>;
826
+ p3: z.ZodObject<{
827
+ x: z.ZodNumber;
828
+ y: z.ZodNumber;
829
+ }, z.core.$strip>;
830
+ p4: z.ZodObject<{
831
+ x: z.ZodNumber;
832
+ y: z.ZodNumber;
833
+ }, z.core.$strip>;
834
+ }, z.core.$strip>>;
835
+ rect: z.ZodObject<{
836
+ x: z.ZodNumber;
837
+ y: z.ZodNumber;
838
+ width: z.ZodNumber;
839
+ height: z.ZodNumber;
840
+ }, z.core.$strip>;
841
+ color: z.ZodString;
842
+ opacity: z.ZodNumber;
843
+ createdAt: z.ZodISODateTime;
844
+ modifiedAt: z.ZodISODateTime;
845
+ source: z.ZodEnum<{
846
+ session: "session";
847
+ pdf: "pdf";
848
+ }>;
849
+ locked: z.ZodOptional<z.ZodBoolean>;
850
+ id: z.ZodString;
851
+ page: z.ZodNumber;
852
+ author: z.ZodOptional<z.ZodString>;
853
+ contents: z.ZodOptional<z.ZodString>;
854
+ inReplyTo: z.ZodOptional<z.ZodString>;
855
+ subject: z.ZodOptional<z.ZodString>;
856
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
857
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
858
+ }, z.core.$strip>, z.ZodObject<{
859
+ rect: z.ZodObject<{
860
+ x: z.ZodNumber;
861
+ y: z.ZodNumber;
862
+ width: z.ZodNumber;
863
+ height: z.ZodNumber;
864
+ }, z.core.$strip>;
865
+ color: z.ZodString;
866
+ opacity: z.ZodNumber;
867
+ createdAt: z.ZodISODateTime;
868
+ modifiedAt: z.ZodISODateTime;
869
+ source: z.ZodEnum<{
870
+ session: "session";
871
+ pdf: "pdf";
872
+ }>;
873
+ locked: z.ZodOptional<z.ZodBoolean>;
874
+ icon: z.ZodDefault<z.ZodType<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), z.core.$ZodTypeInternals<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {})>>>;
875
+ id: z.ZodString;
876
+ page: z.ZodNumber;
877
+ author: z.ZodOptional<z.ZodString>;
878
+ contents: z.ZodOptional<z.ZodString>;
879
+ inReplyTo: z.ZodOptional<z.ZodString>;
880
+ subject: z.ZodOptional<z.ZodString>;
881
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
882
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
883
+ type: z.ZodLiteral<"text">;
884
+ }, z.core.$strip>, z.ZodObject<{
885
+ color: z.ZodOptional<z.ZodString>;
886
+ borderColor: z.ZodOptional<z.ZodString>;
887
+ defaultStyle: z.ZodObject<{
888
+ color: z.ZodString;
889
+ align: z.ZodOptional<z.ZodNever>;
890
+ fontFamily: z.ZodDefault<z.ZodString>;
891
+ fontSize: z.ZodDefault<z.ZodNumber>;
892
+ textAlign: z.ZodDefault<z.ZodEnum<{
893
+ left: "left";
894
+ right: "right";
895
+ center: "center";
896
+ justify: "justify";
897
+ }>>;
898
+ fontWeight: z.ZodOptional<z.ZodLiteral<"bold">>;
899
+ fontStyle: z.ZodOptional<z.ZodLiteral<"italic">>;
900
+ textDecoration: z.ZodOptional<z.ZodLiteral<"underline">>;
901
+ }, z.core.$strip>;
902
+ fringe: z.ZodOptional<z.ZodObject<{
903
+ left: z.ZodNumber;
904
+ top: z.ZodNumber;
905
+ right: z.ZodNumber;
906
+ bottom: z.ZodNumber;
907
+ }, z.core.$strip>>;
908
+ callout: z.ZodOptional<z.ZodArray<z.ZodObject<{
909
+ x: z.ZodNumber;
910
+ y: z.ZodNumber;
911
+ }, z.core.$strip>>>;
912
+ fontFamily: z.ZodOptional<z.ZodNever>;
913
+ fontSize: z.ZodOptional<z.ZodNever>;
914
+ align: z.ZodOptional<z.ZodNever>;
915
+ rect: z.ZodObject<{
916
+ x: z.ZodNumber;
917
+ y: z.ZodNumber;
918
+ width: z.ZodNumber;
919
+ height: z.ZodNumber;
920
+ }, z.core.$strip>;
921
+ opacity: z.ZodNumber;
922
+ createdAt: z.ZodISODateTime;
923
+ modifiedAt: z.ZodISODateTime;
924
+ source: z.ZodEnum<{
925
+ session: "session";
926
+ pdf: "pdf";
927
+ }>;
928
+ locked: z.ZodOptional<z.ZodBoolean>;
929
+ contents: z.ZodString;
930
+ width: z.ZodDefault<z.ZodNumber>;
931
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
932
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
933
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
934
+ id: z.ZodString;
935
+ page: z.ZodNumber;
936
+ author: z.ZodOptional<z.ZodString>;
937
+ inReplyTo: z.ZodOptional<z.ZodString>;
938
+ subject: z.ZodOptional<z.ZodString>;
939
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
940
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
941
+ type: z.ZodLiteral<"freetext">;
942
+ }, z.core.$strip>, z.ZodObject<{
943
+ rect: z.ZodObject<{
944
+ x: z.ZodNumber;
945
+ y: z.ZodNumber;
946
+ width: z.ZodNumber;
947
+ height: z.ZodNumber;
948
+ }, z.core.$strip>;
949
+ color: z.ZodString;
950
+ opacity: z.ZodNumber;
951
+ createdAt: z.ZodISODateTime;
952
+ modifiedAt: z.ZodISODateTime;
953
+ source: z.ZodEnum<{
954
+ session: "session";
955
+ pdf: "pdf";
956
+ }>;
957
+ locked: z.ZodOptional<z.ZodBoolean>;
958
+ width: z.ZodDefault<z.ZodNumber>;
959
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
960
+ interiorColor: z.ZodOptional<z.ZodString>;
961
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
962
+ id: z.ZodString;
963
+ page: z.ZodNumber;
964
+ author: z.ZodOptional<z.ZodString>;
965
+ contents: z.ZodOptional<z.ZodString>;
966
+ inReplyTo: z.ZodOptional<z.ZodString>;
967
+ subject: z.ZodOptional<z.ZodString>;
968
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
969
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
970
+ type: z.ZodLiteral<"square">;
971
+ }, z.core.$strip>, z.ZodObject<{
972
+ cornerRadius: z.ZodOptional<z.ZodNever>;
973
+ rect: z.ZodObject<{
974
+ x: z.ZodNumber;
975
+ y: z.ZodNumber;
976
+ width: z.ZodNumber;
977
+ height: z.ZodNumber;
978
+ }, z.core.$strip>;
979
+ color: z.ZodString;
980
+ opacity: z.ZodNumber;
981
+ createdAt: z.ZodISODateTime;
982
+ modifiedAt: z.ZodISODateTime;
983
+ source: z.ZodEnum<{
984
+ session: "session";
985
+ pdf: "pdf";
986
+ }>;
987
+ locked: z.ZodOptional<z.ZodBoolean>;
988
+ width: z.ZodDefault<z.ZodNumber>;
989
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
990
+ interiorColor: z.ZodOptional<z.ZodString>;
991
+ id: z.ZodString;
992
+ page: z.ZodNumber;
993
+ author: z.ZodOptional<z.ZodString>;
994
+ contents: z.ZodOptional<z.ZodString>;
995
+ inReplyTo: z.ZodOptional<z.ZodString>;
996
+ subject: z.ZodOptional<z.ZodString>;
997
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
998
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
999
+ type: z.ZodLiteral<"circle">;
1000
+ }, z.core.$strip>, z.ZodObject<{
1001
+ start: z.ZodObject<{
1002
+ x: z.ZodNumber;
1003
+ y: z.ZodNumber;
1004
+ }, z.core.$strip>;
1005
+ end: z.ZodObject<{
1006
+ x: z.ZodNumber;
1007
+ y: z.ZodNumber;
1008
+ }, z.core.$strip>;
1009
+ rect: z.ZodObject<{
1010
+ x: z.ZodNumber;
1011
+ y: z.ZodNumber;
1012
+ width: z.ZodNumber;
1013
+ height: z.ZodNumber;
1014
+ }, z.core.$strip>;
1015
+ color: z.ZodString;
1016
+ opacity: z.ZodNumber;
1017
+ createdAt: z.ZodISODateTime;
1018
+ modifiedAt: z.ZodISODateTime;
1019
+ source: z.ZodEnum<{
1020
+ session: "session";
1021
+ pdf: "pdf";
1022
+ }>;
1023
+ locked: z.ZodOptional<z.ZodBoolean>;
1024
+ width: z.ZodDefault<z.ZodNumber>;
1025
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1026
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1027
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1028
+ id: z.ZodString;
1029
+ page: z.ZodNumber;
1030
+ author: z.ZodOptional<z.ZodString>;
1031
+ contents: z.ZodOptional<z.ZodString>;
1032
+ inReplyTo: z.ZodOptional<z.ZodString>;
1033
+ subject: z.ZodOptional<z.ZodString>;
1034
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1035
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1036
+ type: z.ZodLiteral<"line">;
1037
+ }, z.core.$strip>, z.ZodObject<{
1038
+ vertices: z.ZodArray<z.ZodObject<{
1039
+ x: z.ZodNumber;
1040
+ y: z.ZodNumber;
1041
+ }, z.core.$strip>>;
1042
+ rect: z.ZodObject<{
1043
+ x: z.ZodNumber;
1044
+ y: z.ZodNumber;
1045
+ width: z.ZodNumber;
1046
+ height: z.ZodNumber;
1047
+ }, z.core.$strip>;
1048
+ color: z.ZodString;
1049
+ opacity: z.ZodNumber;
1050
+ createdAt: z.ZodISODateTime;
1051
+ modifiedAt: z.ZodISODateTime;
1052
+ source: z.ZodEnum<{
1053
+ session: "session";
1054
+ pdf: "pdf";
1055
+ }>;
1056
+ locked: z.ZodOptional<z.ZodBoolean>;
1057
+ width: z.ZodDefault<z.ZodNumber>;
1058
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1059
+ interiorColor: z.ZodOptional<z.ZodString>;
1060
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1061
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1062
+ id: z.ZodString;
1063
+ page: z.ZodNumber;
1064
+ author: z.ZodOptional<z.ZodString>;
1065
+ contents: z.ZodOptional<z.ZodString>;
1066
+ inReplyTo: z.ZodOptional<z.ZodString>;
1067
+ subject: z.ZodOptional<z.ZodString>;
1068
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1069
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1070
+ type: z.ZodLiteral<"polyline">;
1071
+ }, z.core.$strip>, z.ZodObject<{
1072
+ vertices: z.ZodArray<z.ZodObject<{
1073
+ x: z.ZodNumber;
1074
+ y: z.ZodNumber;
1075
+ }, z.core.$strip>>;
1076
+ head: z.ZodOptional<z.ZodNever>;
1077
+ tail: z.ZodOptional<z.ZodNever>;
1078
+ rect: z.ZodObject<{
1079
+ x: z.ZodNumber;
1080
+ y: z.ZodNumber;
1081
+ width: z.ZodNumber;
1082
+ height: z.ZodNumber;
1083
+ }, z.core.$strip>;
1084
+ color: z.ZodString;
1085
+ opacity: z.ZodNumber;
1086
+ createdAt: z.ZodISODateTime;
1087
+ modifiedAt: z.ZodISODateTime;
1088
+ source: z.ZodEnum<{
1089
+ session: "session";
1090
+ pdf: "pdf";
1091
+ }>;
1092
+ locked: z.ZodOptional<z.ZodBoolean>;
1093
+ width: z.ZodDefault<z.ZodNumber>;
1094
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1095
+ interiorColor: z.ZodOptional<z.ZodString>;
1096
+ id: z.ZodString;
1097
+ page: z.ZodNumber;
1098
+ author: z.ZodOptional<z.ZodString>;
1099
+ contents: z.ZodOptional<z.ZodString>;
1100
+ inReplyTo: z.ZodOptional<z.ZodString>;
1101
+ subject: z.ZodOptional<z.ZodString>;
1102
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1103
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1104
+ type: z.ZodLiteral<"polygon">;
1105
+ }, z.core.$strip>, z.ZodObject<{
1106
+ inklist: z.ZodArray<z.ZodArray<z.ZodObject<{
1107
+ x: z.ZodNumber;
1108
+ y: z.ZodNumber;
1109
+ }, z.core.$strip>>>;
1110
+ pressure: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>;
1111
+ rect: z.ZodObject<{
1112
+ x: z.ZodNumber;
1113
+ y: z.ZodNumber;
1114
+ width: z.ZodNumber;
1115
+ height: z.ZodNumber;
1116
+ }, z.core.$strip>;
1117
+ color: z.ZodString;
1118
+ opacity: z.ZodNumber;
1119
+ createdAt: z.ZodISODateTime;
1120
+ modifiedAt: z.ZodISODateTime;
1121
+ source: z.ZodEnum<{
1122
+ session: "session";
1123
+ pdf: "pdf";
1124
+ }>;
1125
+ locked: z.ZodOptional<z.ZodBoolean>;
1126
+ width: z.ZodDefault<z.ZodNumber>;
1127
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1128
+ id: z.ZodString;
1129
+ page: z.ZodNumber;
1130
+ author: z.ZodOptional<z.ZodString>;
1131
+ contents: z.ZodOptional<z.ZodString>;
1132
+ inReplyTo: z.ZodOptional<z.ZodString>;
1133
+ subject: z.ZodOptional<z.ZodString>;
1134
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1135
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1136
+ type: z.ZodLiteral<"ink">;
1137
+ }, z.core.$strip>, z.ZodObject<{
1138
+ rect: z.ZodObject<{
1139
+ x: z.ZodNumber;
1140
+ y: z.ZodNumber;
1141
+ width: z.ZodNumber;
1142
+ height: z.ZodNumber;
1143
+ }, z.core.$strip>;
1144
+ color: z.ZodString;
1145
+ opacity: z.ZodNumber;
1146
+ createdAt: z.ZodISODateTime;
1147
+ modifiedAt: z.ZodISODateTime;
1148
+ source: z.ZodEnum<{
1149
+ session: "session";
1150
+ pdf: "pdf";
1151
+ }>;
1152
+ locked: z.ZodOptional<z.ZodBoolean>;
1153
+ imagedata: z.ZodString;
1154
+ rotation: z.ZodOptional<z.ZodLiteral<0 | 90 | 180 | 270>>;
1155
+ id: z.ZodString;
1156
+ page: z.ZodNumber;
1157
+ author: z.ZodOptional<z.ZodString>;
1158
+ contents: z.ZodOptional<z.ZodString>;
1159
+ inReplyTo: z.ZodOptional<z.ZodString>;
1160
+ subject: z.ZodOptional<z.ZodString>;
1161
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1162
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1163
+ type: z.ZodLiteral<"stamp">;
1164
+ }, z.core.$strip>, z.ZodObject<{
1165
+ rect: z.ZodObject<{
1166
+ x: z.ZodNumber;
1167
+ y: z.ZodNumber;
1168
+ width: z.ZodNumber;
1169
+ height: z.ZodNumber;
1170
+ }, z.core.$strip>;
1171
+ color: z.ZodString;
1172
+ opacity: z.ZodNumber;
1173
+ createdAt: z.ZodISODateTime;
1174
+ modifiedAt: z.ZodISODateTime;
1175
+ source: z.ZodEnum<{
1176
+ session: "session";
1177
+ pdf: "pdf";
1178
+ }>;
1179
+ locked: z.ZodOptional<z.ZodBoolean>;
1180
+ magnification: z.ZodDefault<z.ZodNumber>;
1181
+ width: z.ZodDefault<z.ZodNumber>;
1182
+ id: z.ZodString;
1183
+ page: z.ZodNumber;
1184
+ author: z.ZodOptional<z.ZodString>;
1185
+ contents: z.ZodOptional<z.ZodString>;
1186
+ inReplyTo: z.ZodOptional<z.ZodString>;
1187
+ subject: z.ZodOptional<z.ZodString>;
1188
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1189
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1190
+ type: z.ZodLiteral<"loupe">;
1191
+ }, z.core.$strip>, z.ZodObject<{
1192
+ rect: z.ZodObject<{
1193
+ x: z.ZodNumber;
1194
+ y: z.ZodNumber;
1195
+ width: z.ZodNumber;
1196
+ height: z.ZodNumber;
1197
+ }, z.core.$strip>;
1198
+ color: z.ZodString;
1199
+ opacity: z.ZodNumber;
1200
+ createdAt: z.ZodISODateTime;
1201
+ modifiedAt: z.ZodISODateTime;
1202
+ source: z.ZodEnum<{
1203
+ session: "session";
1204
+ pdf: "pdf";
1205
+ }>;
1206
+ locked: z.ZodOptional<z.ZodBoolean>;
1207
+ shape: z.ZodEnum<{
1208
+ rect: "rect";
1209
+ ellipse: "ellipse";
1210
+ }>;
1211
+ dim: z.ZodDefault<z.ZodNumber>;
1212
+ id: z.ZodString;
1213
+ page: z.ZodNumber;
1214
+ author: z.ZodOptional<z.ZodString>;
1215
+ contents: z.ZodOptional<z.ZodString>;
1216
+ inReplyTo: z.ZodOptional<z.ZodString>;
1217
+ subject: z.ZodOptional<z.ZodString>;
1218
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1219
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1220
+ type: z.ZodLiteral<"mask">;
1221
+ }, z.core.$strip>, z.ZodObject<{
1222
+ quads: z.ZodOptional<z.ZodArray<z.ZodObject<{
1223
+ p1: z.ZodObject<{
1224
+ x: z.ZodNumber;
1225
+ y: z.ZodNumber;
1226
+ }, z.core.$strip>;
1227
+ p2: z.ZodObject<{
1228
+ x: z.ZodNumber;
1229
+ y: z.ZodNumber;
1230
+ }, z.core.$strip>;
1231
+ p3: z.ZodObject<{
1232
+ x: z.ZodNumber;
1233
+ y: z.ZodNumber;
1234
+ }, z.core.$strip>;
1235
+ p4: z.ZodObject<{
1236
+ x: z.ZodNumber;
1237
+ y: z.ZodNumber;
1238
+ }, z.core.$strip>;
1239
+ }, z.core.$strip>>>;
1240
+ interiorColor: z.ZodString;
1241
+ rect: z.ZodObject<{
1242
+ x: z.ZodNumber;
1243
+ y: z.ZodNumber;
1244
+ width: z.ZodNumber;
1245
+ height: z.ZodNumber;
1246
+ }, z.core.$strip>;
1247
+ color: z.ZodString;
1248
+ opacity: z.ZodNumber;
1249
+ createdAt: z.ZodISODateTime;
1250
+ modifiedAt: z.ZodISODateTime;
1251
+ source: z.ZodEnum<{
1252
+ session: "session";
1253
+ pdf: "pdf";
1254
+ }>;
1255
+ locked: z.ZodOptional<z.ZodBoolean>;
1256
+ overlayText: z.ZodOptional<z.ZodString>;
1257
+ id: z.ZodString;
1258
+ page: z.ZodNumber;
1259
+ author: z.ZodOptional<z.ZodString>;
1260
+ contents: z.ZodOptional<z.ZodString>;
1261
+ inReplyTo: z.ZodOptional<z.ZodString>;
1262
+ subject: z.ZodOptional<z.ZodString>;
1263
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1264
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1265
+ type: z.ZodLiteral<"redact">;
1266
+ }, z.core.$strip>], "type">;
1267
+ /** One exported annotation: the stored annotation without its viewer state. */
1268
+ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1269
+ quads: z.ZodArray<z.ZodObject<{
1270
+ p1: z.ZodObject<{
1271
+ x: z.ZodNumber;
1272
+ y: z.ZodNumber;
1273
+ }, z.core.$strip>;
1274
+ p2: z.ZodObject<{
1275
+ x: z.ZodNumber;
1276
+ y: z.ZodNumber;
1277
+ }, z.core.$strip>;
1278
+ p3: z.ZodObject<{
1279
+ x: z.ZodNumber;
1280
+ y: z.ZodNumber;
1281
+ }, z.core.$strip>;
1282
+ p4: z.ZodObject<{
1283
+ x: z.ZodNumber;
1284
+ y: z.ZodNumber;
1285
+ }, z.core.$strip>;
1286
+ }, z.core.$strip>>;
1287
+ type: z.ZodEnum<{
1288
+ highlight: "highlight";
1289
+ underline: "underline";
1290
+ strikeout: "strikeout";
1291
+ squiggly: "squiggly";
1292
+ }>;
1293
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1294
+ rect: z.ZodObject<{
1295
+ x: z.ZodNumber;
1296
+ y: z.ZodNumber;
1297
+ width: z.ZodNumber;
1298
+ height: z.ZodNumber;
1299
+ }, z.core.$strip>;
1300
+ color: z.ZodString;
1301
+ opacity: z.ZodNumber;
1302
+ createdAt: z.ZodISODateTime;
1303
+ modifiedAt: z.ZodISODateTime;
1304
+ id: z.ZodString;
1305
+ page: z.ZodNumber;
1306
+ author: z.ZodOptional<z.ZodString>;
1307
+ contents: z.ZodOptional<z.ZodString>;
1308
+ inReplyTo: z.ZodOptional<z.ZodString>;
1309
+ subject: z.ZodOptional<z.ZodString>;
1310
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1311
+ }, z.core.$strip>, z.ZodObject<{
1312
+ type: z.ZodLiteral<"text">;
1313
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1314
+ rect: z.ZodObject<{
1315
+ x: z.ZodNumber;
1316
+ y: z.ZodNumber;
1317
+ width: z.ZodNumber;
1318
+ height: z.ZodNumber;
1319
+ }, z.core.$strip>;
1320
+ color: z.ZodString;
1321
+ opacity: z.ZodNumber;
1322
+ createdAt: z.ZodISODateTime;
1323
+ modifiedAt: z.ZodISODateTime;
1324
+ id: z.ZodString;
1325
+ page: z.ZodNumber;
1326
+ author: z.ZodOptional<z.ZodString>;
1327
+ contents: z.ZodOptional<z.ZodString>;
1328
+ inReplyTo: z.ZodOptional<z.ZodString>;
1329
+ subject: z.ZodOptional<z.ZodString>;
1330
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1331
+ icon: z.ZodDefault<z.ZodType<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), z.core.$ZodTypeInternals<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {})>>>;
1332
+ }, z.core.$strip>, z.ZodObject<{
1333
+ width: z.ZodDefault<z.ZodNumber>;
1334
+ type: z.ZodLiteral<"freetext">;
1335
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1336
+ rect: z.ZodObject<{
1337
+ x: z.ZodNumber;
1338
+ y: z.ZodNumber;
1339
+ width: z.ZodNumber;
1340
+ height: z.ZodNumber;
1341
+ }, z.core.$strip>;
1342
+ color: z.ZodOptional<z.ZodString>;
1343
+ opacity: z.ZodNumber;
1344
+ createdAt: z.ZodISODateTime;
1345
+ modifiedAt: z.ZodISODateTime;
1346
+ id: z.ZodString;
1347
+ page: z.ZodNumber;
1348
+ author: z.ZodOptional<z.ZodString>;
1349
+ contents: z.ZodString;
1350
+ inReplyTo: z.ZodOptional<z.ZodString>;
1351
+ subject: z.ZodOptional<z.ZodString>;
1352
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1353
+ align: z.ZodOptional<z.ZodNever>;
1354
+ fontFamily: z.ZodOptional<z.ZodNever>;
1355
+ fontSize: z.ZodOptional<z.ZodNever>;
1356
+ defaultStyle: z.ZodObject<{
1357
+ color: z.ZodString;
1358
+ align: z.ZodOptional<z.ZodNever>;
1359
+ fontFamily: z.ZodDefault<z.ZodString>;
1360
+ fontSize: z.ZodDefault<z.ZodNumber>;
1361
+ textAlign: z.ZodDefault<z.ZodEnum<{
1362
+ left: "left";
1363
+ right: "right";
1364
+ center: "center";
1365
+ justify: "justify";
1366
+ }>>;
1367
+ fontWeight: z.ZodOptional<z.ZodLiteral<"bold">>;
1368
+ fontStyle: z.ZodOptional<z.ZodLiteral<"italic">>;
1369
+ textDecoration: z.ZodOptional<z.ZodLiteral<"underline">>;
1370
+ }, z.core.$strip>;
1371
+ borderColor: z.ZodOptional<z.ZodString>;
1372
+ fringe: z.ZodOptional<z.ZodObject<{
1373
+ left: z.ZodNumber;
1374
+ top: z.ZodNumber;
1375
+ right: z.ZodNumber;
1376
+ bottom: z.ZodNumber;
1377
+ }, z.core.$strip>>;
1378
+ callout: z.ZodOptional<z.ZodArray<z.ZodObject<{
1379
+ x: z.ZodNumber;
1380
+ y: z.ZodNumber;
1381
+ }, z.core.$strip>>>;
1382
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1383
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
1384
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1385
+ }, z.core.$strip>, z.ZodObject<{
1386
+ width: z.ZodDefault<z.ZodNumber>;
1387
+ type: z.ZodLiteral<"square">;
1388
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1389
+ rect: z.ZodObject<{
1390
+ x: z.ZodNumber;
1391
+ y: z.ZodNumber;
1392
+ width: z.ZodNumber;
1393
+ height: z.ZodNumber;
1394
+ }, z.core.$strip>;
1395
+ color: z.ZodString;
1396
+ opacity: z.ZodNumber;
1397
+ createdAt: z.ZodISODateTime;
1398
+ modifiedAt: z.ZodISODateTime;
1399
+ id: z.ZodString;
1400
+ page: z.ZodNumber;
1401
+ author: z.ZodOptional<z.ZodString>;
1402
+ contents: z.ZodOptional<z.ZodString>;
1403
+ inReplyTo: z.ZodOptional<z.ZodString>;
1404
+ subject: z.ZodOptional<z.ZodString>;
1405
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1406
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1407
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
1408
+ interiorColor: z.ZodOptional<z.ZodString>;
1409
+ }, z.core.$strip>, z.ZodObject<{
1410
+ width: z.ZodDefault<z.ZodNumber>;
1411
+ type: z.ZodLiteral<"circle">;
1412
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1413
+ rect: z.ZodObject<{
1414
+ x: z.ZodNumber;
1415
+ y: z.ZodNumber;
1416
+ width: z.ZodNumber;
1417
+ height: z.ZodNumber;
1418
+ }, z.core.$strip>;
1419
+ color: z.ZodString;
1420
+ opacity: z.ZodNumber;
1421
+ createdAt: z.ZodISODateTime;
1422
+ modifiedAt: z.ZodISODateTime;
1423
+ id: z.ZodString;
1424
+ page: z.ZodNumber;
1425
+ author: z.ZodOptional<z.ZodString>;
1426
+ contents: z.ZodOptional<z.ZodString>;
1427
+ inReplyTo: z.ZodOptional<z.ZodString>;
1428
+ subject: z.ZodOptional<z.ZodString>;
1429
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1430
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1431
+ cornerRadius: z.ZodOptional<z.ZodNever>;
1432
+ interiorColor: z.ZodOptional<z.ZodString>;
1433
+ }, z.core.$strip>, z.ZodObject<{
1434
+ width: z.ZodDefault<z.ZodNumber>;
1435
+ type: z.ZodLiteral<"line">;
1436
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1437
+ rect: z.ZodObject<{
1438
+ x: z.ZodNumber;
1439
+ y: z.ZodNumber;
1440
+ width: z.ZodNumber;
1441
+ height: z.ZodNumber;
1442
+ }, z.core.$strip>;
1443
+ color: z.ZodString;
1444
+ opacity: z.ZodNumber;
1445
+ createdAt: z.ZodISODateTime;
1446
+ modifiedAt: z.ZodISODateTime;
1447
+ id: z.ZodString;
1448
+ page: z.ZodNumber;
1449
+ author: z.ZodOptional<z.ZodString>;
1450
+ contents: z.ZodOptional<z.ZodString>;
1451
+ inReplyTo: z.ZodOptional<z.ZodString>;
1452
+ subject: z.ZodOptional<z.ZodString>;
1453
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1454
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1455
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1456
+ start: z.ZodObject<{
1457
+ x: z.ZodNumber;
1458
+ y: z.ZodNumber;
1459
+ }, z.core.$strip>;
1460
+ end: z.ZodObject<{
1461
+ x: z.ZodNumber;
1462
+ y: z.ZodNumber;
1463
+ }, z.core.$strip>;
1464
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1465
+ }, z.core.$strip>, z.ZodObject<{
1466
+ width: z.ZodDefault<z.ZodNumber>;
1467
+ type: z.ZodLiteral<"polyline">;
1468
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1469
+ rect: z.ZodObject<{
1470
+ x: z.ZodNumber;
1471
+ y: z.ZodNumber;
1472
+ width: z.ZodNumber;
1473
+ height: z.ZodNumber;
1474
+ }, z.core.$strip>;
1475
+ color: z.ZodString;
1476
+ opacity: z.ZodNumber;
1477
+ createdAt: z.ZodISODateTime;
1478
+ modifiedAt: z.ZodISODateTime;
1479
+ id: z.ZodString;
1480
+ page: z.ZodNumber;
1481
+ author: z.ZodOptional<z.ZodString>;
1482
+ contents: z.ZodOptional<z.ZodString>;
1483
+ inReplyTo: z.ZodOptional<z.ZodString>;
1484
+ subject: z.ZodOptional<z.ZodString>;
1485
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1486
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1487
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1488
+ interiorColor: z.ZodOptional<z.ZodString>;
1489
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1490
+ vertices: z.ZodArray<z.ZodObject<{
1491
+ x: z.ZodNumber;
1492
+ y: z.ZodNumber;
1493
+ }, z.core.$strip>>;
1494
+ }, z.core.$strip>, z.ZodObject<{
1495
+ width: z.ZodDefault<z.ZodNumber>;
1496
+ type: z.ZodLiteral<"polygon">;
1497
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1498
+ rect: z.ZodObject<{
1499
+ x: z.ZodNumber;
1500
+ y: z.ZodNumber;
1501
+ width: z.ZodNumber;
1502
+ height: z.ZodNumber;
1503
+ }, z.core.$strip>;
1504
+ color: z.ZodString;
1505
+ opacity: z.ZodNumber;
1506
+ createdAt: z.ZodISODateTime;
1507
+ modifiedAt: z.ZodISODateTime;
1508
+ id: z.ZodString;
1509
+ page: z.ZodNumber;
1510
+ author: z.ZodOptional<z.ZodString>;
1511
+ contents: z.ZodOptional<z.ZodString>;
1512
+ inReplyTo: z.ZodOptional<z.ZodString>;
1513
+ subject: z.ZodOptional<z.ZodString>;
1514
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1515
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1516
+ head: z.ZodOptional<z.ZodNever>;
1517
+ interiorColor: z.ZodOptional<z.ZodString>;
1518
+ tail: z.ZodOptional<z.ZodNever>;
1519
+ vertices: z.ZodArray<z.ZodObject<{
1520
+ x: z.ZodNumber;
1521
+ y: z.ZodNumber;
1522
+ }, z.core.$strip>>;
1523
+ }, z.core.$strip>, z.ZodObject<{
1524
+ width: z.ZodDefault<z.ZodNumber>;
1525
+ type: z.ZodLiteral<"ink">;
1526
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1527
+ rect: z.ZodObject<{
1528
+ x: z.ZodNumber;
1529
+ y: z.ZodNumber;
1530
+ width: z.ZodNumber;
1531
+ height: z.ZodNumber;
1532
+ }, z.core.$strip>;
1533
+ color: z.ZodString;
1534
+ opacity: z.ZodNumber;
1535
+ createdAt: z.ZodISODateTime;
1536
+ modifiedAt: z.ZodISODateTime;
1537
+ id: z.ZodString;
1538
+ page: z.ZodNumber;
1539
+ author: z.ZodOptional<z.ZodString>;
1540
+ contents: z.ZodOptional<z.ZodString>;
1541
+ inReplyTo: z.ZodOptional<z.ZodString>;
1542
+ subject: z.ZodOptional<z.ZodString>;
1543
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1544
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1545
+ inklist: z.ZodArray<z.ZodArray<z.ZodObject<{
1546
+ x: z.ZodNumber;
1547
+ y: z.ZodNumber;
1548
+ }, z.core.$strip>>>;
1549
+ pressure: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>;
1550
+ }, z.core.$strip>, z.ZodObject<{
1551
+ type: z.ZodLiteral<"stamp">;
1552
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1553
+ rect: z.ZodObject<{
1554
+ x: z.ZodNumber;
1555
+ y: z.ZodNumber;
1556
+ width: z.ZodNumber;
1557
+ height: z.ZodNumber;
1558
+ }, z.core.$strip>;
1559
+ color: z.ZodString;
1560
+ opacity: z.ZodNumber;
1561
+ createdAt: z.ZodISODateTime;
1562
+ modifiedAt: z.ZodISODateTime;
1563
+ id: z.ZodString;
1564
+ page: z.ZodNumber;
1565
+ author: z.ZodOptional<z.ZodString>;
1566
+ contents: z.ZodOptional<z.ZodString>;
1567
+ inReplyTo: z.ZodOptional<z.ZodString>;
1568
+ subject: z.ZodOptional<z.ZodString>;
1569
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1570
+ imagedata: z.ZodString;
1571
+ rotation: z.ZodOptional<z.ZodLiteral<0 | 90 | 180 | 270>>;
1572
+ }, z.core.$strip>, z.ZodObject<{
1573
+ width: z.ZodDefault<z.ZodNumber>;
1574
+ type: z.ZodLiteral<"loupe">;
1575
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1576
+ rect: z.ZodObject<{
1577
+ x: z.ZodNumber;
1578
+ y: z.ZodNumber;
1579
+ width: z.ZodNumber;
1580
+ height: z.ZodNumber;
1581
+ }, z.core.$strip>;
1582
+ color: z.ZodString;
1583
+ opacity: z.ZodNumber;
1584
+ createdAt: z.ZodISODateTime;
1585
+ modifiedAt: z.ZodISODateTime;
1586
+ id: z.ZodString;
1587
+ page: z.ZodNumber;
1588
+ author: z.ZodOptional<z.ZodString>;
1589
+ contents: z.ZodOptional<z.ZodString>;
1590
+ inReplyTo: z.ZodOptional<z.ZodString>;
1591
+ subject: z.ZodOptional<z.ZodString>;
1592
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1593
+ magnification: z.ZodDefault<z.ZodNumber>;
1594
+ }, z.core.$strip>, z.ZodObject<{
1595
+ type: z.ZodLiteral<"mask">;
1596
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1597
+ rect: z.ZodObject<{
1598
+ x: z.ZodNumber;
1599
+ y: z.ZodNumber;
1600
+ width: z.ZodNumber;
1601
+ height: z.ZodNumber;
1602
+ }, z.core.$strip>;
1603
+ color: z.ZodString;
1604
+ opacity: z.ZodNumber;
1605
+ createdAt: z.ZodISODateTime;
1606
+ modifiedAt: z.ZodISODateTime;
1607
+ id: z.ZodString;
1608
+ page: z.ZodNumber;
1609
+ author: z.ZodOptional<z.ZodString>;
1610
+ contents: z.ZodOptional<z.ZodString>;
1611
+ inReplyTo: z.ZodOptional<z.ZodString>;
1612
+ subject: z.ZodOptional<z.ZodString>;
1613
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1614
+ shape: z.ZodEnum<{
1615
+ rect: "rect";
1616
+ ellipse: "ellipse";
1617
+ }>;
1618
+ dim: z.ZodDefault<z.ZodNumber>;
1619
+ }, z.core.$strip>, z.ZodObject<{
1620
+ quads: z.ZodOptional<z.ZodArray<z.ZodObject<{
1621
+ p1: z.ZodObject<{
1622
+ x: z.ZodNumber;
1623
+ y: z.ZodNumber;
1624
+ }, z.core.$strip>;
1625
+ p2: z.ZodObject<{
1626
+ x: z.ZodNumber;
1627
+ y: z.ZodNumber;
1628
+ }, z.core.$strip>;
1629
+ p3: z.ZodObject<{
1630
+ x: z.ZodNumber;
1631
+ y: z.ZodNumber;
1632
+ }, z.core.$strip>;
1633
+ p4: z.ZodObject<{
1634
+ x: z.ZodNumber;
1635
+ y: z.ZodNumber;
1636
+ }, z.core.$strip>;
1637
+ }, z.core.$strip>>>;
1638
+ type: z.ZodLiteral<"redact">;
1639
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1640
+ rect: z.ZodObject<{
1641
+ x: z.ZodNumber;
1642
+ y: z.ZodNumber;
1643
+ width: z.ZodNumber;
1644
+ height: z.ZodNumber;
1645
+ }, z.core.$strip>;
1646
+ color: z.ZodString;
1647
+ opacity: z.ZodNumber;
1648
+ createdAt: z.ZodISODateTime;
1649
+ modifiedAt: z.ZodISODateTime;
1650
+ id: z.ZodString;
1651
+ page: z.ZodNumber;
1652
+ author: z.ZodOptional<z.ZodString>;
1653
+ contents: z.ZodOptional<z.ZodString>;
1654
+ inReplyTo: z.ZodOptional<z.ZodString>;
1655
+ subject: z.ZodOptional<z.ZodString>;
1656
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1657
+ interiorColor: z.ZodString;
1658
+ overlayText: z.ZodOptional<z.ZodString>;
1659
+ }, z.core.$strip>], "type">;
1660
+ type Annotation$1 = z.infer<typeof AnnotationSchema>;
1661
+ type ExportedAnnotation = z.infer<typeof ExportedAnnotationSchema>;
1662
+ type AnnotationType = Annotation$1['type'];
1663
+ type AnnotationOfType<T extends AnnotationType> = Extract<Annotation$1, {
1664
+ type: T;
1665
+ }>;
1666
+ type TextMarkupAnnotation = z.infer<typeof TextMarkupSchema>;
1667
+ type NoteAnnotation = z.infer<typeof NoteSchema>;
1668
+ type FreeTextAnnotation = z.infer<typeof FreeTextSchema>;
1669
+ type FreeTextStyle$1 = z.infer<typeof FreeTextStyleSchema>;
1670
+ type ShapeAnnotation = z.infer<typeof ShapeSchema>;
1671
+ type LineAnnotation = z.infer<typeof LineSchema>;
1672
+ type PolyAnnotation = z.infer<typeof PolySchema>;
1673
+ type InkAnnotation = z.infer<typeof InkSchema>;
1674
+ type StampAnnotation = z.infer<typeof StampSchema>;
1675
+ type LoupeAnnotation = z.infer<typeof LoupeSchema>;
1676
+ type MaskAnnotation = z.infer<typeof MaskSchema>;
1677
+ type RedactAnnotation = z.infer<typeof RedactSchema>;
1678
+ type LineEnding$1 = z.infer<typeof LineEndingSchema>;
1679
+ /**
1680
+ * What `update` takes: any of a type's fields. A free-text `defaultStyle` may be partial; it
1681
+ * merges into the current one.
1682
+ */
1683
+ type AnnotationPatch = Annotation$1 extends (infer A) ? A extends FreeTextAnnotation ? Omit<Partial<A>, 'defaultStyle'> & {
1684
+ defaultStyle?: Partial<FreeTextStyle$1>;
1685
+ } : Partial<A> : never;
1686
+ /** Keys the store fills in; callers never supply them (except an optional `id`). */
1687
+ type Generated = 'id' | 'createdAt' | 'modifiedAt' | 'source' | 'locked';
1688
+ /** Keys the store derives or defaults when absent. */
1689
+ type Defaulted = 'rect' | 'color' | 'opacity';
1690
+ /** Builds the caller-facing shape of one member from its zod input type. */
1691
+ type InputOf<I> = I extends unknown ? Omit<I, Generated | Defaulted> & Partial<Pick<I, Extract<Defaulted, keyof I>>> & {
1692
+ id?: string;
1693
+ } : never;
1694
+ type FreeTextInput = z.input<typeof FreeTextSchema>;
1695
+ /** Free text may leave out `defaultStyle`, or any of its keys: the store fills the text colour. */
1696
+ type FreeTextCallerInput = Omit<InputOf<FreeTextInput>, 'defaultStyle'> & {
1697
+ defaultStyle?: Partial<z.input<typeof FreeTextStyleSchema>>;
1698
+ };
1699
+ type RedactInput = z.input<typeof RedactSchema>;
1700
+ type RedactBase = Omit<InputOf<RedactInput>, 'interiorColor' | 'rect' | 'quads'> & {
1701
+ interiorColor?: string;
1702
+ };
1703
+ type RedactCallerInput = (RedactBase & {
1704
+ rect: RedactInput['rect'];
1705
+ quads?: RedactInput['quads'];
1706
+ }) | (RedactBase & {
1707
+ rect?: RedactInput['rect'];
1708
+ quads: NonNullable<RedactInput['quads']>;
1709
+ });
1710
+ /**
1711
+ * What callers pass to `add`. Built from zod input types, so fields with defaults or
1712
+ * optional fields may be omitted. A redaction needs `rect` or `quads` (the store
1713
+ * derives the other), and `interiorColor` defaults to the store's redaction colour. Free text
1714
+ * may leave out `defaultStyle`; its text colour defaults to the store's free-text colour.
1715
+ */
1716
+ type AnnotationInput = InputOf<z.input<typeof TextMarkupSchema> | z.input<typeof NoteSchema> | z.input<typeof ShapeSchema> | z.input<typeof LineSchema> | z.input<typeof PolySchema> | z.input<typeof InkSchema>> | (InputOf<z.input<typeof StampSchema>> & {
1717
+ rect: z.input<typeof StampSchema>['rect'];
1718
+ }) | (InputOf<z.input<typeof LoupeSchema>> & {
1719
+ rect: z.input<typeof LoupeSchema>['rect'];
1720
+ }) | (InputOf<z.input<typeof MaskSchema>> & {
1721
+ rect: z.input<typeof MaskSchema>['rect'];
1722
+ }) | FreeTextCallerInput | RedactCallerInput;
1723
+ declare const AnnotationDocumentSchema: z.ZodObject<{
1724
+ format: z.ZodLiteral<"gloss">;
1725
+ version: z.ZodLiteral<1>;
1726
+ documentKey: z.ZodOptional<z.ZodString>;
1727
+ annotations: z.ZodArray<z.ZodUnknown>;
1728
+ }, z.core.$strip>;
1729
+ /**
1730
+ * An item whose `type` this version does not know, such as one from a newer writer. It is kept
1731
+ * as-is so it survives an import and export round trip.
1732
+ */
1733
+ type ForeignAnnotation = UnknownAnnotation;
1734
+ /** A Gloss document holding Inkbar's annotations and any foreign items it kept. */
1735
+ interface AnnotationDocument {
1736
+ format: GlossDocument['format'];
1737
+ version: GlossDocument['version'];
1738
+ documentKey?: string;
1739
+ annotations: Array<Annotation | ForeignAnnotation>;
1740
+ }
1741
+ //#endregion
1742
+ //#region src/model/annotations/defaults.d.ts
1743
+ interface AnnotationDefaults {
1744
+ color(type: AnnotationType): string;
1745
+ /** Fill colour for redactions. */
1746
+ fill(): string;
1747
+ opacity(type: AnnotationType): number;
1748
+ }
1749
+ declare const staticDefaults: AnnotationDefaults;
1750
+ /** Resolves default colours from CSS custom properties on `el`, falling back to `staticDefaults`. */
1751
+ declare function cssVariableDefaults(el: Element): AnnotationDefaults;
1752
+ /** Accepts `#rgb`, `#rrggbb`, `rgb(r, g, b)` and `rgb(r g b)`; returns `#RRGGBB` or undefined. */
1753
+ declare function normalizeColor(value: string): string | undefined;
1754
+ //#endregion
1755
+ //#region src/model/annotations/callout.d.ts
1756
+ /**
1757
+ * The insets from a free text's `rect` to its text box, in points (PDF `/RD`, XFDF `fringe`,
1758
+ * both in this order).
1759
+ */
1760
+ declare const FringeSchema: z.ZodObject<{
1761
+ left: z.ZodNumber;
1762
+ top: z.ZodNumber;
1763
+ right: z.ZodNumber;
1764
+ bottom: z.ZodNumber;
1765
+ }, z.core.$strip>;
1766
+ type Fringe$1 = z.infer<typeof FringeSchema>;
1767
+ //#endregion
1768
+ //#region src/model/annotations/embedded.d.ts
1769
+ declare const SUPPORTED_SUBTYPES: ReadonlySet<string>;
1770
+ interface EmbeddedSummary {
1771
+ subtype: string;
1772
+ count: number;
1773
+ supported: boolean;
1774
+ }
1775
+ declare function pdfColorToHex(c: ArrayLike<number> | null | undefined, fallback: string): string;
1776
+ /**
1777
+ * Imported ids are `pdf:<page>:<pdfjsId>` (page is 0-based, pdfjsId is the annotation's object
1778
+ * reference such as `12R`). They are stable across opens of the same file, and `inReplyTo`
1779
+ * uses the same scheme so threads resolve.
1780
+ */
1781
+ declare function importedId(page: number, pdfjsId: string): string;
1782
+ /**
1783
+ * @internal An imported annotation whose fields PDF.js leaves out, to be read from the file itself once
1784
+ * the document is ready: a FreeText's `/CL`, `/RD`, `/LE` and `/DA` font, or a note's `/Name`
1785
+ * when PDF.js reports `NoIcon`.
1786
+ */
1787
+ interface EmbeddedTarget {
1788
+ /** The imported id, `pdf:<page>:<pdfjsId>`. */
1789
+ id: string;
1790
+ subtype: 'FreeText' | 'Text';
1791
+ /** The annotation's `/Rect` as PDF.js gives it, `[x1, y1, x2, y2]`. */
1792
+ rect: readonly number[];
1793
+ /** FreeText only: the `/DA` font resource name. */
1794
+ daFont?: string;
1795
+ }
1796
+ /**
1797
+ * The fields read from the file for one embedded annotation: what PDF.js left out. They merge
1798
+ * onto the annotation as it is when they land, so edits made in between are kept.
1799
+ */
1800
+ interface EmbeddedFieldPatch {
1801
+ /** FreeText `/CL`: the tip, an optional bend, and where the line meets the box. */
1802
+ callout?: Point$1[];
1803
+ /** FreeText `/RD`. */
1804
+ fringe?: Fringe$1;
1805
+ /** FreeText `/LE`. */
1806
+ head?: string;
1807
+ /** Text `/Name`. */
1808
+ icon?: string;
1809
+ /** FreeText `/DA` font, merged into `defaultStyle`. */
1810
+ font?: {
1811
+ fontFamily?: string;
1812
+ fontWeight?: 'bold';
1813
+ fontStyle?: 'italic';
1814
+ };
1815
+ }
1816
+ /**
1817
+ * Imports one page's PDF.js annotation data. `targets` is @internal: the annotations whose
1818
+ * missing fields the document reads from the file after `ready`.
1819
+ */
1820
+ declare function importEmbeddedPage(page: number, raw: PdfjsAnnotationData[], importedAt: string): {
1821
+ annotations: Annotation$1[];
1822
+ counts: Record<string, number>;
1823
+ targets: EmbeddedTarget[];
1824
+ };
1825
+ declare function summarise(perPage: Record<string, number>[]): EmbeddedSummary[];
1826
+ //#endregion
1827
+ //#region src/model/annotations/store.d.ts
1828
+ type AnnotationChange = {
1829
+ kind: 'add';
1830
+ annotation: Annotation$1;
1831
+ } | {
1832
+ kind: 'update';
1833
+ id: string;
1834
+ before: Annotation$1;
1835
+ after: Annotation$1;
1836
+ } | {
1837
+ kind: 'remove';
1838
+ /** The annotation `remove` was called with. */
1839
+ annotation: Annotation$1;
1840
+ /** Everything that went: `annotation` first, then the replies removed with it. */
1841
+ removed: Annotation$1[];
1842
+ } | {
1843
+ kind: 'replace';
1844
+ reason: 'import' | 'sync' | 'history';
1845
+ } | {
1846
+ kind: 'replace';
1847
+ /** Fields read from the file after `ready` filled in embedded annotations. */
1848
+ reason: 'embedded';
1849
+ /** What was merged into each annotation, by id. */
1850
+ fields: ReadonlyMap<string, EmbeddedFieldPatch>;
1851
+ };
1852
+ type StoreMode = {
1853
+ mode: 'uncontrolled';
1854
+ initial?: Annotation$1[];
1855
+ } | {
1856
+ mode: 'controlled';
1857
+ initial: Annotation$1[];
1858
+ onChange: (next: Annotation$1[], change: AnnotationChange) => void;
1859
+ };
1860
+ interface AnnotationStore {
1861
+ readonly mode: 'uncontrolled' | 'controlled';
1862
+ readonly list: Readable<readonly Annotation$1[]>;
1863
+ readonly selection: Readable<readonly string[]>;
1864
+ /** The colour, fill and opacity defaults new annotations get. */
1865
+ readonly defaults: AnnotationDefaults;
1866
+ get(id: string): Annotation$1 | undefined;
1867
+ byPage(page: number): Annotation$1[];
1868
+ /**
1869
+ * Returns the completed annotation. In controlled mode it is proposed to the host, not
1870
+ * applied. Throws an `Error` naming the id when it is already in the list, whether it came
1871
+ * from `input.id` or the store's `id` generator.
1872
+ */
1873
+ add(input: AnnotationInput): Annotation$1;
1874
+ /**
1875
+ * `id`, `type`, `createdAt` and `source` cannot be patched, nor can `locked` on an embedded
1876
+ * (`source: 'pdf'`) annotation: those keys are ignored. `modifiedAt` is always bumped. A
1877
+ * locked annotation refuses any patch to its geometry, `page` or `contents`.
1878
+ */
1879
+ update(id: string, patch: AnnotationPatch): Annotation$1 | undefined;
1880
+ remove(id: string): boolean;
1881
+ select(ids: string[]): void;
1882
+ /**
1883
+ * Uncontrolled: embedded annotations survive (the list may edit them like `update` would, but
1884
+ * cannot drop or add them). Controlled: proposes the list minus embedded items to `onChange`.
1885
+ */
1886
+ replaceAll(list: Annotation$1[], reason: 'import' | 'sync' | 'history'): void;
1887
+ /**
1888
+ * Controlled mode only: the host pushes its current list. Embedded (`source: 'pdf'`) items
1889
+ * belong to the store, so they stay in `list` whatever the host sends; host items that reuse
1890
+ * an embedded id are dropped.
1891
+ */
1892
+ setControlledValue(list: Annotation$1[]): void;
1893
+ /**
1894
+ * @internal Replaces the annotations embedded in the file (`source: 'pdf'`). Applied
1895
+ * directly in both modes and never passed to `onChange`; the document calls it once on open.
1896
+ */
1897
+ _setEmbedded(list: readonly Annotation$1[]): void;
1898
+ /**
1899
+ * @internal Merges fields read from the file into embedded annotations, by id, onto their
1900
+ * current version (only ids still present with `source: 'pdf'`; a merge that fails the schema
1901
+ * is skipped). A host edit to a read field made before the pass lands is overwritten by the
1902
+ * read value. Applied directly in both modes and never passed to `onChange`. Emits
1903
+ * `{ kind: 'replace', reason: 'embedded', fields }` when anything changed.
1904
+ */
1905
+ _patchEmbedded(fields: ReadonlyMap<string, EmbeddedFieldPatch>): void;
1906
+ /**
1907
+ * @internal Like `get`, but in controlled mode it also sees changes proposed to the host and
1908
+ * not applied yet: the list `update` and `remove` build on.
1909
+ */
1910
+ _getProposed(id: string): Annotation$1 | undefined;
1911
+ completeInput(input: AnnotationInput): Annotation$1;
1912
+ on(event: 'change', fn: (change: AnnotationChange) => void): () => void;
1913
+ destroy(): void;
1914
+ }
1915
+ interface StoreOptions {
1916
+ mode: StoreMode;
1917
+ defaults: AnnotationDefaults;
1918
+ now?: () => string;
1919
+ id?: () => string;
1920
+ }
1921
+ declare function deriveRect(input: AnnotationInput): Rect$1;
1922
+ declare function createAnnotationStore(opts: StoreOptions): AnnotationStore;
1923
+ //#endregion
1924
+ //#region src/model/annotations/history.d.ts
1925
+ interface History {
1926
+ readonly canUndo: Readable<boolean>;
1927
+ readonly canRedo: Readable<boolean>;
1928
+ undo(): void;
1929
+ redo(): void;
1930
+ clear(): void;
1931
+ /**
1932
+ * Runs `fn` and records everything it changes as one undo entry. Change events still fire once
1933
+ * per annotation. Nested calls join the outer batch. `fn` must be synchronous; changes after an
1934
+ * `await` are not part of the batch; a dev build warns when `fn` returns a promise. A throwing
1935
+ * `fn` still records what it changed, then rethrows. A batch whose list ends where it began
1936
+ * (the same annotations, by identity, in the same order) records nothing and keeps redo.
1937
+ * Calling `undo()` or `redo()` inside `fn` is not supported. On a controlled or destroyed
1938
+ * history this only runs `fn`, and a history destroyed inside `fn` records nothing.
1939
+ */
1940
+ batch(fn: () => void): void;
1941
+ /** Unsubscribes from the store and empties both stacks; undo and redo become no-ops. */
1942
+ destroy(): void;
1943
+ }
1944
+ /**
1945
+ * Snapshot-based undo and redo over an uncontrolled store.
1946
+ *
1947
+ * In controlled mode the host owns the list, so history is the host's concern (the Vue layer
1948
+ * offers `useHistory`). There `createHistory` returns an inert History: `canUndo` and `canRedo`
1949
+ * stay false, `undo` and `redo` do nothing, and nothing is recorded.
1950
+ */
1951
+ declare function createHistory(store: AnnotationStore, opts?: {
1952
+ limit?: number;
1953
+ }): History;
1954
+ //#endregion
1955
+ //#region src/model/annotations/json.d.ts
1956
+ interface ImportResult {
1957
+ imported: number;
1958
+ /**
1959
+ * Items whose `type` this version does not know (they still need a string `id` and a numeric
1960
+ * `page`). Keep them and pass them back to exportAnnotations.
1961
+ */
1962
+ unknown: ForeignAnnotation[];
1963
+ errors: {
1964
+ index: number;
1965
+ issues: string[];
1966
+ }[];
1967
+ }
1968
+ interface ImportOptions {
1969
+ /** `replace` drops every session annotation first; `merge` overwrites by id and keeps the rest. */
1970
+ mode: 'replace' | 'merge';
1971
+ }
1972
+ /**
1973
+ * Session annotations plus any preserved foreign items. Embedded (`source: 'pdf'`) ones stay in
1974
+ * the file. `source` and `locked` are viewer state and are left out.
1975
+ *
1976
+ * The result is a JSON copy (`JSON.parse(JSON.stringify(...))`), the same data a serialised
1977
+ * export would carry: editing it never touches the store, and values JSON cannot hold, such as
1978
+ * functions or `undefined` inside `custom`, are left out exactly as `JSON.stringify` would.
1979
+ *
1980
+ * Gloss has no loupe or mask, pen pressure or free-text border colour, so Inkbar writes these
1981
+ * under `custom.inkbar`, with loupes and masks as the circle or square they draw. Every other key
1982
+ * under `custom` goes out as it is.
1983
+ *
1984
+ * The result validates against the Gloss schema (`gloss-format/schema.json`). Foreign items
1985
+ * validate as unknown annotations while their type is one Gloss does not define.
1986
+ */
1987
+ declare function exportAnnotations(store: AnnotationStore, preserved?: readonly ForeignAnnotation[], documentKey?: string): AnnotationDocument;
1988
+ /**
1989
+ * Validates the envelope (throws a TypeError when it is not a gloss v1 document),
1990
+ * then each item on its own. Embedded annotations are never touched; imported items become
1991
+ * session annotations.
1992
+ */
1993
+ declare function importAnnotations(store: AnnotationStore, data: AnnotationDocument | string, opts: ImportOptions): ImportResult;
1994
+ //#endregion
1995
+ //#region src/model/errors.d.ts
1996
+ type InkErrorCode = 'PasswordRequired' | 'InvalidPdf' | 'SourceFetchFailed' | 'AssetConfigMissing' | 'AssetLoadFailed' | 'EngineUnavailable' | 'ControlledMutationIgnored' | 'DocumentDestroyed' | 'PageOutOfRange';
1997
+ declare class InkError extends Error {
1998
+ readonly name = "InkError";
1999
+ readonly code: InkErrorCode;
2000
+ readonly details: Readonly<Record<string, unknown>>;
2001
+ constructor(code: InkErrorCode, message: string, details?: Record<string, unknown>, cause?: unknown);
2002
+ }
2003
+ declare function isInkError(value: unknown): value is InkError;
2004
+ //#endregion
2005
+ //#region src/model/source.d.ts
2006
+ type DocumentSource = ArrayBuffer | Uint8Array | Blob | string | {
2007
+ url: string;
2008
+ key: string;
2009
+ } | {
2010
+ data: ArrayBuffer | Uint8Array;
2011
+ key: string;
2012
+ };
2013
+ //#endregion
2014
+ //#region src/model/text.d.ts
2015
+ interface TextItem {
2016
+ str: string;
2017
+ dir: 'ltr' | 'rtl' | 'ttb';
2018
+ fontName: string;
2019
+ fontSize: number;
2020
+ hasEOL: boolean;
2021
+ /** Glyph-run box in user space, following the run's rotation. */
2022
+ quad: Quad;
2023
+ /** Axis-aligned bounds of `quad`. */
2024
+ rect: Rect$1;
2025
+ }
2026
+ interface TextContent {
2027
+ page: number;
2028
+ items: TextItem[];
2029
+ }
2030
+ //#endregion
2031
+ //#region src/model/document.d.ts
2032
+ type DocumentStatus = {
2033
+ state: 'loading';
2034
+ } | {
2035
+ state: 'ready';
2036
+ } | {
2037
+ state: 'error';
2038
+ error: InkError;
2039
+ };
2040
+ /** A document's status plus `idle`, for a host with no document open. */
2041
+ type InkStatus = DocumentStatus | {
2042
+ state: 'idle';
2043
+ };
2044
+ interface DocumentInfo {
2045
+ title?: string | undefined;
2046
+ author?: string | undefined;
2047
+ pageCount: number;
2048
+ isEncrypted: boolean;
2049
+ }
2050
+ interface OpenOptions {
2051
+ assets: PdfAssets;
2052
+ password?: string | undefined;
2053
+ fetch?: typeof fetch | undefined;
2054
+ /**
2055
+ * Defaults to uncontrolled. In controlled mode the host owns only session annotations:
2056
+ * embedded (`source: 'pdf'`) ones live in the store, are never passed to `onChange`, and stay
2057
+ * in `list` whatever the host pushes back.
2058
+ */
2059
+ annotations?: StoreMode | undefined;
2060
+ /** Colour defaults. Pass `cssVariableDefaults(element)` from the DOM layer to read theme variables. */
2061
+ defaults?: AnnotationDefaults | undefined;
2062
+ /**
2063
+ * Undo history, on by default. `false` disables it. In controlled mode history is always
2064
+ * inert: the host owns the list, so it owns undo too.
2065
+ */
2066
+ history?: boolean | {
2067
+ limit?: number | undefined;
2068
+ } | undefined;
2069
+ /** PDF.js verbosity level; 0 = errors only. Defaults to PDF.js's own level. */
2070
+ verbosity?: number | undefined;
2071
+ }
2072
+ interface InkDocument {
2073
+ readonly key: string;
2074
+ readonly status: Readable<DocumentStatus>;
2075
+ /** Resolves when status is ready; rejects with the InkError when it is error. */
2076
+ readonly ready: Promise<void>;
2077
+ readonly pages: readonly PageInfo[];
2078
+ readonly info: DocumentInfo;
2079
+ text(page: number): Promise<TextContent>;
2080
+ /**
2081
+ * Annotations embedded in the file arrive here as `source: 'pdf'`, `locked: true` before
2082
+ * `ready` resolves. They stay in `list` in both modes and cannot be removed; in controlled
2083
+ * mode they never reach `onChange`. Fields PDF.js leaves out (a FreeText's callout, fringe,
2084
+ * head and font, a note's icon) are read from the file after `ready` and fill in later, as a
2085
+ * `{ kind: 'replace', reason: 'embedded', fields }` change.
2086
+ */
2087
+ readonly annotations: AnnotationStore;
2088
+ /** What the file contained, by PDF subtype, including subtypes Inkbar does not show. */
2089
+ readonly embedded: readonly EmbeddedSummary[];
2090
+ readonly history: History;
2091
+ /** Session annotations only, plus unknown-type items kept from earlier imports. */
2092
+ exportAnnotations(format: 'json'): AnnotationDocument;
2093
+ /** Defaults to `{ mode: 'replace' }`. Embedded annotations are never touched. */
2094
+ importAnnotations(data: AnnotationDocument | string, opts?: ImportOptions): ImportResult;
2095
+ /** Writes the document with its annotations. Needs @inkbar/engine; rejects with EngineUnavailable otherwise. */
2096
+ save(): Promise<Uint8Array>;
2097
+ destroy(): void;
2098
+ /** @internal PDF.js handles for the DOM layer. Not part of the public contract. */
2099
+ readonly _pdfjs: {
2100
+ module: PdfjsModule;
2101
+ proxy: PdfjsDocument;
2102
+ getPage(index: number): Promise<PdfjsPage>;
2103
+ };
2104
+ }
2105
+ /**
2106
+ * Opens a document. Resolves once loading has finished, whether it succeeded or not:
2107
+ * check `status` or await `ready`, which rejects with the InkError. Only a missing
2108
+ * `assets` option (a programmer error) makes this promise itself reject.
2109
+ */
2110
+ declare function openDocument(source: DocumentSource, options: OpenOptions): Promise<InkDocument>;
2111
+ //#endregion
2112
+ //#region src/model/annotations/tool-style.d.ts
2113
+ type StyleGroup = 'shape' | 'ink' | 'text' | 'markup' | 'redact';
2114
+ declare const STYLE_GROUPS: readonly StyleGroup[];
2115
+ /** Style as the controls name it; `style-map` turns it into each type's fields. */
2116
+ interface StyleProps {
2117
+ /** #RRGGBB */
2118
+ border?: string;
2119
+ /** `null` means no fill. */
2120
+ fill?: string | null;
2121
+ textColor?: string;
2122
+ opacity?: number;
2123
+ width?: number;
2124
+ /** `null` means solid. */
2125
+ dashes?: number[] | null;
2126
+ head?: LineEnding$1;
2127
+ tail?: LineEnding$1;
2128
+ fontFamily?: string;
2129
+ fontSize?: number;
2130
+ fontWeight?: 'normal' | 'bold';
2131
+ fontStyle?: 'normal' | 'italic';
2132
+ textDecoration?: 'none' | 'underline';
2133
+ textAlign?: 'left' | 'center' | 'right' | 'justify';
2134
+ }
2135
+ type StyleKey = keyof StyleProps;
2136
+ /** What the controls show: one value per prop, or `'mixed'` when a selection disagrees. */
2137
+ type CurrentStyle = { [K in StyleKey]?: StyleProps[K] | 'mixed'; };
2138
+ interface ToolStyle {
2139
+ get(group: StyleGroup): Readonly<StyleProps>;
2140
+ readable(group: StyleGroup): Readable<Readonly<StyleProps>>;
2141
+ /**
2142
+ * Values the controls show. Under a select tool, the selection's. Under a creation tool, the
2143
+ * selection's when it is non-empty and wholly in the tool's group, else the group's own: a
2144
+ * leftover selection from another tool does not take over the controls. `'mixed'` per prop
2145
+ * when selected values differ.
2146
+ */
2147
+ readonly current: Readable<CurrentStyle>;
2148
+ /**
2149
+ * Which props the active tool or the selection supports; controls disable the rest. Under a
2150
+ * creation tool, the group's props, plus the selection's when it is wholly in the group.
2151
+ */
2152
+ readonly supported: Readable<ReadonlySet<StyleKey>>;
2153
+ /**
2154
+ * Updates the active tool's group, or under a select tool (no active group) the group that
2155
+ * owns each prop on each selected annotation (a speech bubble's outline is `shape`'s, its
2156
+ * text `text`'s). With `apply` it also updates every selected, unlocked annotation that has
2157
+ * the props, in one history step. `apply` defaults to true under a select tool, and to
2158
+ * whether the selection is wholly in the group otherwise. `group` names the group explicitly.
2159
+ */
2160
+ set(patch: StyleProps, opts?: {
2161
+ group?: StyleGroup;
2162
+ apply?: boolean;
2163
+ }): void;
2164
+ /** Fills an AnnotationInput's unset style fields from the group (input wins). */
2165
+ resolve<T extends AnnotationInput>(group: StyleGroup, input: T): T;
2166
+ /**
2167
+ * The style as a control for one group sees it, whatever the active tool: the selection's
2168
+ * when every selected annotation is in `group`, else the group's own. Same identity per group.
2169
+ */
2170
+ scoped(group: StyleGroup): ScopedToolStyle;
2171
+ }
2172
+ /** A view of the tool style for one group, as `ToolStyle.scoped` gives it. */
2173
+ interface ScopedToolStyle {
2174
+ readonly group: StyleGroup;
2175
+ readonly current: Readable<CurrentStyle>;
2176
+ readonly supported: Readable<ReadonlySet<StyleKey>>;
2177
+ /** Updates the group, and the selection too when every selected annotation is in it. */
2178
+ set(patch: StyleProps): void;
2179
+ }
2180
+ interface ToolStyleDeps {
2181
+ store: AnnotationStore;
2182
+ history: {
2183
+ batch(fn: () => void): void;
2184
+ };
2185
+ /** The active tool's style group; `undefined` for select tools. */
2186
+ activeGroup: () => StyleGroup | undefined;
2187
+ /** Fires when the active tool changes, so `current` and `supported` follow it. */
2188
+ active?: Readable<unknown>;
2189
+ }
2190
+ declare function createToolStyle(deps: ToolStyleDeps): ToolStyle;
2191
+ //#endregion
2192
+ //#region src/model/signatures.d.ts
2193
+ /**
2194
+ * A saved signature. Ink points lie in a unit box (0 to 1 on both axes, y growing upwards)
2195
+ * that `aspect` (width over height) stretches back to shape. An image keeps its own pixels.
2196
+ */
2197
+ type SignatureTemplate = {
2198
+ id: string;
2199
+ kind: 'ink';
2200
+ inklist: Point$1[][];
2201
+ pressure?: number[][];
2202
+ aspect: number;
2203
+ } | {
2204
+ id: string;
2205
+ kind: 'image';
2206
+ imagedata: string;
2207
+ aspect: number;
2208
+ };
2209
+ /** Where templates live. The host's: a server, the browser, or memory. */
2210
+ interface SignatureStore {
2211
+ list(): Promise<SignatureTemplate[]>;
2212
+ /** Adds the template, or replaces the one with its id. */
2213
+ save(t: SignatureTemplate): Promise<void>;
2214
+ remove(id: string): Promise<void>;
2215
+ }
2216
+ /** Options for the `signature` tool: the template a click places. */
2217
+ interface SignatureOptions {
2218
+ templateId?: string;
2219
+ }
2220
+ /** How wide a placed signature is, in points. */
2221
+ declare const DEFAULT_SIGNATURE_WIDTH = 150;
2222
+ /** A placed ink signature's stroke width, in points. */
2223
+ declare const SIGNATURE_INK_WIDTH = 2;
2224
+ /** Templates in memory, gone on reload. The default when a host passes no store. */
2225
+ declare function createMemorySignatureStore(initial?: SignatureTemplate[]): SignatureStore;
2226
+ /**
2227
+ * Templates in `localStorage` under `key`, as a JSON array. Where storage is blocked (it refuses
2228
+ * even a tiny test write, as in some private windows) the templates stay in memory for the
2229
+ * page's life, so signing still works. Where storage works, or is full but holds a saved list,
2230
+ * and has no room for a change, the change is undone and `save` or `remove` rejects, so the host can say so. Stored entries it
2231
+ * cannot read, such as a later version's templates, are left out of `list` and kept on write.
2232
+ */
2233
+ declare function createLocalSignatureStore(key: string): SignatureStore;
2234
+ /**
2235
+ * Fits strokes into a unit box, for an ink template. Points come in any y-up space; they go
2236
+ * out between 0 and 1 on both axes, and `aspect` is the box's width over its height. A flat
2237
+ * side is given 1% of the long side (a dot, a square), so the aspect stays finite, and the
2238
+ * strokes are centred across it.
2239
+ */
2240
+ declare function normaliseInk(inklist: Point$1[][]): {
2241
+ inklist: Point$1[][];
2242
+ aspect: number;
2243
+ };
2244
+ /**
2245
+ * An ink template from strokes in any y-up space, with a new id. Throws a RangeError for no
2246
+ * strokes, an empty stroke, or pressure that does not have one value per point.
2247
+ */
2248
+ declare function createInkTemplate(inklist: Point$1[][], pressure?: number[][]): SignatureTemplate;
2249
+ /** An image template, with a new id. Throws a TypeError unless `imagedata` is a PNG or JPEG data URL. */
2250
+ declare function createImageTemplate(imagedata: string, aspect: number): SignatureTemplate;
2251
+ /**
2252
+ * The annotation that places `t` on `page`, `width` points wide on screen and centred on
2253
+ * `centre` (user space). `rotation` is the page's /Rotate (clockwise): the signature is turned
2254
+ * back by as much, so it reads upright on the page as the file displays it. A viewer's view
2255
+ * rotation is left out; it turns the signature with the page like any annotation. Ink becomes `ink` with `subject: 'Signature'`, its strokes inset by half their
2256
+ * width; an image becomes a `stamp` with `subject: 'Signature'`.
2257
+ */
2258
+ declare function placeSignature(t: SignatureTemplate, page: number, centre: Point$1, width?: number, rotation?: 0 | 90 | 180 | 270): AnnotationInput;
2259
+ /**
2260
+ * A store's templates kept at hand, so the `signature` tool places one without waiting and the
2261
+ * signature menus share one list. Every change goes through the store first.
2262
+ */
2263
+ interface SignatureLibrary {
2264
+ readonly store: SignatureStore;
2265
+ /** The templates as of the last load; empty until the first `refresh`. */
2266
+ readonly templates: Readable<readonly SignatureTemplate[]>;
2267
+ get(id: string): SignatureTemplate | undefined;
2268
+ /** Reloads from the store. A store that fails to list leaves the last list. */
2269
+ refresh(): Promise<void>;
2270
+ /** Saves through the store, then reloads. Rejects when the store does. */
2271
+ save(t: SignatureTemplate): Promise<void>;
2272
+ /**
2273
+ * Removes through the store, then reloads. Rejects when the store does, and then sets
2274
+ * `removeError` for the menus to show.
2275
+ */
2276
+ remove(id: string): Promise<void>;
2277
+ /** Why the last removal failed; cleared by the next one, or by `clearRemoveError`. */
2278
+ readonly removeError: Readable<string | undefined>;
2279
+ clearRemoveError(): void;
2280
+ }
2281
+ declare function createSignatureLibrary(store: SignatureStore): SignatureLibrary;
2282
+ //#endregion
2283
+ export { pdfColorToHex as $, StampAnnotation as $t, TextItem as A, LineAnnotation as At, createHistory as B, NoteSchema as Bt, DocumentInfo as C, rectFromPoints as Cn, GLOSS_FORMAT$1 as Ct, OpenOptions as D, translateRect as Dn, IMAGE_DATA_URL as Dt, InkStatus as E, translateQuad as En, GLOSS_VERSION$1 as Et, ImportOptions as F, LoupeSchema as Ft, createAnnotationStore as G, PolylineSchema as Gt, AnnotationStore as H, PolyAnnotation as Ht, ImportResult as I, MaskAnnotation as It, EmbeddedSummary as J, RedactAnnotation as Jt, deriveRect as K, QuadSchema as Kt, exportAnnotations as L, MaskSchema as Lt, InkError as M, LineEndingSchema as Mt, InkErrorCode as N, LineSchema as Nt, openDocument as O, unionRects as On, InkAnnotation as Ot, isInkError as P, LoupeAnnotation as Pt, importedId as Q, SquareSchema as Qt, importAnnotations as R, NoteAnnotation as Rt, createToolStyle as S, rectContainsPoint as Sn, FreeTextStyleSchema as St, InkDocument as T, rectsIntersect as Tn, GLOSS_SCHEMA_ID as Tt, StoreMode as U, PolySchema as Ut, AnnotationChange as V, PointSchema as Vt, StoreOptions as W, PolygonSchema as Wt, SUPPORTED_SUBTYPES as X, ShapeAnnotation as Xt, EmbeddedTarget as Y, RedactSchema as Yt, importEmbeddedPage as Z, ShapeSchema as Zt, StyleGroup as _, invertMatrix as _n, ExportedAnnotationSchema as _t, SignatureStore as a, derived as an, normalizeColor as at, ToolStyle as b, quadFromRect as bn, FreeTextSchema as bt, createInkTemplate as c, PageInfo as cn, AnnotationDocument as ct, createSignatureLibrary as d, Matrix as dn, AnnotationOfType as dt, StampSchema as en, summarise as et, normaliseInk as f, Point$1 as fn, AnnotationPatch as ft, ScopedToolStyle as g, approxEqual as gn, ExportedAnnotation as gt, STYLE_GROUPS as h, applyMatrix as hn, CircleSchema as ht, SignatureOptions as i, Writable as in, cssVariableDefaults as it, DocumentSource as j, LineEnding$1 as jt, TextContent as k, InkSchema as kt, createLocalSignatureStore as l, PageRotation as ln, AnnotationDocumentSchema as lt, CurrentStyle as m, Rect$1 as mn, AnnotationType as mt, SIGNATURE_INK_WIDTH as n, TextMarkupSchema as nn, FringeSchema as nt, SignatureTemplate as o, readonly as on, staticDefaults as ot, placeSignature as p, Quad as pn, AnnotationSchema as pt, EmbeddedFieldPatch as q, RectSchema as qt, SignatureLibrary as r, Readable as rn, AnnotationDefaults as rt, createImageTemplate as s, writable as sn, Annotation$1 as st, DEFAULT_SIGNATURE_WIDTH as t, TextMarkupAnnotation as tn, Fringe$1 as tt, createMemorySignatureStore as u, PdfAssets as un, AnnotationInput as ut, StyleKey as v, multiplyMatrix as vn, ForeignAnnotation as vt, DocumentStatus as w, rectFromQuad as wn, GLOSS_MEDIA_TYPE as wt, ToolStyleDeps as x, quadsFromFlat as xn, FreeTextStyle$1 as xt, StyleProps as y, pointsFromFlat as yn, FreeTextAnnotation as yt, History as z, NoteIconSchema as zt };
2284
+ //# sourceMappingURL=signatures-BwaXi7C8.d.mts.map