js.documents 0.0.0 → 1.54.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,1407 @@
1
+ import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Package, Package as Package$1, PackageSchema, Part, PartSchema, Relationship, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElement as XmlElement$1, XmlElementSchema, XmlNode, XmlNode as XmlNode$1, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rootElement, serializePackage, textContent as textContent$1, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
2
+ import { Alignment, Box, Box as Box$1, COLOR_BLACK, Color, Color as LayoutColor, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValue as ContentCellValue$1, ContentCellValueSchema, ContentDrawPage, ContentDrawPageSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembership as ContentListMembership$1, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPoint as ContentPathPoint$1, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRun as ContentRun$1, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettings as ContentSheetPrintSettings$1, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStroke as ContentStroke$1, ContentStrokeSchema, ContentSubpath, ContentSubpath as ContentSubpath$1, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DocumentPackage, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocument as LayoutDocument$1, LayoutEllipse, LayoutFont, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutMetadata, LayoutMetadata as LayoutMetadata$1, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, Margins, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, isContentBlock, rgbHexToColor } from "document-content-model";
3
+ import { z } from "zod";
4
+ import { Package as Package$2, XmlElement as XmlElement$2, XmlNode as XmlNode$2 } from "odf.js";
5
+ import { LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfDiagnosticSink as PdfDiagnosticSink$1, PdfEncryptedError, PdfParseError, PositionedFormula, PositionedFormula as PositionedFormula$1, ReadPdfOptions, TextMeasurer, WinAnsiSubstitution, WinAnsiSubstitution as WinAnsiSubstitution$1, WritePdfOptions, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
6
+ //#region src/model/content.d.ts
7
+ declare const CONTENT_FORMAT_VERSION = 1;
8
+ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9
+ kind: z.ZodLiteral<"wordprocessing">;
10
+ formatVersion: z.ZodLiteral<1>;
11
+ metadata: z.ZodObject<{
12
+ title: z.ZodOptional<z.ZodString>;
13
+ author: z.ZodOptional<z.ZodString>;
14
+ subject: z.ZodOptional<z.ZodString>;
15
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
+ creator: z.ZodOptional<z.ZodString>;
17
+ producer: z.ZodOptional<z.ZodString>;
18
+ createdIso: z.ZodOptional<z.ZodString>;
19
+ modifiedIso: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ sections: z.ZodArray<z.ZodObject<{
22
+ pageSize: z.ZodObject<{
23
+ widthPt: z.ZodNumber;
24
+ heightPt: z.ZodNumber;
25
+ }, z.core.$strip>;
26
+ margins: z.ZodObject<{
27
+ topPt: z.ZodNumber;
28
+ rightPt: z.ZodNumber;
29
+ bottomPt: z.ZodNumber;
30
+ leftPt: z.ZodNumber;
31
+ }, z.core.$strip>;
32
+ blocks: z.ZodArray<z.ZodCustom<import("document-content-model").ContentBlock, import("document-content-model").ContentBlock>>;
33
+ }, z.core.$strip>>;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ kind: z.ZodLiteral<"presentation">;
36
+ formatVersion: z.ZodLiteral<1>;
37
+ metadata: z.ZodObject<{
38
+ title: z.ZodOptional<z.ZodString>;
39
+ author: z.ZodOptional<z.ZodString>;
40
+ subject: z.ZodOptional<z.ZodString>;
41
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
42
+ creator: z.ZodOptional<z.ZodString>;
43
+ producer: z.ZodOptional<z.ZodString>;
44
+ createdIso: z.ZodOptional<z.ZodString>;
45
+ modifiedIso: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>;
47
+ slides: z.ZodArray<z.ZodObject<{
48
+ size: z.ZodObject<{
49
+ widthPt: z.ZodNumber;
50
+ heightPt: z.ZodNumber;
51
+ }, z.core.$strip>;
52
+ shapes: z.ZodArray<z.ZodObject<{
53
+ name: z.ZodOptional<z.ZodString>;
54
+ frame: z.ZodObject<{
55
+ xPt: z.ZodNumber;
56
+ yPt: z.ZodNumber;
57
+ widthPt: z.ZodNumber;
58
+ heightPt: z.ZodNumber;
59
+ }, z.core.$strip>;
60
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
61
+ insetLeftPt: z.ZodNumber;
62
+ insetTopPt: z.ZodNumber;
63
+ insetRightPt: z.ZodNumber;
64
+ insetBottomPt: z.ZodNumber;
65
+ fontScale: z.ZodOptional<z.ZodNumber>;
66
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
67
+ sourcePath: z.ZodOptional<z.ZodString>;
68
+ blocks: z.ZodArray<z.ZodCustom<import("document-content-model").ContentBlock, import("document-content-model").ContentBlock>>;
69
+ }, z.core.$strip>>;
70
+ notes: z.ZodString;
71
+ }, z.core.$strip>>;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ kind: z.ZodLiteral<"spreadsheet">;
74
+ formatVersion: z.ZodLiteral<1>;
75
+ metadata: z.ZodObject<{
76
+ title: z.ZodOptional<z.ZodString>;
77
+ author: z.ZodOptional<z.ZodString>;
78
+ subject: z.ZodOptional<z.ZodString>;
79
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
+ creator: z.ZodOptional<z.ZodString>;
81
+ producer: z.ZodOptional<z.ZodString>;
82
+ createdIso: z.ZodOptional<z.ZodString>;
83
+ modifiedIso: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>;
85
+ sheets: z.ZodArray<z.ZodObject<{
86
+ name: z.ZodString;
87
+ cells: z.ZodArray<z.ZodObject<{
88
+ row: z.ZodNumber;
89
+ column: z.ZodNumber;
90
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
91
+ kind: z.ZodLiteral<"number">;
92
+ value: z.ZodNumber;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ kind: z.ZodLiteral<"percentage">;
95
+ value: z.ZodNumber;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ kind: z.ZodLiteral<"currency">;
98
+ value: z.ZodNumber;
99
+ currency: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strip>, z.ZodObject<{
101
+ kind: z.ZodLiteral<"boolean">;
102
+ value: z.ZodBoolean;
103
+ }, z.core.$strip>, z.ZodObject<{
104
+ kind: z.ZodLiteral<"date">;
105
+ value: z.ZodString;
106
+ }, z.core.$strip>, z.ZodObject<{
107
+ kind: z.ZodLiteral<"time">;
108
+ value: z.ZodString;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ kind: z.ZodLiteral<"string">;
111
+ value: z.ZodString;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ kind: z.ZodLiteral<"error">;
114
+ value: z.ZodString;
115
+ }, z.core.$strip>, z.ZodObject<{
116
+ kind: z.ZodLiteral<"empty">;
117
+ }, z.core.$strip>], "kind">;
118
+ formula: z.ZodOptional<z.ZodString>;
119
+ displayText: z.ZodString;
120
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
+ text: z.ZodString;
122
+ bold: z.ZodOptional<z.ZodBoolean>;
123
+ italic: z.ZodOptional<z.ZodBoolean>;
124
+ underline: z.ZodOptional<z.ZodBoolean>;
125
+ strike: z.ZodOptional<z.ZodBoolean>;
126
+ fontFamily: z.ZodOptional<z.ZodString>;
127
+ sizePt: z.ZodOptional<z.ZodNumber>;
128
+ color: z.ZodOptional<z.ZodObject<{
129
+ r: z.ZodNumber;
130
+ g: z.ZodNumber;
131
+ b: z.ZodNumber;
132
+ }, z.core.$strip>>;
133
+ hyperlink: z.ZodOptional<z.ZodString>;
134
+ sourcePath: z.ZodOptional<z.ZodString>;
135
+ }, z.core.$strip>>>;
136
+ colSpan: z.ZodOptional<z.ZodNumber>;
137
+ rowSpan: z.ZodOptional<z.ZodNumber>;
138
+ }, z.core.$strip>>;
139
+ columns: z.ZodArray<z.ZodObject<{
140
+ index: z.ZodNumber;
141
+ widthPt: z.ZodNumber;
142
+ hidden: z.ZodOptional<z.ZodBoolean>;
143
+ }, z.core.$strip>>;
144
+ rows: z.ZodArray<z.ZodObject<{
145
+ index: z.ZodNumber;
146
+ heightPt: z.ZodNumber;
147
+ hidden: z.ZodOptional<z.ZodBoolean>;
148
+ }, z.core.$strip>>;
149
+ images: z.ZodArray<z.ZodObject<{
150
+ kind: z.ZodLiteral<"image">;
151
+ format: z.ZodEnum<{
152
+ png: "png";
153
+ jpeg: "jpeg";
154
+ }>;
155
+ base64: z.ZodString;
156
+ widthPt: z.ZodNumber;
157
+ heightPt: z.ZodNumber;
158
+ altText: z.ZodOptional<z.ZodString>;
159
+ sourcePath: z.ZodOptional<z.ZodString>;
160
+ anchorRow: z.ZodNumber;
161
+ anchorColumn: z.ZodNumber;
162
+ offsetXPt: z.ZodNumber;
163
+ offsetYPt: z.ZodNumber;
164
+ }, z.core.$strip>>;
165
+ printSettings: z.ZodObject<{
166
+ pageSize: z.ZodObject<{
167
+ widthPt: z.ZodNumber;
168
+ heightPt: z.ZodNumber;
169
+ }, z.core.$strip>;
170
+ margins: z.ZodObject<{
171
+ topPt: z.ZodNumber;
172
+ rightPt: z.ZodNumber;
173
+ bottomPt: z.ZodNumber;
174
+ leftPt: z.ZodNumber;
175
+ }, z.core.$strip>;
176
+ printRange: z.ZodOptional<z.ZodObject<{
177
+ startRow: z.ZodNumber;
178
+ startColumn: z.ZodNumber;
179
+ endRow: z.ZodNumber;
180
+ endColumn: z.ZodNumber;
181
+ }, z.core.$strip>>;
182
+ scale: z.ZodOptional<z.ZodNumber>;
183
+ fitToPages: z.ZodOptional<z.ZodObject<{
184
+ width: z.ZodNumber;
185
+ height: z.ZodNumber;
186
+ }, z.core.$strip>>;
187
+ repeatRows: z.ZodOptional<z.ZodObject<{
188
+ start: z.ZodNumber;
189
+ end: z.ZodNumber;
190
+ }, z.core.$strip>>;
191
+ repeatColumns: z.ZodOptional<z.ZodObject<{
192
+ start: z.ZodNumber;
193
+ end: z.ZodNumber;
194
+ }, z.core.$strip>>;
195
+ gridlines: z.ZodBoolean;
196
+ headers: z.ZodBoolean;
197
+ pageOrder: z.ZodEnum<{
198
+ downThenOver: "downThenOver";
199
+ overThenDown: "overThenDown";
200
+ }>;
201
+ manualBreaks: z.ZodOptional<z.ZodObject<{
202
+ rows: z.ZodArray<z.ZodNumber>;
203
+ columns: z.ZodArray<z.ZodNumber>;
204
+ }, z.core.$strip>>;
205
+ }, z.core.$strip>;
206
+ embeddedObjects: z.ZodOptional<z.ZodArray<z.ZodCustom<import("document-content-model").ContentEmbeddedObject, import("document-content-model").ContentEmbeddedObject>>>;
207
+ }, z.core.$strip>>;
208
+ }, z.core.$strip>, z.ZodObject<{
209
+ kind: z.ZodLiteral<"drawing">;
210
+ formatVersion: z.ZodLiteral<1>;
211
+ metadata: z.ZodObject<{
212
+ title: z.ZodOptional<z.ZodString>;
213
+ author: z.ZodOptional<z.ZodString>;
214
+ subject: z.ZodOptional<z.ZodString>;
215
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
216
+ creator: z.ZodOptional<z.ZodString>;
217
+ producer: z.ZodOptional<z.ZodString>;
218
+ createdIso: z.ZodOptional<z.ZodString>;
219
+ modifiedIso: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strip>;
221
+ pages: z.ZodArray<z.ZodObject<{
222
+ size: z.ZodObject<{
223
+ widthPt: z.ZodNumber;
224
+ heightPt: z.ZodNumber;
225
+ }, z.core.$strip>;
226
+ shapes: z.ZodArray<z.ZodObject<{
227
+ name: z.ZodOptional<z.ZodString>;
228
+ frame: z.ZodObject<{
229
+ xPt: z.ZodNumber;
230
+ yPt: z.ZodNumber;
231
+ widthPt: z.ZodNumber;
232
+ heightPt: z.ZodNumber;
233
+ }, z.core.$strip>;
234
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
235
+ insetLeftPt: z.ZodNumber;
236
+ insetTopPt: z.ZodNumber;
237
+ insetRightPt: z.ZodNumber;
238
+ insetBottomPt: z.ZodNumber;
239
+ fontScale: z.ZodOptional<z.ZodNumber>;
240
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
241
+ sourcePath: z.ZodOptional<z.ZodString>;
242
+ blocks: z.ZodArray<z.ZodCustom<import("document-content-model").ContentBlock, import("document-content-model").ContentBlock>>;
243
+ }, z.core.$strip>>;
244
+ vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
245
+ kind: z.ZodLiteral<"rect">;
246
+ frame: z.ZodObject<{
247
+ xPt: z.ZodNumber;
248
+ yPt: z.ZodNumber;
249
+ widthPt: z.ZodNumber;
250
+ heightPt: z.ZodNumber;
251
+ }, z.core.$strip>;
252
+ fill: z.ZodOptional<z.ZodObject<{
253
+ r: z.ZodNumber;
254
+ g: z.ZodNumber;
255
+ b: z.ZodNumber;
256
+ }, z.core.$strip>>;
257
+ stroke: z.ZodOptional<z.ZodObject<{
258
+ color: z.ZodObject<{
259
+ r: z.ZodNumber;
260
+ g: z.ZodNumber;
261
+ b: z.ZodNumber;
262
+ }, z.core.$strip>;
263
+ widthPt: z.ZodNumber;
264
+ }, z.core.$strip>>;
265
+ sourcePath: z.ZodOptional<z.ZodString>;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ kind: z.ZodLiteral<"ellipse">;
268
+ frame: z.ZodObject<{
269
+ xPt: z.ZodNumber;
270
+ yPt: z.ZodNumber;
271
+ widthPt: z.ZodNumber;
272
+ heightPt: z.ZodNumber;
273
+ }, z.core.$strip>;
274
+ fill: z.ZodOptional<z.ZodObject<{
275
+ r: z.ZodNumber;
276
+ g: z.ZodNumber;
277
+ b: z.ZodNumber;
278
+ }, z.core.$strip>>;
279
+ stroke: z.ZodOptional<z.ZodObject<{
280
+ color: z.ZodObject<{
281
+ r: z.ZodNumber;
282
+ g: z.ZodNumber;
283
+ b: z.ZodNumber;
284
+ }, z.core.$strip>;
285
+ widthPt: z.ZodNumber;
286
+ }, z.core.$strip>>;
287
+ sourcePath: z.ZodOptional<z.ZodString>;
288
+ }, z.core.$strip>, z.ZodObject<{
289
+ kind: z.ZodLiteral<"line">;
290
+ from: z.ZodObject<{
291
+ xPt: z.ZodNumber;
292
+ yPt: z.ZodNumber;
293
+ }, z.core.$strip>;
294
+ to: z.ZodObject<{
295
+ xPt: z.ZodNumber;
296
+ yPt: z.ZodNumber;
297
+ }, z.core.$strip>;
298
+ stroke: z.ZodObject<{
299
+ color: z.ZodObject<{
300
+ r: z.ZodNumber;
301
+ g: z.ZodNumber;
302
+ b: z.ZodNumber;
303
+ }, z.core.$strip>;
304
+ widthPt: z.ZodNumber;
305
+ }, z.core.$strip>;
306
+ sourcePath: z.ZodOptional<z.ZodString>;
307
+ }, z.core.$strip>, z.ZodObject<{
308
+ kind: z.ZodLiteral<"path">;
309
+ frame: z.ZodObject<{
310
+ xPt: z.ZodNumber;
311
+ yPt: z.ZodNumber;
312
+ widthPt: z.ZodNumber;
313
+ heightPt: z.ZodNumber;
314
+ }, z.core.$strip>;
315
+ subpaths: z.ZodArray<z.ZodObject<{
316
+ start: z.ZodObject<{
317
+ xPt: z.ZodNumber;
318
+ yPt: z.ZodNumber;
319
+ }, z.core.$strip>;
320
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
321
+ kind: z.ZodLiteral<"line">;
322
+ to: z.ZodObject<{
323
+ xPt: z.ZodNumber;
324
+ yPt: z.ZodNumber;
325
+ }, z.core.$strip>;
326
+ }, z.core.$strip>, z.ZodObject<{
327
+ kind: z.ZodLiteral<"cubic">;
328
+ control1: z.ZodObject<{
329
+ xPt: z.ZodNumber;
330
+ yPt: z.ZodNumber;
331
+ }, z.core.$strip>;
332
+ control2: z.ZodObject<{
333
+ xPt: z.ZodNumber;
334
+ yPt: z.ZodNumber;
335
+ }, z.core.$strip>;
336
+ to: z.ZodObject<{
337
+ xPt: z.ZodNumber;
338
+ yPt: z.ZodNumber;
339
+ }, z.core.$strip>;
340
+ }, z.core.$strip>], "kind">>;
341
+ closed: z.ZodBoolean;
342
+ }, z.core.$strip>>;
343
+ fill: z.ZodOptional<z.ZodObject<{
344
+ r: z.ZodNumber;
345
+ g: z.ZodNumber;
346
+ b: z.ZodNumber;
347
+ }, z.core.$strip>>;
348
+ fillRule: z.ZodOptional<z.ZodEnum<{
349
+ nonzero: "nonzero";
350
+ evenodd: "evenodd";
351
+ }>>;
352
+ stroke: z.ZodOptional<z.ZodObject<{
353
+ color: z.ZodObject<{
354
+ r: z.ZodNumber;
355
+ g: z.ZodNumber;
356
+ b: z.ZodNumber;
357
+ }, z.core.$strip>;
358
+ widthPt: z.ZodNumber;
359
+ }, z.core.$strip>>;
360
+ sourcePath: z.ZodOptional<z.ZodString>;
361
+ }, z.core.$strip>], "kind">>;
362
+ }, z.core.$strip>>;
363
+ }, z.core.$strip>], "kind">;
364
+ type ContentDocument = z.infer<typeof ContentDocumentSchema>;
365
+ //#endregion
366
+ //#region src/model/geometry.d.ts
367
+ declare function flipY(box: Box$1, containerHeightPt: number): Box$1;
368
+ //#endregion
369
+ //#region src/model/bytes.d.ts
370
+ declare const DocxBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
371
+ declare const PptxBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
372
+ declare const XlsxBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
373
+ declare const PdfBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
374
+ declare const OdtBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
375
+ declare const OdsBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
376
+ declare const OdpBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
377
+ declare const OdgBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
378
+ //#endregion
379
+ //#region src/edit/docx/image.d.ts
380
+ interface ImageInit$2 {
381
+ readonly format: 'png' | 'jpeg';
382
+ readonly bytes: Uint8Array<ArrayBuffer>;
383
+ readonly widthPt: number;
384
+ readonly heightPt: number;
385
+ readonly altText?: string;
386
+ }
387
+ interface MediaContext {
388
+ readonly pkg: Package$1;
389
+ readonly partPath: string;
390
+ readonly mediaDir: string;
391
+ }
392
+ //#endregion
393
+ //#region src/edit/docx/run.d.ts
394
+ interface RunInit$1 {
395
+ readonly text?: string;
396
+ readonly bold?: boolean;
397
+ readonly italic?: boolean;
398
+ readonly underline?: boolean;
399
+ readonly fontFamily?: string;
400
+ readonly sizePt?: number;
401
+ readonly color?: LayoutColor;
402
+ }
403
+ declare class DocxRun {
404
+ private readonly container;
405
+ private readonly node;
406
+ private removed;
407
+ constructor(container: XmlNode$1[], node: XmlElement$1);
408
+ private live;
409
+ private rPr;
410
+ get text(): string;
411
+ set text(value: string);
412
+ get bold(): boolean;
413
+ set bold(value: boolean);
414
+ get italic(): boolean;
415
+ set italic(value: boolean);
416
+ get underline(): boolean;
417
+ set underline(value: boolean);
418
+ get fontFamily(): string | undefined;
419
+ set fontFamily(value: string);
420
+ get sizePt(): number | undefined;
421
+ set sizePt(value: number);
422
+ get color(): LayoutColor | undefined;
423
+ set color(value: LayoutColor);
424
+ remove(): void;
425
+ }
426
+ //#endregion
427
+ //#region src/edit/docx/paragraph.d.ts
428
+ interface ParagraphInit$1 {
429
+ readonly text?: string;
430
+ readonly styleId?: string;
431
+ readonly alignment?: 'left' | 'center' | 'right' | 'justify';
432
+ }
433
+ interface ImageMediaContext {
434
+ readonly pkg: Package$1;
435
+ readonly documentRoot: XmlElement$1;
436
+ readonly media: MediaContext;
437
+ }
438
+ declare class DocxParagraph {
439
+ private readonly container;
440
+ private readonly node;
441
+ private readonly imageContext;
442
+ private removed;
443
+ constructor(container: XmlNode$1[], node: XmlElement$1, imageContext?: ImageMediaContext);
444
+ private live;
445
+ private pPr;
446
+ get text(): string;
447
+ runs(): DocxRun[];
448
+ appendRun(init?: RunInit$1): DocxRun;
449
+ appendTab(): void;
450
+ insertRunAt(index: number, init?: RunInit$1): DocxRun;
451
+ get styleId(): string | undefined;
452
+ set styleId(value: string | undefined);
453
+ get alignment(): 'left' | 'center' | 'right' | 'justify' | undefined;
454
+ set alignment(value: 'left' | 'center' | 'right' | 'justify' | undefined);
455
+ get list(): ContentListMembership$1 | undefined;
456
+ set list(value: ContentListMembership$1 | undefined);
457
+ insertImageAfter(image: ImageInit$2): void;
458
+ remove(): void;
459
+ }
460
+ //#endregion
461
+ //#region src/edit/docx/table.d.ts
462
+ interface TableInit$1 {
463
+ readonly rows: number;
464
+ readonly columns: number;
465
+ readonly columnWidthsTwips?: readonly number[];
466
+ }
467
+ declare class DocxTableCell {
468
+ private readonly node;
469
+ constructor(node: XmlElement$1);
470
+ paragraphs(): DocxParagraph[];
471
+ appendParagraph(init?: ParagraphInit$1): DocxParagraph;
472
+ get text(): string;
473
+ }
474
+ declare class DocxTableRow {
475
+ private readonly node;
476
+ constructor(node: XmlElement$1);
477
+ cells(): DocxTableCell[];
478
+ }
479
+ declare class DocxTable {
480
+ private readonly container;
481
+ private readonly node;
482
+ private removed;
483
+ constructor(container: XmlNode$1[], node: XmlElement$1);
484
+ private live;
485
+ rows(): DocxTableRow[];
486
+ cell(rowIndex: number, columnIndex: number): DocxTableCell;
487
+ appendRow(columnCount: number): DocxTableRow;
488
+ remove(): void;
489
+ }
490
+ //#endregion
491
+ //#region src/edit/docx/editor.d.ts
492
+ interface DocxBody {
493
+ insertParagraphAt(index: number, init?: ParagraphInit$1): DocxParagraph;
494
+ appendParagraph(init?: ParagraphInit$1): DocxParagraph;
495
+ appendTable(init: TableInit$1): DocxTable;
496
+ appendPageBreak(): void;
497
+ }
498
+ declare class DocxEditor {
499
+ readonly body: DocxBody;
500
+ private readonly pkg;
501
+ constructor(pkg: Package$1);
502
+ paragraphs(): DocxParagraph[];
503
+ tables(): DocxTable[];
504
+ toPackage(): Package$1;
505
+ toBytes(): Uint8Array<ArrayBuffer>;
506
+ }
507
+ declare function openDocx(bytes: Uint8Array<ArrayBuffer>): DocxEditor;
508
+ declare function createDocx(): DocxEditor;
509
+ //#endregion
510
+ //#region src/edit/docx/content.d.ts
511
+ declare function buildDocxPackage(content: ContentDocument): Package$1;
512
+ //#endregion
513
+ //#region src/edit/pptx/image.d.ts
514
+ interface ImageInit$1 {
515
+ readonly format: 'png' | 'jpeg';
516
+ readonly bytes: Uint8Array<ArrayBuffer>;
517
+ readonly altText?: string;
518
+ }
519
+ //#endregion
520
+ //#region src/edit/pptx/shape.d.ts
521
+ declare class PptxShape {
522
+ private readonly container;
523
+ private readonly node;
524
+ private removed;
525
+ constructor(container: XmlNode$1[], node: XmlElement$1);
526
+ private live;
527
+ private spPrElement;
528
+ get frame(): Box | undefined;
529
+ set frame(value: Box);
530
+ get text(): string;
531
+ set text(value: string);
532
+ setParagraphs(paragraphs: readonly DrawingParagraphInit[]): void;
533
+ remove(): void;
534
+ }
535
+ interface DrawingRunInit {
536
+ readonly text: string;
537
+ readonly bold?: boolean;
538
+ readonly italic?: boolean;
539
+ readonly fontFamily?: string;
540
+ readonly sizePt?: number;
541
+ readonly color?: LayoutColor;
542
+ }
543
+ interface DrawingParagraphInit {
544
+ readonly runs: readonly DrawingRunInit[];
545
+ readonly alignment?: Alignment;
546
+ }
547
+ //#endregion
548
+ //#region src/edit/pptx/slide.d.ts
549
+ interface TextBoxInit$2 {
550
+ readonly frame: Box;
551
+ readonly text: string;
552
+ }
553
+ interface SlideImageInit$1 extends ImageInit$1 {
554
+ readonly frame: Box;
555
+ }
556
+ interface SlideContext$1 {
557
+ readonly pkg: Package$1;
558
+ readonly slidePartPath: string;
559
+ readonly mediaDir: string;
560
+ }
561
+ declare class PptxSlide {
562
+ private readonly container;
563
+ private readonly node;
564
+ private readonly context;
565
+ private removed;
566
+ constructor(container: XmlNode$1[], node: XmlElement$1, context: SlideContext$1);
567
+ private live;
568
+ shapes(): PptxShape[];
569
+ addTextBox(init: TextBoxInit$2): PptxShape;
570
+ addImage(init: SlideImageInit$1): PptxShape;
571
+ get notes(): string;
572
+ set notes(value: string);
573
+ remove(): void;
574
+ }
575
+ //#endregion
576
+ //#region src/edit/pptx/editor.d.ts
577
+ declare class PptxEditor {
578
+ private readonly pkg;
579
+ constructor(pkg: Package$1);
580
+ slides(): PptxSlide[];
581
+ addSlide(): PptxSlide;
582
+ removeSlideAt(index: number): void;
583
+ moveSlide(from: number, to: number): void;
584
+ get slideSize(): PageSize;
585
+ set slideSize(size: PageSize);
586
+ toPackage(): Package$1;
587
+ toBytes(): Uint8Array<ArrayBuffer>;
588
+ }
589
+ declare function openPptx(bytes: Uint8Array<ArrayBuffer>): PptxEditor;
590
+ declare function createPptx(): PptxEditor;
591
+ //#endregion
592
+ //#region src/edit/pptx/content.d.ts
593
+ declare function buildPptxPackage(content: ContentDocument): Package$1;
594
+ //#endregion
595
+ //#region src/edit/odt/run.d.ts
596
+ interface RunInit {
597
+ readonly text?: string;
598
+ readonly bold?: boolean;
599
+ readonly italic?: boolean;
600
+ readonly underline?: boolean;
601
+ readonly fontFamily?: string;
602
+ readonly sizePt?: number;
603
+ readonly color?: LayoutColor;
604
+ }
605
+ declare class OdtRun {
606
+ private readonly container;
607
+ private readonly node;
608
+ private readonly pkg;
609
+ private removed;
610
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
611
+ private live;
612
+ get text(): string;
613
+ set text(value: string);
614
+ get bold(): boolean;
615
+ set bold(value: boolean);
616
+ get italic(): boolean;
617
+ set italic(value: boolean);
618
+ get underline(): boolean;
619
+ set underline(value: boolean);
620
+ get fontFamily(): string | undefined;
621
+ set fontFamily(value: string);
622
+ get sizePt(): number | undefined;
623
+ set sizePt(value: number);
624
+ get color(): LayoutColor | undefined;
625
+ set color(value: LayoutColor);
626
+ remove(): void;
627
+ }
628
+ //#endregion
629
+ //#region src/edit/odt/paragraph.d.ts
630
+ interface ParagraphInit {
631
+ readonly text?: string;
632
+ readonly styleId?: string;
633
+ readonly alignment?: Alignment;
634
+ }
635
+ declare class OdtParagraph {
636
+ private readonly container;
637
+ private readonly node;
638
+ private readonly pkg;
639
+ private removed;
640
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
641
+ private live;
642
+ get text(): string;
643
+ runs(): OdtRun[];
644
+ appendRun(init?: RunInit): OdtRun;
645
+ appendTab(): void;
646
+ insertRunAt(index: number, init?: RunInit): OdtRun;
647
+ get styleId(): string | undefined;
648
+ set styleId(value: string | undefined);
649
+ get alignment(): Alignment | undefined;
650
+ set alignment(value: Alignment | undefined);
651
+ remove(): void;
652
+ }
653
+ //#endregion
654
+ //#region src/edit/odt/list.d.ts
655
+ declare class OdtListItem {
656
+ private readonly node;
657
+ private readonly pkg;
658
+ constructor(node: XmlElement$2, pkg: Package$2);
659
+ appendParagraph(init?: ParagraphInit): OdtParagraph;
660
+ addNestedList(): OdtList;
661
+ }
662
+ declare class OdtList {
663
+ private readonly container;
664
+ private readonly node;
665
+ private readonly pkg;
666
+ private removed;
667
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
668
+ private live;
669
+ items(): OdtListItem[];
670
+ addItem(): OdtListItem;
671
+ remove(): void;
672
+ }
673
+ //#endregion
674
+ //#region src/edit/odt/table.d.ts
675
+ interface TableInit {
676
+ readonly rows: number;
677
+ readonly columns: number;
678
+ readonly columnWidthsPt?: readonly number[];
679
+ }
680
+ declare class OdtTableCell {
681
+ private readonly node;
682
+ private readonly pkg;
683
+ constructor(node: XmlElement$2, pkg: Package$2);
684
+ paragraphs(): OdtParagraph[];
685
+ appendParagraph(init?: ParagraphInit): OdtParagraph;
686
+ get text(): string;
687
+ }
688
+ declare class OdtTableRow {
689
+ private readonly node;
690
+ private readonly pkg;
691
+ constructor(node: XmlElement$2, pkg: Package$2);
692
+ cells(): OdtTableCell[];
693
+ }
694
+ declare class OdtTable {
695
+ private readonly container;
696
+ private readonly node;
697
+ private readonly pkg;
698
+ private removed;
699
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
700
+ private live;
701
+ rows(): OdtTableRow[];
702
+ cell(rowIndex: number, columnIndex: number): OdtTableCell;
703
+ appendRow(columnCount: number): OdtTableRow;
704
+ remove(): void;
705
+ }
706
+ //#endregion
707
+ //#region src/edit/odt/editor.d.ts
708
+ interface OdtBody {
709
+ appendParagraph(init?: ParagraphInit): OdtParagraph;
710
+ appendTable(init: TableInit): OdtTable;
711
+ appendList(): OdtList;
712
+ appendPageBreak(): void;
713
+ }
714
+ declare class OdtEditor {
715
+ readonly body: OdtBody;
716
+ private readonly pkg;
717
+ constructor(pkg: Package$2);
718
+ paragraphs(): OdtParagraph[];
719
+ tables(): OdtTable[];
720
+ lists(): OdtList[];
721
+ toPackage(): Package$2;
722
+ toBytes(): Uint8Array<ArrayBuffer>;
723
+ }
724
+ declare function openOdt(bytes: Uint8Array<ArrayBuffer>): OdtEditor;
725
+ declare function createOdt(): OdtEditor;
726
+ //#endregion
727
+ //#region src/edit/odt/content.d.ts
728
+ declare function buildOdtPackage(content: ContentDocument): Package$2;
729
+ //#endregion
730
+ //#region src/edit/odp/image.d.ts
731
+ interface ImageInit {
732
+ readonly format: 'png' | 'jpeg';
733
+ readonly bytes: Uint8Array<ArrayBuffer>;
734
+ readonly altText?: string;
735
+ }
736
+ //#endregion
737
+ //#region src/edit/odp/shape.d.ts
738
+ declare class OdpShape {
739
+ private readonly container;
740
+ private readonly node;
741
+ private readonly pkg;
742
+ private removed;
743
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
744
+ private live;
745
+ get name(): string | undefined;
746
+ get frame(): Box | undefined;
747
+ set frame(value: Box);
748
+ get rotationDeg(): number | undefined;
749
+ set rotationDeg(value: number | undefined);
750
+ private applyGeometry;
751
+ private textBox;
752
+ paragraphs(): OdtParagraph[];
753
+ appendParagraph(init?: ParagraphInit): OdtParagraph;
754
+ get text(): string;
755
+ set text(value: string);
756
+ addList(): OdtList;
757
+ remove(): void;
758
+ }
759
+ //#endregion
760
+ //#region src/edit/odp/slide.d.ts
761
+ interface TextBoxInit$1 {
762
+ readonly frame: Box;
763
+ readonly text: string;
764
+ }
765
+ interface SlideImageInit extends ImageInit {
766
+ readonly frame: Box;
767
+ }
768
+ interface SlideContext {
769
+ readonly pkg: Package$2;
770
+ }
771
+ declare class OdpSlide {
772
+ private readonly container;
773
+ private readonly node;
774
+ private readonly context;
775
+ private removed;
776
+ constructor(container: XmlNode$2[], node: XmlElement$2, context: SlideContext);
777
+ private live;
778
+ shapes(): OdpShape[];
779
+ addTextBox(init: TextBoxInit$1): OdpShape;
780
+ addImage(init: SlideImageInit): OdpShape;
781
+ get notes(): string;
782
+ set notes(value: string);
783
+ remove(): void;
784
+ }
785
+ //#endregion
786
+ //#region src/edit/odp/editor.d.ts
787
+ declare class OdpEditor {
788
+ private readonly pkg;
789
+ constructor(pkg: Package$2);
790
+ slides(): OdpSlide[];
791
+ addSlide(): OdpSlide;
792
+ removeSlideAt(index: number): void;
793
+ moveSlide(from: number, to: number): void;
794
+ get slideSize(): PageSize;
795
+ set slideSize(size: PageSize);
796
+ toPackage(): Package$2;
797
+ toBytes(): Uint8Array<ArrayBuffer>;
798
+ }
799
+ declare function openOdp(bytes: Uint8Array<ArrayBuffer>): OdpEditor;
800
+ declare function createOdp(): OdpEditor;
801
+ //#endregion
802
+ //#region src/edit/odp/content.d.ts
803
+ declare function buildOdpPackage(content: ContentDocument): Package$2;
804
+ //#endregion
805
+ //#region src/edit/ods/cell.d.ts
806
+ declare class OdsCell {
807
+ private readonly node;
808
+ private readonly pkg;
809
+ constructor(node: XmlElement$2, pkg: Package$2);
810
+ get value(): ContentCellValue$1;
811
+ set value(value: ContentCellValue$1);
812
+ get formula(): string | undefined;
813
+ set formula(value: string | undefined);
814
+ get displayText(): string;
815
+ set displayText(value: string);
816
+ setStyledRuns(runs: readonly ContentRun$1[]): void;
817
+ }
818
+ //#endregion
819
+ //#region src/edit/ods/sheet.d.ts
820
+ declare class OdsSheet {
821
+ private readonly container;
822
+ private readonly node;
823
+ private readonly pkg;
824
+ private removed;
825
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
826
+ private live;
827
+ get name(): string;
828
+ set name(value: string);
829
+ get printSettings(): ContentSheetPrintSettings$1;
830
+ set printSettings(value: ContentSheetPrintSettings$1);
831
+ cell(row: number, column: number): OdsCell;
832
+ cellAt(reference: string): OdsCell;
833
+ mergeCells(startRow: number, startColumn: number, rowSpan: number, colSpan: number): OdsCell;
834
+ remove(): void;
835
+ }
836
+ //#endregion
837
+ //#region src/edit/ods/editor.d.ts
838
+ declare class OdsEditor {
839
+ private readonly pkg;
840
+ constructor(pkg: Package$2);
841
+ sheets(): OdsSheet[];
842
+ sheet(name: string): OdsSheet;
843
+ addSheet(name: string): OdsSheet;
844
+ removeSheetAt(index: number): void;
845
+ toPackage(): Package$2;
846
+ toBytes(): Uint8Array<ArrayBuffer>;
847
+ }
848
+ declare function openOds(bytes: Uint8Array<ArrayBuffer>): OdsEditor;
849
+ declare function createOds(): OdsEditor;
850
+ //#endregion
851
+ //#region src/edit/ods/content.d.ts
852
+ declare function buildOdsPackage(content: ContentDocument): Package$2;
853
+ //#endregion
854
+ //#region src/edit/odg/vector.d.ts
855
+ interface BoxVectorInit {
856
+ readonly frame: Box$1;
857
+ readonly fill?: Color;
858
+ readonly stroke?: ContentStroke$1;
859
+ }
860
+ type OdgBoxVectorKind = 'rect' | 'ellipse';
861
+ declare class OdgBoxVector {
862
+ private readonly container;
863
+ private readonly node;
864
+ private readonly pkg;
865
+ private removed;
866
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
867
+ private live;
868
+ get kind(): OdgBoxVectorKind;
869
+ get name(): string | undefined;
870
+ get frame(): Box$1 | undefined;
871
+ set frame(value: Box$1);
872
+ get fill(): Color | undefined;
873
+ set fill(value: Color | undefined);
874
+ get stroke(): ContentStroke$1 | undefined;
875
+ set stroke(value: ContentStroke$1 | undefined);
876
+ remove(): void;
877
+ }
878
+ interface LineVectorInit {
879
+ readonly from: ContentPathPoint$1;
880
+ readonly to: ContentPathPoint$1;
881
+ readonly stroke: ContentStroke$1;
882
+ }
883
+ declare class OdgLineVector {
884
+ private readonly container;
885
+ private readonly node;
886
+ private readonly pkg;
887
+ private removed;
888
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
889
+ private live;
890
+ get name(): string | undefined;
891
+ get from(): ContentPathPoint$1 | undefined;
892
+ set from(value: ContentPathPoint$1);
893
+ get to(): ContentPathPoint$1 | undefined;
894
+ set to(value: ContentPathPoint$1);
895
+ get stroke(): ContentStroke$1 | undefined;
896
+ set stroke(value: ContentStroke$1);
897
+ remove(): void;
898
+ }
899
+ interface PathVectorInit {
900
+ readonly frame: Box$1;
901
+ readonly subpaths: readonly ContentSubpath$1[];
902
+ readonly fill?: Color;
903
+ readonly stroke?: ContentStroke$1;
904
+ }
905
+ declare class OdgPathVector {
906
+ private readonly container;
907
+ private readonly node;
908
+ private readonly pkg;
909
+ private removed;
910
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
911
+ private live;
912
+ get name(): string | undefined;
913
+ get frame(): Box$1 | undefined;
914
+ set frame(value: Box$1);
915
+ get fill(): Color | undefined;
916
+ set fill(value: Color | undefined);
917
+ get stroke(): ContentStroke$1 | undefined;
918
+ set stroke(value: ContentStroke$1 | undefined);
919
+ get subpaths(): ContentSubpath$1[];
920
+ remove(): void;
921
+ }
922
+ //#endregion
923
+ //#region src/edit/odg/page.d.ts
924
+ interface TextBoxInit {
925
+ readonly frame: Box$1;
926
+ readonly text: string;
927
+ }
928
+ interface PageImageInit extends ImageInit {
929
+ readonly frame: Box$1;
930
+ }
931
+ interface PageContext {
932
+ readonly pkg: Package$2;
933
+ }
934
+ declare class OdgPage {
935
+ private readonly container;
936
+ private readonly node;
937
+ private readonly context;
938
+ private removed;
939
+ constructor(container: XmlNode$2[], node: XmlElement$2, context: PageContext);
940
+ private live;
941
+ shapes(): OdpShape[];
942
+ addTextBox(init: TextBoxInit): OdpShape;
943
+ addImage(init: PageImageInit): OdpShape;
944
+ addRect(init: BoxVectorInit): OdgBoxVector;
945
+ addEllipse(init: BoxVectorInit): OdgBoxVector;
946
+ addLine(init: LineVectorInit): OdgLineVector;
947
+ addPath(init: PathVectorInit): OdgPathVector;
948
+ remove(): void;
949
+ }
950
+ //#endregion
951
+ //#region src/edit/odg/editor.d.ts
952
+ declare class OdgEditor {
953
+ private readonly pkg;
954
+ constructor(pkg: Package$2);
955
+ pages(): OdgPage[];
956
+ addPage(): OdgPage;
957
+ removePageAt(index: number): void;
958
+ get pageSize(): PageSize;
959
+ set pageSize(size: PageSize);
960
+ toPackage(): Package$2;
961
+ toBytes(): Uint8Array<ArrayBuffer>;
962
+ }
963
+ declare function openOdg(bytes: Uint8Array<ArrayBuffer>): OdgEditor;
964
+ declare function createOdg(): OdgEditor;
965
+ //#endregion
966
+ //#region src/edit/odg/content.d.ts
967
+ declare function buildOdgPackage(content: ContentDocument): Package$2;
968
+ //#endregion
969
+ //#region src/mathml/layout-types.d.ts
970
+ interface MathColor {
971
+ readonly r: number;
972
+ readonly g: number;
973
+ readonly b: number;
974
+ }
975
+ interface MathGlyphRun {
976
+ readonly kind: 'glyphs';
977
+ readonly xPt: number;
978
+ readonly yPt: number;
979
+ readonly text: string;
980
+ readonly sizePt: number;
981
+ readonly color: MathColor;
982
+ }
983
+ interface MathRule {
984
+ readonly kind: 'rule';
985
+ readonly xPt: number;
986
+ readonly yPt: number;
987
+ readonly widthPt: number;
988
+ readonly heightPt: number;
989
+ readonly color: MathColor;
990
+ }
991
+ interface MathStroke {
992
+ readonly kind: 'stroke';
993
+ readonly points: readonly {
994
+ readonly xPt: number;
995
+ readonly yPt: number;
996
+ }[];
997
+ readonly widthPt: number;
998
+ readonly color: MathColor;
999
+ }
1000
+ type MathLayoutItem = MathGlyphRun | MathRule | MathStroke;
1001
+ interface MathBox {
1002
+ readonly widthPt: number;
1003
+ readonly heightPt: number;
1004
+ readonly ascentPt: number;
1005
+ readonly descentPt: number;
1006
+ readonly items: readonly MathLayoutItem[];
1007
+ }
1008
+ type MathDiagnosticKind = 'unsupported-element' | 'missing-glyph';
1009
+ interface MathDiagnostic {
1010
+ readonly kind: MathDiagnosticKind;
1011
+ readonly detail: string;
1012
+ }
1013
+ interface MathLayoutResult {
1014
+ readonly box: MathBox;
1015
+ readonly diagnostics: readonly MathDiagnostic[];
1016
+ }
1017
+ //#endregion
1018
+ //#region src/mathml/metrics.d.ts
1019
+ interface MathGlyphMetrics {
1020
+ readonly advanceWidthPt: number;
1021
+ readonly italicCorrectionPt: number;
1022
+ readonly topAccentXPt?: number;
1023
+ }
1024
+ interface MathFontMetrics {
1025
+ readonly ascentPerEm: number;
1026
+ readonly descentPerEm: number;
1027
+ readonly axisHeightPt: number;
1028
+ readonly fractionRuleThicknessPt: number;
1029
+ readonly fractionNumeratorShiftUpPt: number;
1030
+ readonly fractionNumeratorDisplayShiftUpPt: number;
1031
+ readonly fractionDenominatorShiftDownPt: number;
1032
+ readonly fractionDenominatorDisplayShiftDownPt: number;
1033
+ readonly fractionNumeratorGapMinPt: number;
1034
+ readonly fractionDenominatorGapMinPt: number;
1035
+ readonly radicalRuleThicknessPt: number;
1036
+ readonly radicalExtraAscenderPt: number;
1037
+ readonly radicalVerticalGapPt: number;
1038
+ readonly radicalKernBeforeDegreePt: number;
1039
+ readonly radicalKernAfterDegreePt: number;
1040
+ readonly radicalDegreeBottomRaisePercent: number;
1041
+ readonly subscriptShiftDownPt: number;
1042
+ readonly superscriptShiftUpPt: number;
1043
+ readonly superscriptShiftUpCrampedPt: number;
1044
+ readonly subSuperscriptGapMinPt: number;
1045
+ readonly superscriptBaselineDropMaxPt: number;
1046
+ readonly subscriptBaselineDropMinPt: number;
1047
+ readonly spaceAfterScriptPt: number;
1048
+ readonly upperLimitGapMinPt: number;
1049
+ readonly upperLimitBaselineRiseMinPt: number;
1050
+ readonly lowerLimitGapMinPt: number;
1051
+ readonly lowerLimitBaselineDropMinPt: number;
1052
+ readonly stackTopShiftUpPt: number;
1053
+ readonly stackBottomShiftDownPt: number;
1054
+ readonly stackGapMinPt: number;
1055
+ readonly scriptPercentScaleDown: number;
1056
+ readonly scriptScriptPercentScaleDown: number;
1057
+ readonly defaultRuleThicknessPt: number;
1058
+ glyph(codePoint: number, sizePt: number): MathGlyphMetrics | undefined;
1059
+ }
1060
+ //#endregion
1061
+ //#region src/mathml/nodes.d.ts
1062
+ interface MathMlAttribute {
1063
+ readonly name: string;
1064
+ readonly value: string;
1065
+ }
1066
+ interface MathMlElement {
1067
+ readonly type: 'element';
1068
+ readonly tag: string;
1069
+ readonly attributes: readonly MathMlAttribute[];
1070
+ readonly children: readonly MathMlNode[];
1071
+ }
1072
+ interface MathMlText {
1073
+ readonly type: 'text';
1074
+ readonly value: string;
1075
+ }
1076
+ type MathMlNode = MathMlElement | MathMlText | {
1077
+ readonly type: 'cdata' | 'comment' | 'declaration' | 'pi';
1078
+ };
1079
+ declare function isMathMlElement(node: MathMlNode): node is MathMlElement;
1080
+ declare function localName(tag: string): string;
1081
+ declare function elementLocalName(element: MathMlElement): string;
1082
+ declare function elementChildren(node: MathMlElement): readonly MathMlElement[];
1083
+ declare function firstChildByLocalName(node: MathMlElement, name: string): MathMlElement | undefined;
1084
+ declare function textContent(node: MathMlNode): string;
1085
+ //#endregion
1086
+ //#region src/mathml/variant.d.ts
1087
+ type MathVariant = 'normal' | 'bold' | 'italic' | 'bold-italic' | 'double-struck' | 'bold-fraktur' | 'script' | 'bold-script' | 'fraktur' | 'sans-serif' | 'bold-sans-serif' | 'sans-serif-italic' | 'sans-serif-bold-italic' | 'monospace';
1088
+ declare function mapMathVariant(codePoint: number, variant: MathVariant): number;
1089
+ declare function applyMathVariant(text: string, variant: MathVariant): string;
1090
+ declare function isMathVariant(value: string): value is MathVariant;
1091
+ //#endregion
1092
+ //#region src/mathml/layout.d.ts
1093
+ interface LayoutFormulaOptions {
1094
+ readonly metrics: MathFontMetrics;
1095
+ readonly sizePt: number;
1096
+ readonly color: MathColor;
1097
+ }
1098
+ declare function layoutFormula(mathml: readonly MathMlNode[], options: LayoutFormulaOptions): MathLayoutResult;
1099
+ //#endregion
1100
+ //#region src/mathml/operators.d.ts
1101
+ interface OperatorProperties {
1102
+ readonly lspaceEm: number;
1103
+ readonly rspaceEm: number;
1104
+ readonly stretchy: boolean;
1105
+ readonly largeop: boolean;
1106
+ readonly movablelimits: boolean;
1107
+ readonly fence: boolean;
1108
+ readonly separator: boolean;
1109
+ }
1110
+ declare function operatorProperties(text: string): OperatorProperties;
1111
+ //#endregion
1112
+ //#region src/ooxml/docx/read.d.ts
1113
+ declare function readDocxContent(pkg: Package$1): ContentDocument;
1114
+ //#endregion
1115
+ //#region src/ooxml/pptx/read.d.ts
1116
+ declare function readPptxContent(pkg: Package$1): ContentDocument;
1117
+ //#endregion
1118
+ //#region src/model/formula.d.ts
1119
+ interface EmbeddedFormula {
1120
+ readonly mathml: readonly MathMlNode[];
1121
+ readonly starMath: string | undefined;
1122
+ }
1123
+ //#endregion
1124
+ //#region src/odf/odt/read.d.ts
1125
+ interface OdtContentResult {
1126
+ readonly document: ContentDocument;
1127
+ readonly formulas: ReadonlyMap<string, EmbeddedFormula>;
1128
+ }
1129
+ declare function readOdtContent(pkg: Package$2): OdtContentResult;
1130
+ //#endregion
1131
+ //#region src/odf/odp/read.d.ts
1132
+ interface OdpContentResult {
1133
+ readonly document: ContentDocument;
1134
+ readonly formulas: ReadonlyMap<string, EmbeddedFormula>;
1135
+ }
1136
+ declare function readOdpContent(pkg: Package$2): OdpContentResult;
1137
+ //#endregion
1138
+ //#region src/odf/ods/read.d.ts
1139
+ declare function readOdsContent(pkg: Package$2): ContentDocument;
1140
+ //#endregion
1141
+ //#region src/odf/odg/read.d.ts
1142
+ declare function readOdgContent(pkg: Package$2): ContentDocument;
1143
+ //#endregion
1144
+ //#region src/odf/formula/read.d.ts
1145
+ interface StandaloneFormulaContent extends EmbeddedFormula {
1146
+ readonly metadata: LayoutMetadata$1;
1147
+ }
1148
+ declare function readOdfFormulaContent(pkg: Package$2): StandaloneFormulaContent;
1149
+ declare function readOdfEmbeddedFormula(outerPkg: Package$2, subPackagePath: string): EmbeddedFormula | undefined;
1150
+ //#endregion
1151
+ //#region src/layout/engine.d.ts
1152
+ interface EngineLayoutOptions {
1153
+ readonly measurer: TextMeasurer;
1154
+ readonly formulas?: ReadonlyMap<string, EmbeddedFormula>;
1155
+ }
1156
+ interface WordprocessingLayoutResult {
1157
+ readonly document: LayoutDocument$1;
1158
+ readonly formulas: readonly PositionedFormula$1[];
1159
+ }
1160
+ type WordprocessingContentDocument = Extract<ContentDocument, {
1161
+ kind: 'wordprocessing';
1162
+ }>;
1163
+ declare function convertWordprocessingToLayout(doc: WordprocessingContentDocument, options: EngineLayoutOptions): WordprocessingLayoutResult;
1164
+ //#endregion
1165
+ //#region src/layout/slides.d.ts
1166
+ interface SlidesLayoutOptions {
1167
+ readonly measurer: TextMeasurer;
1168
+ readonly formulas?: ReadonlyMap<string, EmbeddedFormula>;
1169
+ }
1170
+ interface PresentationLayoutResult {
1171
+ readonly document: LayoutDocument$1;
1172
+ readonly formulas: readonly PositionedFormula$1[];
1173
+ }
1174
+ type PresentationContentDocument = Extract<ContentDocument, {
1175
+ kind: 'presentation';
1176
+ }>;
1177
+ declare function convertPresentationToLayout(doc: PresentationContentDocument, options: SlidesLayoutOptions): PresentationLayoutResult;
1178
+ //#endregion
1179
+ //#region src/layout/sheets.d.ts
1180
+ interface SheetsLayoutOptions {
1181
+ readonly measurer: TextMeasurer;
1182
+ readonly signal?: AbortSignal;
1183
+ }
1184
+ type SpreadsheetContentDocument = Extract<ContentDocument, {
1185
+ kind: 'spreadsheet';
1186
+ }>;
1187
+ declare function convertSpreadsheetToLayout(doc: SpreadsheetContentDocument, options: SheetsLayoutOptions): LayoutDocument$1;
1188
+ //#endregion
1189
+ //#region src/layout/drawing.d.ts
1190
+ interface DrawingLayoutOptions {
1191
+ readonly measurer: TextMeasurer;
1192
+ }
1193
+ type DrawingContentDocument = Extract<ContentDocument, {
1194
+ kind: 'drawing';
1195
+ }>;
1196
+ declare function convertDrawingToLayout(doc: DrawingContentDocument, options: DrawingLayoutOptions): LayoutDocument$1;
1197
+ //#endregion
1198
+ //#region src/layout/reconstruct.d.ts
1199
+ interface ReconstructOptions {
1200
+ readonly signal?: AbortSignal;
1201
+ }
1202
+ declare function reconstructWordprocessing(doc: LayoutDocument$1, options?: ReconstructOptions): ContentDocument;
1203
+ declare function reconstructPresentation(doc: LayoutDocument$1, options?: ReconstructOptions): ContentDocument;
1204
+ declare function reconstructDrawing(doc: LayoutDocument$1, options?: ReconstructOptions): ContentDocument;
1205
+ declare function reconstructSpreadsheet(doc: LayoutDocument$1, options?: ReconstructOptions): ContentDocument;
1206
+ //#endregion
1207
+ //#region src/convert/convert.d.ts
1208
+ interface DocumentToPdfOptions {
1209
+ readonly signal?: AbortSignal;
1210
+ readonly onSubstitution?: (substitution: WinAnsiSubstitution$1, context: {
1211
+ readonly pageIndex: number;
1212
+ }) => void;
1213
+ readonly onDocument?: (pkg: DocumentPackage) => void;
1214
+ }
1215
+ declare function docxToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
1216
+ declare function odtToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
1217
+ declare function pptxToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
1218
+ declare function odpToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
1219
+ declare function odsToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
1220
+ declare function odgToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
1221
+ declare function odfToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
1222
+ interface PdfToDocumentOptions {
1223
+ readonly signal?: AbortSignal;
1224
+ readonly sink?: PdfDiagnosticSink$1;
1225
+ readonly onDocument?: (pkg: DocumentPackage) => void;
1226
+ }
1227
+ declare function pdfToDocx(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
1228
+ declare function pdfToPptx(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
1229
+ declare function pdfToOdt(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
1230
+ declare function pdfToOdp(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
1231
+ declare function pdfToOdg(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
1232
+ declare function pdfToOds(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
1233
+ interface DocumentBridgeOptions {
1234
+ readonly signal?: AbortSignal;
1235
+ readonly onDocument?: (pkg: DocumentPackage) => void;
1236
+ }
1237
+ declare function odtToDocx(bytes: Uint8Array<ArrayBuffer>, options?: DocumentBridgeOptions): Uint8Array<ArrayBuffer>;
1238
+ declare function docxToOdt(bytes: Uint8Array<ArrayBuffer>, options?: DocumentBridgeOptions): Uint8Array<ArrayBuffer>;
1239
+ declare function odpToPptx(bytes: Uint8Array<ArrayBuffer>, options?: DocumentBridgeOptions): Uint8Array<ArrayBuffer>;
1240
+ declare function pptxToOdp(bytes: Uint8Array<ArrayBuffer>, options?: DocumentBridgeOptions): Uint8Array<ArrayBuffer>;
1241
+ declare function odsToXlsx(bytes: Uint8Array<ArrayBuffer>, options?: DocumentBridgeOptions): Uint8Array<ArrayBuffer>;
1242
+ declare function xlsxToOds(bytes: Uint8Array<ArrayBuffer>, options?: DocumentBridgeOptions): Uint8Array<ArrayBuffer>;
1243
+ interface OdmToPdfOptions extends DocumentToPdfOptions {
1244
+ readonly resolveSubDocument?: (href: string) => Uint8Array<ArrayBuffer> | undefined;
1245
+ }
1246
+ declare class OdmUnresolvedSectionError extends Error {
1247
+ readonly hrefs: readonly string[];
1248
+ constructor(hrefs: readonly string[]);
1249
+ }
1250
+ declare function odmToPdf(bytes: Uint8Array<ArrayBuffer>, options?: OdmToPdfOptions): Uint8Array<ArrayBuffer>;
1251
+ declare function odbToXlsx(bytes: Uint8Array<ArrayBuffer>, options?: DocumentBridgeOptions): Uint8Array<ArrayBuffer>;
1252
+ interface OdbToCsvOptions extends DocumentBridgeOptions {
1253
+ readonly table?: string;
1254
+ }
1255
+ declare function odbToCsv(bytes: Uint8Array<ArrayBuffer>, options?: OdbToCsvOptions): Uint8Array<ArrayBuffer>;
1256
+ //#endregion
1257
+ //#region src/convert/codec.d.ts
1258
+ declare const docxPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1259
+ declare const pptxPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1260
+ declare const odtPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1261
+ declare const odpPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1262
+ declare const odsPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1263
+ declare const odgPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1264
+ declare const odtDocxCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1265
+ declare const odpPptxCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1266
+ declare const odsXlsxCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
1267
+ //#endregion
1268
+ //#region src/hsqldb/script.d.ts
1269
+ declare class HsqldbScriptParseError extends Error {
1270
+ readonly statement: string;
1271
+ constructor(message: string, statement: string);
1272
+ }
1273
+ interface HsqldbColumn {
1274
+ readonly name: string;
1275
+ readonly type: string;
1276
+ }
1277
+ interface HsqldbTable {
1278
+ readonly tableName: string;
1279
+ readonly columns: readonly HsqldbColumn[];
1280
+ readonly rows: readonly (readonly ContentCellValue$1[])[];
1281
+ }
1282
+ declare function displayTextFor(value: ContentCellValue$1): string;
1283
+ declare function parseHsqldbScript(bytes: Uint8Array): HsqldbTable[];
1284
+ //#endregion
1285
+ //#region src/hsqldb/cache.d.ts
1286
+ declare function decodeHsqldbCachedTables(tables: readonly HsqldbTable[], scriptText: string, dataBytes: Uint8Array<ArrayBuffer>, propertiesText: string): readonly HsqldbTable[];
1287
+ //#endregion
1288
+ //#region src/hsqldb/rowformat.d.ts
1289
+ declare class HsqldbRowFormatError extends Error {
1290
+ constructor(message: string);
1291
+ }
1292
+ //#endregion
1293
+ //#region src/odb/read.d.ts
1294
+ declare class OdbNoEmbeddedDataSourceError extends Error {
1295
+ readonly url: string | undefined;
1296
+ constructor(url: string | undefined);
1297
+ }
1298
+ type OdbUnsupportedFormat = 'hsqldb-binary' | 'hsqldb-compressed' | 'unrecognised-engine';
1299
+ declare class OdbUnsupportedFormatError extends Error {
1300
+ readonly format: OdbUnsupportedFormat;
1301
+ constructor(format: OdbUnsupportedFormat, detail: string);
1302
+ }
1303
+ declare function readOdbTables(pkg: Package$2): readonly HsqldbTable[];
1304
+ //#endregion
1305
+ //#region src/odb/spreadsheet.d.ts
1306
+ declare function odbTablesToSpreadsheetDocument(tables: readonly HsqldbTable[]): ContentDocument;
1307
+ //#endregion
1308
+ //#region src/odb/csv.d.ts
1309
+ declare class OdbTableNotSpecifiedError extends Error {
1310
+ readonly availableTables: readonly string[];
1311
+ constructor(availableTables: readonly string[]);
1312
+ }
1313
+ declare class OdbTableNotFoundError extends Error {
1314
+ readonly table: string;
1315
+ readonly availableTables: readonly string[];
1316
+ constructor(table: string, availableTables: readonly string[]);
1317
+ }
1318
+ //#endregion
1319
+ //#region src/firebird/reader.d.ts
1320
+ declare class FirebirdBackupParseError extends Error {
1321
+ readonly offset: number;
1322
+ constructor(message: string, offset: number);
1323
+ }
1324
+ //#endregion
1325
+ //#region src/firebird/blr-types.d.ts
1326
+ declare class FirebirdUnsupportedFieldTypeError extends Error {
1327
+ readonly blrType: number;
1328
+ constructor(blrType: number);
1329
+ }
1330
+ //#endregion
1331
+ //#region src/firebird/schema.d.ts
1332
+ declare class FirebirdSchemaParseError extends Error {
1333
+ constructor(message: string);
1334
+ }
1335
+ //#endregion
1336
+ //#region src/firebird/data.d.ts
1337
+ declare class FirebirdDataParseError extends Error {
1338
+ constructor(message: string);
1339
+ }
1340
+ declare class FirebirdCompositeRecordUnsupportedError extends Error {
1341
+ readonly recordType: number;
1342
+ constructor(recordType: number, context: string);
1343
+ }
1344
+ //#endregion
1345
+ //#region src/firebird/backup.d.ts
1346
+ declare class FirebirdBackupFormatError extends Error {
1347
+ constructor(message: string);
1348
+ }
1349
+ interface FirebirdBackupSummary {
1350
+ readonly backupFormatVersion: number;
1351
+ readonly transportable: boolean;
1352
+ readonly compressed: boolean;
1353
+ readonly pageSizeBytes: number | undefined;
1354
+ }
1355
+ declare const SUPPORTED_BACKUP_FORMAT_VERSION = 10;
1356
+ interface ReadFirebirdBackupResult {
1357
+ readonly summary: FirebirdBackupSummary;
1358
+ readonly tables: readonly HsqldbTable[];
1359
+ }
1360
+ declare function readFirebirdBackup(bytes: Uint8Array<ArrayBuffer>): ReadFirebirdBackupResult;
1361
+ //#endregion
1362
+ //#region src/convert/port.d.ts
1363
+ type DocumentFormat = 'docx' | 'pptx' | 'xlsx' | 'odt' | 'odp' | 'ods' | 'odg' | 'odf' | 'pdf';
1364
+ interface DocumentPayload {
1365
+ readonly format: DocumentFormat;
1366
+ readonly bytes: Uint8Array<ArrayBuffer>;
1367
+ }
1368
+ interface Diagnostic {
1369
+ readonly severity: 'info' | 'warning';
1370
+ readonly code: string;
1371
+ readonly message: string;
1372
+ readonly pageIndex?: number;
1373
+ }
1374
+ interface ConversionRequest {
1375
+ readonly source: DocumentPayload;
1376
+ readonly targetFormat: DocumentFormat;
1377
+ }
1378
+ interface ConversionResult {
1379
+ readonly document: DocumentPayload;
1380
+ readonly diagnostics: readonly Diagnostic[];
1381
+ readonly package?: DocumentPackage;
1382
+ }
1383
+ interface DocumentConverter {
1384
+ readonly contractVersion: number;
1385
+ readonly conversions: readonly {
1386
+ readonly source: DocumentFormat;
1387
+ readonly target: DocumentFormat;
1388
+ }[];
1389
+ convert(request: ConversionRequest, options: {
1390
+ readonly signal: AbortSignal;
1391
+ }): Promise<ConversionResult>;
1392
+ }
1393
+ //#endregion
1394
+ //#region src/convert/local.d.ts
1395
+ declare function createLocalDocumentConverter(): DocumentConverter;
1396
+ //#endregion
1397
+ //#region src/ports/clock.d.ts
1398
+ interface ClockPort {
1399
+ now(): Date;
1400
+ }
1401
+ declare const systemClock: ClockPort;
1402
+ declare function fixedClock(date: Date): ClockPort;
1403
+ //#endregion
1404
+ //#region src/ports/abort.d.ts
1405
+ declare function throwIfAborted(signal: AbortSignal | undefined): void;
1406
+ //#endregion
1407
+ export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, COLOR_BLACK, CONTENT_FORMAT_VERSION, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionRequest, type ConversionResult, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFormat, type DocumentPayload, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DrawingLayoutOptions, type DrawingParagraphInit, type DrawingRunInit, type EmbeddedFormula, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, type HsqldbColumn, HsqldbRowFormatError, HsqldbScriptParseError, type HsqldbTable, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type Margins, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStroke, type MathVariant, NOOP_DIAGNOSTIC_SINK, OdbNoEmbeddedDataSourceError, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, type OdpContentResult, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, type OdtContentResult, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, type PresentationLayoutResult, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReconstructOptions, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlidesLayoutOptions, type StandaloneFormulaContent, type TextBoxInit$2 as TextBoxInit, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocx, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPptx, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodePackage, docxPdfCodec, docxToOdt, docxToPdf, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodePackage, firstChildByLocalName, fixedClock, flipY, fromCompact, displayTextFor as hsqldbCellDisplayText, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutFormula, loadMathFont, localName, mapMathVariant, textContent as mathMlTextContent, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPptx, operatorProperties, packageCodec, parseHsqldbScript, parsePackage, parseXml, pdfCodec, pdfToDocx, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readFirebirdBackup, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, resolveRelationships, rgbHexToColor, rootElement, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, unzipPackage, walk, writePdf, xlsxToOds, xmlCodec, zipPackage };