@inkbar/core 0.3.0 → 0.4.0

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