@utilix-tech/sdk 0.5.0 → 0.7.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.
@@ -1,53 +0,0 @@
1
- type ImageFormat = 'png' | 'jpeg' | 'gif' | 'webp' | 'bmp';
2
- interface ImageInfo {
3
- format: ImageFormat;
4
- width: number;
5
- height: number;
6
- bitDepth?: number;
7
- colorType?: string;
8
- hasAlpha?: boolean;
9
- }
10
- interface ImageInfoError {
11
- error: string;
12
- }
13
- /**
14
- * Read image format, dimensions, and basic color info straight from file
15
- * bytes — no decoding, no image library, no canvas. Supports PNG, JPEG,
16
- * GIF, WebP, and BMP.
17
- */
18
- declare function readImageInfo(bytes: Uint8Array): ImageInfo | ImageInfoError;
19
- interface PdfMetadata {
20
- version: string | null;
21
- pageCount: number | null;
22
- title: string | null;
23
- author: string | null;
24
- subject: string | null;
25
- keywords: string | null;
26
- creator: string | null;
27
- producer: string | null;
28
- creationDate: string | null;
29
- modDate: string | null;
30
- encrypted: boolean;
31
- }
32
- interface PdfMetadataError {
33
- error: string;
34
- }
35
- /**
36
- * Read PDF metadata (title, author, dates, page count, encryption flag)
37
- * straight from the file's trailer/Info dictionary and page tree — no
38
- * pdf.js or other PDF rendering library required.
39
- */
40
- declare function readPdfMetadata(bytes: Uint8Array): PdfMetadata | PdfMetadataError;
41
-
42
- type media_ImageFormat = ImageFormat;
43
- type media_ImageInfo = ImageInfo;
44
- type media_ImageInfoError = ImageInfoError;
45
- type media_PdfMetadata = PdfMetadata;
46
- type media_PdfMetadataError = PdfMetadataError;
47
- declare const media_readImageInfo: typeof readImageInfo;
48
- declare const media_readPdfMetadata: typeof readPdfMetadata;
49
- declare namespace media {
50
- export { type media_ImageFormat as ImageFormat, type media_ImageInfo as ImageInfo, type media_ImageInfoError as ImageInfoError, type media_PdfMetadata as PdfMetadata, type media_PdfMetadataError as PdfMetadataError, media_readImageInfo as readImageInfo, media_readPdfMetadata as readPdfMetadata };
51
- }
52
-
53
- export { type ImageFormat as I, type PdfMetadata as P, type ImageInfo as a, type ImageInfoError as b, type PdfMetadataError as c, readPdfMetadata as d, media as m, readImageInfo as r };