modern-pdf-lib 0.13.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/dist/index.cjs +1227 -257
- package/dist/index.d.cts +405 -15
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +405 -15
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1222 -258
- package/dist/{pdfCatalog-CTfeeqtF.mjs → pdfCatalog-BB2Wnmud.mjs} +23 -9
- package/dist/{pdfCatalog-y_XG8Hq1.cjs → pdfCatalog-COKoYQ8C.cjs} +23 -9
- package/dist/{pdfPage-BebMv6fN.cjs → pdfPage-DBfdinTR.cjs} +42 -19
- package/dist/{pdfPage-B7vA518n.mjs → pdfPage-N1K2U3jI.mjs} +42 -19
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1062,18 +1062,6 @@ interface SvgElement {
|
|
|
1062
1062
|
transform?: [number, number, number, number, number, number] | undefined;
|
|
1063
1063
|
opacity?: number | undefined;
|
|
1064
1064
|
}
|
|
1065
|
-
/**
|
|
1066
|
-
* Parse an SVG colour string into an RGB object.
|
|
1067
|
-
*
|
|
1068
|
-
* Supported formats:
|
|
1069
|
-
* - `#rgb`
|
|
1070
|
-
* - `#rrggbb`
|
|
1071
|
-
* - `rgb(r, g, b)` (0-255)
|
|
1072
|
-
* - `rgba(r, g, b, a)` (a: 0-1)
|
|
1073
|
-
* - Named colours (basic set)
|
|
1074
|
-
*
|
|
1075
|
-
* @returns RGB values (0-255) or `undefined` if not parseable.
|
|
1076
|
-
*/
|
|
1077
1065
|
declare function parseSvgColor(colorStr: string): {
|
|
1078
1066
|
r: number;
|
|
1079
1067
|
g: number;
|
|
@@ -3174,6 +3162,15 @@ declare class PdfEncryptionHandler {
|
|
|
3174
3162
|
private readonly perms?;
|
|
3175
3163
|
/** The file ID (first element of /ID array). */
|
|
3176
3164
|
private readonly fileId;
|
|
3165
|
+
/**
|
|
3166
|
+
* Cache for per-object derived keys (V=1-4 only).
|
|
3167
|
+
* Key: `(objNum << 16) | genNum` — unique integer per object.
|
|
3168
|
+
* Value: the derived encryption key.
|
|
3169
|
+
*
|
|
3170
|
+
* Avoids recomputing MD5(fileKey + objNum + genNum [+ sAlT]) for
|
|
3171
|
+
* every string and stream in the same object.
|
|
3172
|
+
*/
|
|
3173
|
+
private readonly objectKeyCache;
|
|
3177
3174
|
private constructor();
|
|
3178
3175
|
/**
|
|
3179
3176
|
* Create a new encryption handler for encrypting a document.
|
|
@@ -3592,6 +3589,33 @@ declare class PdfViewerPreferences {
|
|
|
3592
3589
|
*
|
|
3593
3590
|
* @packageDocumentation
|
|
3594
3591
|
*/
|
|
3592
|
+
/**
|
|
3593
|
+
* Options for a visible signature appearance on the page.
|
|
3594
|
+
*/
|
|
3595
|
+
interface VisibleSignatureOptions {
|
|
3596
|
+
/** Zero-based page index where the signature should appear. Default: 0. */
|
|
3597
|
+
pageIndex?: number | undefined;
|
|
3598
|
+
/** Rectangle [x, y, width, height] in PDF points from the bottom-left corner. */
|
|
3599
|
+
rect: [number, number, number, number];
|
|
3600
|
+
/**
|
|
3601
|
+
* Text lines to display in the signature box.
|
|
3602
|
+
* Each string becomes a separate line. If omitted, auto-generates
|
|
3603
|
+
* from the signer name, reason, location, and date.
|
|
3604
|
+
*/
|
|
3605
|
+
text?: string[] | undefined;
|
|
3606
|
+
/** Font size for the text. Default: 10. */
|
|
3607
|
+
fontSize?: number | undefined;
|
|
3608
|
+
/**
|
|
3609
|
+
* Background color as [r, g, b] values (0–1). Default: transparent.
|
|
3610
|
+
*/
|
|
3611
|
+
backgroundColor?: [number, number, number] | undefined;
|
|
3612
|
+
/**
|
|
3613
|
+
* Border color as [r, g, b] values (0–1). Default: [0, 0, 0] (black).
|
|
3614
|
+
*/
|
|
3615
|
+
borderColor?: [number, number, number] | undefined;
|
|
3616
|
+
/** Border width in points. Default: 1. Set to 0 for no border. */
|
|
3617
|
+
borderWidth?: number | undefined;
|
|
3618
|
+
}
|
|
3595
3619
|
/**
|
|
3596
3620
|
* Options for signing a PDF.
|
|
3597
3621
|
*/
|
|
@@ -3610,6 +3634,12 @@ interface SignOptions {
|
|
|
3610
3634
|
contactInfo?: string | undefined;
|
|
3611
3635
|
/** RFC 3161 TSA URL for timestamping (optional). */
|
|
3612
3636
|
timestampUrl?: string | undefined;
|
|
3637
|
+
/**
|
|
3638
|
+
* Visible signature appearance options. When provided, the signature
|
|
3639
|
+
* field is rendered visibly on the specified page with text and
|
|
3640
|
+
* optional styling. When omitted, the signature is invisible.
|
|
3641
|
+
*/
|
|
3642
|
+
appearance?: VisibleSignatureOptions | undefined;
|
|
3613
3643
|
}
|
|
3614
3644
|
/**
|
|
3615
3645
|
* Information about an existing signature in a PDF.
|
|
@@ -4750,6 +4780,24 @@ declare class PdfDocument {
|
|
|
4750
4780
|
* @returns An {@link ImageRef}.
|
|
4751
4781
|
*/
|
|
4752
4782
|
embedJpeg(jpegData: Uint8Array | ArrayBuffer): Promise<ImageRef>;
|
|
4783
|
+
/**
|
|
4784
|
+
* Embed an image, auto-detecting the format from file headers.
|
|
4785
|
+
*
|
|
4786
|
+
* Inspects the first bytes to determine whether the data is PNG or JPEG,
|
|
4787
|
+
* then delegates to {@link embedPng} or {@link embedJpeg} accordingly.
|
|
4788
|
+
*
|
|
4789
|
+
* @param imageData Raw image file bytes (PNG or JPEG).
|
|
4790
|
+
* @returns An {@link ImageRef} to pass to `page.drawImage()`.
|
|
4791
|
+
* @throws If the image format cannot be detected.
|
|
4792
|
+
*
|
|
4793
|
+
* @example
|
|
4794
|
+
* ```ts
|
|
4795
|
+
* const bytes = new Uint8Array(await readFile('photo.jpg'));
|
|
4796
|
+
* const image = await pdf.embedImage(bytes);
|
|
4797
|
+
* page.drawImage(image, { x: 50, y: 400, width: 200, height: 150 });
|
|
4798
|
+
* ```
|
|
4799
|
+
*/
|
|
4800
|
+
embedImage(imageData: Uint8Array | ArrayBuffer): Promise<ImageRef>;
|
|
4753
4801
|
/**
|
|
4754
4802
|
* Embed pages from another PDF as Form XObjects.
|
|
4755
4803
|
*
|
|
@@ -4789,7 +4837,7 @@ declare class PdfDocument {
|
|
|
4789
4837
|
* @param pages Array of PdfPage instances to embed.
|
|
4790
4838
|
* @returns Array of {@link EmbeddedPdfPage} handles, one per input page.
|
|
4791
4839
|
*/
|
|
4792
|
-
embedPages(pages: PdfPage[]):
|
|
4840
|
+
embedPages(pages: PdfPage[]): EmbeddedPdfPage[];
|
|
4793
4841
|
/** Set the document title. */
|
|
4794
4842
|
setTitle(title: string, options?: SetTitleOptions): void;
|
|
4795
4843
|
/** Set the document author. */
|
|
@@ -6736,6 +6784,9 @@ interface EncryptDictValues {
|
|
|
6736
6784
|
* Tries the password as both user and owner password. Returns the key
|
|
6737
6785
|
* on the first successful match, or throws if neither works.
|
|
6738
6786
|
*
|
|
6787
|
+
* Results are cached so that re-opening the same PDF with the same
|
|
6788
|
+
* password skips the expensive key derivation.
|
|
6789
|
+
*
|
|
6739
6790
|
* @param password The password to try.
|
|
6740
6791
|
* @param dict Encryption dictionary values.
|
|
6741
6792
|
* @param fileId The first element of the /ID array (unused for R>=5).
|
|
@@ -7471,6 +7522,151 @@ declare class PdfRedactAnnotation extends PdfAnnotation {
|
|
|
7471
7522
|
setQuadPoints(points: number[]): void;
|
|
7472
7523
|
}
|
|
7473
7524
|
//#endregion
|
|
7525
|
+
//#region src/annotation/types/popupAnnotation.d.ts
|
|
7526
|
+
/**
|
|
7527
|
+
* A popup annotation (subtype /Popup).
|
|
7528
|
+
*
|
|
7529
|
+
* Displays a floating window containing the text of its parent
|
|
7530
|
+
* annotation. The parent annotation references this popup via its
|
|
7531
|
+
* `/Popup` entry, and this popup references its parent via `/Parent`.
|
|
7532
|
+
*/
|
|
7533
|
+
declare class PdfPopupAnnotation extends PdfAnnotation {
|
|
7534
|
+
constructor(dict: PdfDict);
|
|
7535
|
+
/**
|
|
7536
|
+
* Create a new popup annotation.
|
|
7537
|
+
*
|
|
7538
|
+
* @param options.open Whether the popup is initially open. Default: false.
|
|
7539
|
+
* @param options.parent Reference to the parent annotation (set after registration).
|
|
7540
|
+
*/
|
|
7541
|
+
static create(options: AnnotationOptions & {
|
|
7542
|
+
open?: boolean | undefined;
|
|
7543
|
+
}): PdfPopupAnnotation;
|
|
7544
|
+
/**
|
|
7545
|
+
* Create a PdfPopupAnnotation from an existing dictionary.
|
|
7546
|
+
*/
|
|
7547
|
+
static fromDict(dict: PdfDict, _resolver?: (ref: PdfRef) => PdfObject | undefined): PdfPopupAnnotation;
|
|
7548
|
+
/** Whether the popup is initially open. */
|
|
7549
|
+
isOpen(): boolean;
|
|
7550
|
+
/** Set the initial open state. */
|
|
7551
|
+
setOpen(open: boolean): void;
|
|
7552
|
+
/**
|
|
7553
|
+
* Set the parent annotation reference.
|
|
7554
|
+
* The parent is the annotation whose text this popup displays.
|
|
7555
|
+
*/
|
|
7556
|
+
setParent(parentRef: PdfRef): void;
|
|
7557
|
+
/** Get the parent annotation reference, if set. */
|
|
7558
|
+
getParent(): PdfRef | undefined;
|
|
7559
|
+
}
|
|
7560
|
+
//#endregion
|
|
7561
|
+
//#region src/annotation/types/caretAnnotation.d.ts
|
|
7562
|
+
/**
|
|
7563
|
+
* Symbol displayed by the caret annotation.
|
|
7564
|
+
*
|
|
7565
|
+
* - `'None'` — No symbol (just the caret marker).
|
|
7566
|
+
* - `'P'` — A paragraph symbol, indicating a new paragraph should
|
|
7567
|
+
* be inserted at this location.
|
|
7568
|
+
*/
|
|
7569
|
+
type CaretSymbol = 'None' | 'P';
|
|
7570
|
+
/**
|
|
7571
|
+
* A caret annotation (subtype /Caret).
|
|
7572
|
+
*
|
|
7573
|
+
* Marks an insertion point in the text. Used in review workflows
|
|
7574
|
+
* to indicate where new content should be added.
|
|
7575
|
+
*/
|
|
7576
|
+
declare class PdfCaretAnnotation extends PdfAnnotation {
|
|
7577
|
+
constructor(dict: PdfDict);
|
|
7578
|
+
/**
|
|
7579
|
+
* Create a new caret annotation.
|
|
7580
|
+
*
|
|
7581
|
+
* @param options.symbol The caret symbol. Default: 'None'.
|
|
7582
|
+
* @param options.caretRect The inner rectangle (RD) that describes
|
|
7583
|
+
* the difference between the annotation rect and the actual caret
|
|
7584
|
+
* position. Format: [left, bottom, right, top] insets.
|
|
7585
|
+
*/
|
|
7586
|
+
static create(options: AnnotationOptions & {
|
|
7587
|
+
symbol?: CaretSymbol | undefined;
|
|
7588
|
+
caretRect?: [number, number, number, number] | undefined;
|
|
7589
|
+
}): PdfCaretAnnotation;
|
|
7590
|
+
/**
|
|
7591
|
+
* Create a PdfCaretAnnotation from an existing dictionary.
|
|
7592
|
+
*/
|
|
7593
|
+
static fromDict(dict: PdfDict, _resolver?: (ref: PdfRef) => PdfObject | undefined): PdfCaretAnnotation;
|
|
7594
|
+
/** Get the caret symbol. Defaults to 'None'. */
|
|
7595
|
+
getSymbol(): CaretSymbol;
|
|
7596
|
+
/** Set the caret symbol. */
|
|
7597
|
+
setSymbol(symbol: CaretSymbol): void;
|
|
7598
|
+
/**
|
|
7599
|
+
* Get the inner rectangle differences (RD entry).
|
|
7600
|
+
* Returns [left, bottom, right, top] insets from the annotation rect.
|
|
7601
|
+
*/
|
|
7602
|
+
getCaretRect(): [number, number, number, number] | undefined;
|
|
7603
|
+
/** Set the inner rectangle differences (RD entry). */
|
|
7604
|
+
setCaretRect(rd: [number, number, number, number]): void;
|
|
7605
|
+
}
|
|
7606
|
+
//#endregion
|
|
7607
|
+
//#region src/annotation/types/fileAttachmentAnnotation.d.ts
|
|
7608
|
+
/**
|
|
7609
|
+
* Standard icon names for file attachment annotations.
|
|
7610
|
+
*
|
|
7611
|
+
* - `'GraphPushPin'` — A push pin on a graph (default).
|
|
7612
|
+
* - `'PaperclipTag'` — A paper clip with a tag.
|
|
7613
|
+
* - `'Paperclip'` — A paper clip.
|
|
7614
|
+
* - `'Tag'` — A tag label.
|
|
7615
|
+
*/
|
|
7616
|
+
type FileAttachmentIcon = 'GraphPushPin' | 'PaperclipTag' | 'Paperclip' | 'Tag';
|
|
7617
|
+
/**
|
|
7618
|
+
* A file attachment annotation (subtype /FileAttachment).
|
|
7619
|
+
*
|
|
7620
|
+
* Embeds a file directly in the annotation, rendered as a clickable
|
|
7621
|
+
* icon on the page. When the user clicks the icon, the PDF viewer
|
|
7622
|
+
* allows them to open or save the embedded file.
|
|
7623
|
+
*/
|
|
7624
|
+
declare class PdfFileAttachmentAnnotation extends PdfAnnotation {
|
|
7625
|
+
/** The raw file data to embed. */
|
|
7626
|
+
private fileData;
|
|
7627
|
+
/** The filename to display. */
|
|
7628
|
+
private fileName;
|
|
7629
|
+
/** Optional MIME type. */
|
|
7630
|
+
private mimeType;
|
|
7631
|
+
/** Optional file description. */
|
|
7632
|
+
private fileDescription;
|
|
7633
|
+
constructor(dict: PdfDict);
|
|
7634
|
+
/**
|
|
7635
|
+
* Create a new file attachment annotation.
|
|
7636
|
+
*
|
|
7637
|
+
* @param options.file The file data to embed.
|
|
7638
|
+
* @param options.fileName The filename (e.g., 'invoice.xml').
|
|
7639
|
+
* @param options.mimeType Optional MIME type (e.g., 'application/xml').
|
|
7640
|
+
* @param options.description Optional description of the file.
|
|
7641
|
+
* @param options.icon Icon to display. Default: 'GraphPushPin'.
|
|
7642
|
+
*/
|
|
7643
|
+
static create(options: AnnotationOptions & {
|
|
7644
|
+
file: Uint8Array;
|
|
7645
|
+
fileName: string;
|
|
7646
|
+
mimeType?: string | undefined;
|
|
7647
|
+
description?: string | undefined;
|
|
7648
|
+
icon?: FileAttachmentIcon | undefined;
|
|
7649
|
+
}): PdfFileAttachmentAnnotation;
|
|
7650
|
+
/**
|
|
7651
|
+
* Create a PdfFileAttachmentAnnotation from an existing dictionary.
|
|
7652
|
+
*/
|
|
7653
|
+
static fromDict(dict: PdfDict, _resolver?: (ref: PdfRef) => PdfObject | undefined): PdfFileAttachmentAnnotation;
|
|
7654
|
+
/** Get the icon name. Defaults to 'GraphPushPin'. */
|
|
7655
|
+
getIcon(): FileAttachmentIcon;
|
|
7656
|
+
/** Set the icon name. */
|
|
7657
|
+
setIcon(icon: FileAttachmentIcon): void;
|
|
7658
|
+
/** Get the filename, if set. */
|
|
7659
|
+
getFileName(): string | undefined;
|
|
7660
|
+
/**
|
|
7661
|
+
* Build the file specification dictionary and register the embedded
|
|
7662
|
+
* file stream. Call this before serializing the annotation.
|
|
7663
|
+
*
|
|
7664
|
+
* @param registry The document's object registry.
|
|
7665
|
+
* @returns The annotation dict with `/FS` referencing the file.
|
|
7666
|
+
*/
|
|
7667
|
+
buildFileSpec(registry: PdfObjectRegistry): PdfDict;
|
|
7668
|
+
}
|
|
7669
|
+
//#endregion
|
|
7474
7670
|
//#region src/annotation/appearanceGenerator.d.ts
|
|
7475
7671
|
/**
|
|
7476
7672
|
* Generate appearance stream for a Square annotation.
|
|
@@ -7692,7 +7888,25 @@ interface ByteRangeResult {
|
|
|
7692
7888
|
* @param placeholderSize Size in bytes for the signature. Default 8192.
|
|
7693
7889
|
* @returns The prepared PDF and ByteRange info.
|
|
7694
7890
|
*/
|
|
7695
|
-
|
|
7891
|
+
/**
|
|
7892
|
+
* Options for visible signature appearance within the byte-range preparation.
|
|
7893
|
+
* @internal
|
|
7894
|
+
*/
|
|
7895
|
+
interface PrepareAppearanceOptions {
|
|
7896
|
+
/** Page rectangle [x, y, width, height]. */
|
|
7897
|
+
rect: [number, number, number, number];
|
|
7898
|
+
/** Lines of text to render inside the signature box. */
|
|
7899
|
+
textLines: string[];
|
|
7900
|
+
/** Font size. Default: 10. */
|
|
7901
|
+
fontSize?: number | undefined;
|
|
7902
|
+
/** Background [r,g,b]. Default: none. */
|
|
7903
|
+
backgroundColor?: [number, number, number] | undefined;
|
|
7904
|
+
/** Border [r,g,b]. Default: [0,0,0]. */
|
|
7905
|
+
borderColor?: [number, number, number] | undefined;
|
|
7906
|
+
/** Border width. Default: 1. */
|
|
7907
|
+
borderWidth?: number | undefined;
|
|
7908
|
+
}
|
|
7909
|
+
declare function prepareForSigning(pdfBytes: Uint8Array, signatureFieldName: string, placeholderSize?: number, appearance?: PrepareAppearanceOptions | undefined): {
|
|
7696
7910
|
preparedPdf: Uint8Array;
|
|
7697
7911
|
byteRange: ByteRangeResult;
|
|
7698
7912
|
};
|
|
@@ -8092,6 +8306,182 @@ declare function validatePdfA(pdfBytes: Uint8Array, level: PdfALevel): PdfAValid
|
|
|
8092
8306
|
*/
|
|
8093
8307
|
declare function enforcePdfA(pdfBytes: Uint8Array, level: PdfALevel): Promise<Uint8Array>;
|
|
8094
8308
|
//#endregion
|
|
8309
|
+
//#region src/assets/image/imageOptimize.d.ts
|
|
8310
|
+
/**
|
|
8311
|
+
* @module assets/image/imageOptimize
|
|
8312
|
+
*
|
|
8313
|
+
* Optional image optimization — downsampling and recompression.
|
|
8314
|
+
*
|
|
8315
|
+
* These utilities are used to reduce the size of images before
|
|
8316
|
+
* embedding them in a PDF. Both functions are optional and operate
|
|
8317
|
+
* on raw pixel data (not on encoded PNG/JPEG streams).
|
|
8318
|
+
*
|
|
8319
|
+
* All implementations are currently stubs with clear interfaces;
|
|
8320
|
+
* full implementations will follow.
|
|
8321
|
+
*
|
|
8322
|
+
* No Buffer — uses Uint8Array exclusively.
|
|
8323
|
+
* No fs — no file system access.
|
|
8324
|
+
* No require() — ESM import only.
|
|
8325
|
+
*/
|
|
8326
|
+
/**
|
|
8327
|
+
* Options for image downscaling.
|
|
8328
|
+
*/
|
|
8329
|
+
interface DownscaleOptions {
|
|
8330
|
+
/** Target maximum width in pixels. The image is scaled proportionally. */
|
|
8331
|
+
readonly maxWidth?: number;
|
|
8332
|
+
/** Target maximum height in pixels. The image is scaled proportionally. */
|
|
8333
|
+
readonly maxHeight?: number;
|
|
8334
|
+
/**
|
|
8335
|
+
* Target DPI for the image at its intended print size. If specified
|
|
8336
|
+
* along with `printWidth` / `printHeight`, the image is downscaled
|
|
8337
|
+
* to match the target DPI.
|
|
8338
|
+
*
|
|
8339
|
+
* For example, a 3000×2000 image printed at 10×6.67 inches would be
|
|
8340
|
+
* 300 DPI. Setting `targetDpi: 150` would downscale to 1500×1000.
|
|
8341
|
+
*/
|
|
8342
|
+
readonly targetDpi?: number;
|
|
8343
|
+
/**
|
|
8344
|
+
* Intended print width in points (1/72 inch).
|
|
8345
|
+
* Used together with `targetDpi` to compute the target pixel dimensions.
|
|
8346
|
+
*/
|
|
8347
|
+
readonly printWidth?: number;
|
|
8348
|
+
/**
|
|
8349
|
+
* Intended print height in points (1/72 inch).
|
|
8350
|
+
* Used together with `targetDpi` to compute the target pixel dimensions.
|
|
8351
|
+
*/
|
|
8352
|
+
readonly printHeight?: number;
|
|
8353
|
+
/**
|
|
8354
|
+
* Resampling algorithm.
|
|
8355
|
+
* - `'nearest'`: Nearest-neighbor (fast, blocky)
|
|
8356
|
+
* - `'bilinear'`: Bilinear interpolation (good quality, moderate speed)
|
|
8357
|
+
* - `'lanczos'`: Lanczos-3 resampling (best quality, slowest)
|
|
8358
|
+
*
|
|
8359
|
+
* Default: `'bilinear'`.
|
|
8360
|
+
*/
|
|
8361
|
+
readonly algorithm?: 'nearest' | 'bilinear' | 'lanczos';
|
|
8362
|
+
}
|
|
8363
|
+
/**
|
|
8364
|
+
* Options for image recompression.
|
|
8365
|
+
*/
|
|
8366
|
+
interface RecompressOptions {
|
|
8367
|
+
/**
|
|
8368
|
+
* Output format.
|
|
8369
|
+
* - `'jpeg'`: JPEG compression (lossy, good for photographs)
|
|
8370
|
+
* - `'deflate'`: Deflate/zlib compression (lossless, used in PDF FlateDecode)
|
|
8371
|
+
*
|
|
8372
|
+
* Default: `'deflate'`.
|
|
8373
|
+
*/
|
|
8374
|
+
readonly format?: 'jpeg' | 'deflate';
|
|
8375
|
+
/**
|
|
8376
|
+
* JPEG quality (1–100). Only used when `format` is `'jpeg'`.
|
|
8377
|
+
* Higher values produce larger files with better quality.
|
|
8378
|
+
*
|
|
8379
|
+
* Default: `85`.
|
|
8380
|
+
*/
|
|
8381
|
+
readonly quality?: number;
|
|
8382
|
+
/**
|
|
8383
|
+
* Deflate compression level (1–9). Only used when `format` is `'deflate'`.
|
|
8384
|
+
* Higher values produce smaller files but take longer.
|
|
8385
|
+
*
|
|
8386
|
+
* Default: `6`.
|
|
8387
|
+
*/
|
|
8388
|
+
readonly compressionLevel?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
8389
|
+
}
|
|
8390
|
+
/**
|
|
8391
|
+
* Combined options for the full optimization pipeline.
|
|
8392
|
+
*/
|
|
8393
|
+
interface ImageOptimizeOptions extends DownscaleOptions, RecompressOptions {
|
|
8394
|
+
/**
|
|
8395
|
+
* Skip optimization if the input data is already smaller than this
|
|
8396
|
+
* threshold (in bytes).
|
|
8397
|
+
*
|
|
8398
|
+
* Default: `0` (always optimize).
|
|
8399
|
+
*/
|
|
8400
|
+
readonly skipBelowBytes?: number;
|
|
8401
|
+
}
|
|
8402
|
+
/**
|
|
8403
|
+
* Raw image pixel data with metadata.
|
|
8404
|
+
*/
|
|
8405
|
+
interface RawImageData {
|
|
8406
|
+
/** Pixel data in row-major order, channel-interleaved. */
|
|
8407
|
+
readonly pixels: Uint8Array;
|
|
8408
|
+
/** Image width in pixels. */
|
|
8409
|
+
readonly width: number;
|
|
8410
|
+
/** Image height in pixels. */
|
|
8411
|
+
readonly height: number;
|
|
8412
|
+
/**
|
|
8413
|
+
* Number of channels:
|
|
8414
|
+
* - 1: Grayscale
|
|
8415
|
+
* - 2: Grayscale + Alpha
|
|
8416
|
+
* - 3: RGB
|
|
8417
|
+
* - 4: RGBA
|
|
8418
|
+
*/
|
|
8419
|
+
readonly channels: 1 | 2 | 3 | 4;
|
|
8420
|
+
/** Bits per channel (typically 8). */
|
|
8421
|
+
readonly bitsPerChannel: number;
|
|
8422
|
+
}
|
|
8423
|
+
/**
|
|
8424
|
+
* The result of an optimization operation.
|
|
8425
|
+
*/
|
|
8426
|
+
interface OptimizeResult {
|
|
8427
|
+
/** The optimized pixel data (or compressed data if recompressed). */
|
|
8428
|
+
readonly data: Uint8Array;
|
|
8429
|
+
/** Output width in pixels. */
|
|
8430
|
+
readonly width: number;
|
|
8431
|
+
/** Output height in pixels. */
|
|
8432
|
+
readonly height: number;
|
|
8433
|
+
/** Number of channels in the output. */
|
|
8434
|
+
readonly channels: number;
|
|
8435
|
+
/** The compression format applied, if any. */
|
|
8436
|
+
readonly format: 'raw' | 'jpeg' | 'deflate';
|
|
8437
|
+
/** Whether any actual optimization was performed. */
|
|
8438
|
+
readonly wasOptimized: boolean;
|
|
8439
|
+
}
|
|
8440
|
+
/**
|
|
8441
|
+
* Downscale an image to fit within the specified dimensions.
|
|
8442
|
+
*
|
|
8443
|
+
* If the image is already smaller than the target dimensions, it is
|
|
8444
|
+
* returned unchanged.
|
|
8445
|
+
*
|
|
8446
|
+
* @param image - The raw image pixel data.
|
|
8447
|
+
* @param options - Downscaling options (target dimensions, algorithm).
|
|
8448
|
+
* @returns The downscaled image, or the original if no scaling needed.
|
|
8449
|
+
*
|
|
8450
|
+
* @example
|
|
8451
|
+
* ```ts
|
|
8452
|
+
* const result = downscaleImage(rawImage, {
|
|
8453
|
+
* maxWidth: 1024,
|
|
8454
|
+
* maxHeight: 768,
|
|
8455
|
+
* algorithm: 'bilinear',
|
|
8456
|
+
* });
|
|
8457
|
+
* ```
|
|
8458
|
+
*/
|
|
8459
|
+
declare function downscaleImage(image: RawImageData, options?: DownscaleOptions): RawImageData;
|
|
8460
|
+
/**
|
|
8461
|
+
* Recompress raw image pixel data using the specified format.
|
|
8462
|
+
*
|
|
8463
|
+
* @param image - The raw image pixel data.
|
|
8464
|
+
* @param options - Recompression options (format, quality).
|
|
8465
|
+
* @returns The compressed image data.
|
|
8466
|
+
*
|
|
8467
|
+
* @example
|
|
8468
|
+
* ```ts
|
|
8469
|
+
* const result = await recompressImage(rawImage, {
|
|
8470
|
+
* format: 'deflate',
|
|
8471
|
+
* compressionLevel: 9,
|
|
8472
|
+
* });
|
|
8473
|
+
* ```
|
|
8474
|
+
*/
|
|
8475
|
+
declare function recompressImage(image: RawImageData, options?: RecompressOptions): Promise<OptimizeResult>;
|
|
8476
|
+
/**
|
|
8477
|
+
* Run the full image optimization pipeline: downscale then recompress.
|
|
8478
|
+
*
|
|
8479
|
+
* @param image - The raw image pixel data.
|
|
8480
|
+
* @param options - Combined optimization options.
|
|
8481
|
+
* @returns The optimized result.
|
|
8482
|
+
*/
|
|
8483
|
+
declare function optimizeImage(image: RawImageData, options?: ImageOptimizeOptions): Promise<OptimizeResult>;
|
|
8484
|
+
//#endregion
|
|
8095
8485
|
//#region src/utils/base64.d.ts
|
|
8096
8486
|
/**
|
|
8097
8487
|
* @module utils/base64
|
|
@@ -8283,5 +8673,5 @@ interface InitWasmOptions {
|
|
|
8283
8673
|
*/
|
|
8284
8674
|
declare function initWasm(options?: string | URL | InitWasmOptions): Promise<void>;
|
|
8285
8675
|
//#endregion
|
|
8286
|
-
export { type AccessibilityIssue, type Angle, AnnotationFlags, type AnnotationOptions, type AnnotationType, type AppearanceProviderFor, BlendMode, type ButtonAppearanceOptions, type ByteRangeResult, type ByteWriter, type CIDFontData, type CIDSystemInfoData, type CatalogOptions, ChangeTracker, type CheckboxAppearanceOptions, type CmykColor, type Color, type ColorStop, CombedTextLayoutError, type ComputeFontSizeOptions, type ContentStreamOperator, type CropBox, type Degrees, type DocumentMetadata, type DocumentStructure, type DrawCircleOptions, type DrawEllipseOptions, type DrawImageOptions, type DrawLineOptions, type DrawPageOptions, type DrawRectangleOptions, type DrawSquareOptions, type DrawSvgPathOptions, type DrawTextOptions, type DropdownAppearanceOptions, type EmbedFontOptions, type EmbedPageOptions, type EmbeddedFile, EmbeddedFont, type EmbeddedPdfPage, type EncryptAlgorithm, type EncryptDictValues, type EncryptOptions, EncryptedPdfError, ExceededMaxLengthError, FieldAlreadyExistsError, FieldExistsAsNonTerminalError, FieldFlags, type FieldType, type FontDescriptorData, type FontEmbeddingResult, type FontMetrics, FontNotEmbeddedError, type FontRef, ForeignPageError, type FreeTextAlignment, type GradientFill, type GrayscaleColor, ImageAlignment, type ImageRef, type IncrementalSaveResult, InitWasmOptions, InvalidFieldNamePartError, type LayoutCombedOptions, type LayoutMultilineOptions, type LayoutMultilineResult, type LayoutSinglelineOptions, type LayoutSinglelineResult, LineCapStyle, type LineEndingStyle, LineJoinStyle, type LinearGradientOptions, type LinearizationOptions, type LinkHighlightMode, type ListboxAppearanceOptions, type LoadPdfOptions, type MarkedContentScope, MissingOnValueCheckError, NoSuchFieldError, type NormalizedStop, type Operand, type OutlineDestination, type OutlineItemOptions, PDFOperator, type PageEntry, type PageRange, type PageSize, PageSizes, ParseSpeeds, type PatternFill, type PdfAIssue, type PdfALevel, type PdfAValidationResult, PdfAnnotation, PdfArray, PdfBool, PdfButtonField, PdfCheckboxField, PdfCircleAnnotation, PdfDict, PdfDocument, PdfDropdownField, PdfEncryptionHandler, PdfField, PdfForm, PdfFreeTextAnnotation, PdfHighlightAnnotation, PdfInkAnnotation, PdfLayer, PdfLayerManager, PdfLineAnnotation, PdfLinkAnnotation, PdfListboxField, PdfName, PdfNull, PdfNumber, type PdfObject, PdfObjectRegistry, PdfOutlineItem, PdfOutlineTree, PdfPage, PdfParseError, type PdfPermissionFlags, PdfPolyLineAnnotation, PdfPolygonAnnotation, PdfRadioGroup, PdfRedactAnnotation, PdfRef, type PdfSaveOptions, PdfSignatureField, type PdfSignatureInfo, PdfSquareAnnotation, PdfSquigglyAnnotation, PdfStampAnnotation, PdfStream, PdfStreamWriter, PdfStrikeOutAnnotation, PdfString, PdfStructureElement, PdfStructureTree, PdfTextAnnotation, PdfTextField, PdfUnderlineAnnotation, PdfViewerPreferences, PdfWriter, type RadialGradientFill, type RadialGradientOptions, type Radians, type RadioAppearanceOptions, type RedactionMark, type RedactionOptions, type RefResolver, type RegistryEntry, RemovePageFromEmptyDocumentError, type RgbColor, RichTextFieldReadError, type SetTitleOptions, type SignOptions, type SignatureAppearanceOptions, type SignatureOptions, type SignatureVerificationResult, type SignerInfo, type SoftMaskBuilder, type SoftMaskRef, type StandardFontName, StandardFonts, type StandardStampName, type StructureElementOptions, type StructureType, type SubsetCmap, type SubsetResult, type SvgDrawCommand, type SvgElement, type SvgRenderOptions, TextAlignment, type TextAnnotationIcon, type TextAppearanceOptions, type TextExtractionOptions, type TextItem, TextRenderingMode, type TilingPatternOptions, type TimestampResult, type TransparencyGroupOptions, type Type0FontData, UnexpectedFieldTypeError, type ViewerPreferences, type WatermarkOptions, type WidgetAnnotationHost, type WidthEntry, addWatermark, addWatermarkToPage, aesDecryptCBC, aesEncryptCBC, annotationFromDict, applyFillColor, applyRedactions, applyStrokeColor, asNumber, asPDFName, asPDFNumber, attachFile, base64Decode, base64Encode, beginArtifact, beginArtifactWithType, beginLayerContent, beginMarkedContent, beginMarkedContentSequence, beginMarkedContentWithProperties, beginText, buildAnnotationDict, buildCatalog, buildDocumentStructure, buildEmbeddedFilesNameTree, buildGradientObjects, buildInfoDict, buildPageTree, buildPatternObjects, buildPkcs7Signature, buildTimestampRequest, buildViewerPreferencesDict, buildXmpMetadata, checkAccessibility, circlePath, clipEvenOdd, clip as clipOp, closeAndStroke, closeFillAndStroke, closeFillEvenOddAndStroke, closePath as closePathOp, cmyk, colorToComponents, componentsToColor, computeFileEncryptionKey, computeFontSize, computeSignatureHash, concatMatrix, concatMatrix as concatTransformationMatrix, copyPages, createAnnotation, createMarkedContentScope, createPdf, createXmpStream, cropPage, curveToFinal, curveToInitial, curveTo as curveToOp, decodePermissions, decodeStream, degrees, degreesToRadians, drawImageWithMatrix, drawImageXObject, drawXObject as drawObject, drawXObject, drawSvgOnPage, ellipsePath, embedPageAsFormXObject, embedSignature, encodeContextTag, encodeInteger, encodeLength, encodeOID, encodeOctetString, encodePermissions, encodePrintableString, encodeSequence, encodeSet, encodeUTCTime, encodeUtf8String, endArtifact, endLayerContent, endMarkedContent, endPath as endPathOp, endText, enforcePdfA, extractMetrics, extractText, extractTextWithPositions, fillAndStroke as fillAndStrokeOp, fillEvenOdd, fillEvenOddAndStroke, fill as fillOp, findSignatures, formatHexContext, formatPdfDate, generateButtonAppearance, generateCheckboxAppearance, generateCircleAppearance, generateDropdownAppearance, generateFreeTextAppearance, generateHighlightAppearance, generateInkAppearance, generateLineAppearance, generateListboxAppearance, generateRadioAppearance, generateSignatureAppearance, generateSquareAppearance, generateSquigglyAppearance, generateStrikeOutAppearance, generateTextAppearance, generateUnderlineAppearance, getAttachments, getPageSize, getRedactionMarks, getSignatures, grayscale, initWasm, insertPage, isAccessible, isLinearized, isOpenTypeCFF, isTrueType, layoutCombedText, layoutMultilineText, layoutSinglelineText, lineTo as lineToOp, linearGradient, linearizePdf, loadPdf, markForRedaction, md5, mergePdfs, movePage, moveText as moveTextOp, moveTextSetLeading, moveTo as moveToOp, nextLine as nextLineOp, parseContentStream, parseSvg, parseSvgColor, parseSvgPath, parseSvgTransform, parseTimestampResponse, parseViewerPreferences, parseXmpMetadata, restoreState as popGraphicsState, restoreState, prepareForSigning, saveState as pushGraphicsState, saveState, radialGradient, radians, radiansToDegrees, rc4, rectangle as rectangleOp, removePage, removePages, requestTimestamp, resizePage, reversePages, rgb, rotateAllPages, rotate as rotateOp, rotatePage, rotationMatrix, saveDocumentIncremental, saveIncremental, scale as scaleOp, serializePdf, setCharacterSpacing as setCharacterSpacingOp, setCharacterSpacing as setCharacterSqueeze, setColorSpace, setDashPattern as setDashPatternOp, setFillColor, setFillColorCmyk, setFillColorGray, setFillColorRgb, setFillingColor, setFlatness, setFont as setFontAndSize, setFont as setFontOp, setFontSize as setFontSizeOp, setGraphicsState as setGraphicsStateOp, setLeading as setLeadingOp, setLeading as setLineHeight, setLineCap as setLineCapOp, setLineJoin as setLineJoinOp, setLineWidth as setLineWidthOp, setMiterLimit, setStrokeColor, setStrokeColorCmyk, setStrokeColorGray, setStrokeColorRgb, setStrokeColorSpace, setStrokingColor, setTextMatrix as setTextMatrixOp, setTextRenderingMode as setTextRenderingModeOp, setTextRise as setTextRiseOp, setWordSpacing as setWordSpacingOp, sha256, sha384, sha512, showTextArray, showTextHex, showTextNextLine, showText as showTextOp, showTextWithSpacing, signPdf, skew as skewOp, splitPdf, stroke as strokeOp, summarizeIssues, svgToPdfOperators, tilingPattern, translate as translateOp, validatePdfA, verifyOwnerPassword, verifySignature, verifySignatures, verifyUserPassword, wrapInMarkedContent };
|
|
8676
|
+
export { type AccessibilityIssue, type Angle, AnnotationFlags, type AnnotationOptions, type AnnotationType, type AppearanceProviderFor, BlendMode, type ButtonAppearanceOptions, type ByteRangeResult, type ByteWriter, type CIDFontData, type CIDSystemInfoData, type CaretSymbol, type CatalogOptions, ChangeTracker, type CheckboxAppearanceOptions, type CmykColor, type Color, type ColorStop, CombedTextLayoutError, type ComputeFontSizeOptions, type ContentStreamOperator, type CropBox, type Degrees, type DocumentMetadata, type DocumentStructure, type DownscaleOptions, type DrawCircleOptions, type DrawEllipseOptions, type DrawImageOptions, type DrawLineOptions, type DrawPageOptions, type DrawRectangleOptions, type DrawSquareOptions, type DrawSvgPathOptions, type DrawTextOptions, type DropdownAppearanceOptions, type EmbedFontOptions, type EmbedPageOptions, type EmbeddedFile, EmbeddedFont, type EmbeddedPdfPage, type EncryptAlgorithm, type EncryptDictValues, type EncryptOptions, EncryptedPdfError, ExceededMaxLengthError, FieldAlreadyExistsError, FieldExistsAsNonTerminalError, FieldFlags, type FieldType, type FileAttachmentIcon, type FontDescriptorData, type FontEmbeddingResult, type FontMetrics, FontNotEmbeddedError, type FontRef, ForeignPageError, type FreeTextAlignment, type GradientFill, type GrayscaleColor, ImageAlignment, type ImageOptimizeOptions, type ImageRef, type IncrementalSaveResult, InitWasmOptions, InvalidFieldNamePartError, type LayoutCombedOptions, type LayoutMultilineOptions, type LayoutMultilineResult, type LayoutSinglelineOptions, type LayoutSinglelineResult, LineCapStyle, type LineEndingStyle, LineJoinStyle, type LinearGradientOptions, type LinearizationOptions, type LinkHighlightMode, type ListboxAppearanceOptions, type LoadPdfOptions, type MarkedContentScope, MissingOnValueCheckError, NoSuchFieldError, type NormalizedStop, type Operand, type OptimizeResult, type OutlineDestination, type OutlineItemOptions, PDFOperator, type PageEntry, type PageRange, type PageSize, PageSizes, ParseSpeeds, type PatternFill, type PdfAIssue, type PdfALevel, type PdfAValidationResult, PdfAnnotation, PdfArray, PdfBool, PdfButtonField, PdfCaretAnnotation, PdfCheckboxField, PdfCircleAnnotation, PdfDict, PdfDocument, PdfDropdownField, PdfEncryptionHandler, PdfField, PdfFileAttachmentAnnotation, PdfForm, PdfFreeTextAnnotation, PdfHighlightAnnotation, PdfInkAnnotation, PdfLayer, PdfLayerManager, PdfLineAnnotation, PdfLinkAnnotation, PdfListboxField, PdfName, PdfNull, PdfNumber, type PdfObject, PdfObjectRegistry, PdfOutlineItem, PdfOutlineTree, PdfPage, PdfParseError, type PdfPermissionFlags, PdfPolyLineAnnotation, PdfPolygonAnnotation, PdfPopupAnnotation, PdfRadioGroup, PdfRedactAnnotation, PdfRef, type PdfSaveOptions, PdfSignatureField, type PdfSignatureInfo, PdfSquareAnnotation, PdfSquigglyAnnotation, PdfStampAnnotation, PdfStream, PdfStreamWriter, PdfStrikeOutAnnotation, PdfString, PdfStructureElement, PdfStructureTree, PdfTextAnnotation, PdfTextField, PdfUnderlineAnnotation, PdfViewerPreferences, PdfWriter, type RadialGradientFill, type RadialGradientOptions, type Radians, type RadioAppearanceOptions, type RawImageData, type RecompressOptions, type RedactionMark, type RedactionOptions, type RefResolver, type RegistryEntry, RemovePageFromEmptyDocumentError, type RgbColor, RichTextFieldReadError, type SetTitleOptions, type SignOptions, type SignatureAppearanceOptions, type SignatureOptions, type SignatureVerificationResult, type SignerInfo, type SoftMaskBuilder, type SoftMaskRef, type StandardFontName, StandardFonts, type StandardStampName, type StructureElementOptions, type StructureType, type SubsetCmap, type SubsetResult, type SvgDrawCommand, type SvgElement, type SvgRenderOptions, TextAlignment, type TextAnnotationIcon, type TextAppearanceOptions, type TextExtractionOptions, type TextItem, TextRenderingMode, type TilingPatternOptions, type TimestampResult, type TransparencyGroupOptions, type Type0FontData, UnexpectedFieldTypeError, type ViewerPreferences, type VisibleSignatureOptions, type WatermarkOptions, type WidgetAnnotationHost, type WidthEntry, addWatermark, addWatermarkToPage, aesDecryptCBC, aesEncryptCBC, annotationFromDict, applyFillColor, applyRedactions, applyStrokeColor, asNumber, asPDFName, asPDFNumber, attachFile, base64Decode, base64Encode, beginArtifact, beginArtifactWithType, beginLayerContent, beginMarkedContent, beginMarkedContentSequence, beginMarkedContentWithProperties, beginText, buildAnnotationDict, buildCatalog, buildDocumentStructure, buildEmbeddedFilesNameTree, buildGradientObjects, buildInfoDict, buildPageTree, buildPatternObjects, buildPkcs7Signature, buildTimestampRequest, buildViewerPreferencesDict, buildXmpMetadata, checkAccessibility, circlePath, clipEvenOdd, clip as clipOp, closeAndStroke, closeFillAndStroke, closeFillEvenOddAndStroke, closePath as closePathOp, cmyk, colorToComponents, componentsToColor, computeFileEncryptionKey, computeFontSize, computeSignatureHash, concatMatrix, concatMatrix as concatTransformationMatrix, copyPages, createAnnotation, createMarkedContentScope, createPdf, createXmpStream, cropPage, curveToFinal, curveToInitial, curveTo as curveToOp, decodePermissions, decodeStream, degrees, degreesToRadians, downscaleImage, drawImageWithMatrix, drawImageXObject, drawXObject as drawObject, drawXObject, drawSvgOnPage, ellipsePath, embedPageAsFormXObject, embedSignature, encodeContextTag, encodeInteger, encodeLength, encodeOID, encodeOctetString, encodePermissions, encodePrintableString, encodeSequence, encodeSet, encodeUTCTime, encodeUtf8String, endArtifact, endLayerContent, endMarkedContent, endPath as endPathOp, endText, enforcePdfA, extractMetrics, extractText, extractTextWithPositions, fillAndStroke as fillAndStrokeOp, fillEvenOdd, fillEvenOddAndStroke, fill as fillOp, findSignatures, formatHexContext, formatPdfDate, generateButtonAppearance, generateCheckboxAppearance, generateCircleAppearance, generateDropdownAppearance, generateFreeTextAppearance, generateHighlightAppearance, generateInkAppearance, generateLineAppearance, generateListboxAppearance, generateRadioAppearance, generateSignatureAppearance, generateSquareAppearance, generateSquigglyAppearance, generateStrikeOutAppearance, generateTextAppearance, generateUnderlineAppearance, getAttachments, getPageSize, getRedactionMarks, getSignatures, grayscale, initWasm, insertPage, isAccessible, isLinearized, isOpenTypeCFF, isTrueType, layoutCombedText, layoutMultilineText, layoutSinglelineText, lineTo as lineToOp, linearGradient, linearizePdf, loadPdf, markForRedaction, md5, mergePdfs, movePage, moveText as moveTextOp, moveTextSetLeading, moveTo as moveToOp, nextLine as nextLineOp, optimizeImage, parseContentStream, parseSvg, parseSvgColor, parseSvgPath, parseSvgTransform, parseTimestampResponse, parseViewerPreferences, parseXmpMetadata, restoreState as popGraphicsState, restoreState, prepareForSigning, saveState as pushGraphicsState, saveState, radialGradient, radians, radiansToDegrees, rc4, recompressImage, rectangle as rectangleOp, removePage, removePages, requestTimestamp, resizePage, reversePages, rgb, rotateAllPages, rotate as rotateOp, rotatePage, rotationMatrix, saveDocumentIncremental, saveIncremental, scale as scaleOp, serializePdf, setCharacterSpacing as setCharacterSpacingOp, setCharacterSpacing as setCharacterSqueeze, setColorSpace, setDashPattern as setDashPatternOp, setFillColor, setFillColorCmyk, setFillColorGray, setFillColorRgb, setFillingColor, setFlatness, setFont as setFontAndSize, setFont as setFontOp, setFontSize as setFontSizeOp, setGraphicsState as setGraphicsStateOp, setLeading as setLeadingOp, setLeading as setLineHeight, setLineCap as setLineCapOp, setLineJoin as setLineJoinOp, setLineWidth as setLineWidthOp, setMiterLimit, setStrokeColor, setStrokeColorCmyk, setStrokeColorGray, setStrokeColorRgb, setStrokeColorSpace, setStrokingColor, setTextMatrix as setTextMatrixOp, setTextRenderingMode as setTextRenderingModeOp, setTextRise as setTextRiseOp, setWordSpacing as setWordSpacingOp, sha256, sha384, sha512, showTextArray, showTextHex, showTextNextLine, showText as showTextOp, showTextWithSpacing, signPdf, skew as skewOp, splitPdf, stroke as strokeOp, summarizeIssues, svgToPdfOperators, tilingPattern, translate as translateOp, validatePdfA, verifyOwnerPassword, verifySignature, verifySignatures, verifyUserPassword, wrapInMarkedContent };
|
|
8287
8677
|
//# sourceMappingURL=index.d.mts.map
|