@kreuzberg/html-to-markdown-wasm 2.22.0 → 2.22.5

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.
@@ -2,65 +2,80 @@
2
2
  /* eslint-disable */
3
3
 
4
4
  export class WasmConversionOptionsHandle {
5
- free(): void;
6
- [Symbol.dispose](): void;
7
- constructor(options?: WasmConversionOptions | null);
5
+ free(): void;
6
+ [Symbol.dispose](): void;
7
+ constructor(options?: WasmConversionOptions | null);
8
8
  }
9
9
 
10
+ /**
11
+ * Result of HTML extraction with inline images
12
+ */
10
13
  export class WasmHtmlExtraction {
11
- private constructor();
12
- free(): void;
13
- [Symbol.dispose](): void;
14
- readonly inlineImages: WasmInlineImage[];
15
- readonly markdown: string;
16
- readonly warnings: WasmInlineImageWarning[];
14
+ private constructor();
15
+ free(): void;
16
+ [Symbol.dispose](): void;
17
+ readonly inlineImages: WasmInlineImage[];
18
+ readonly markdown: string;
19
+ readonly warnings: WasmInlineImageWarning[];
17
20
  }
18
21
 
22
+ /**
23
+ * Inline image data
24
+ */
19
25
  export class WasmInlineImage {
20
- private constructor();
21
- free(): void;
22
- [Symbol.dispose](): void;
23
- readonly attributes: Record<string, string>;
24
- readonly dimensions: Uint32Array | undefined;
25
- readonly description: string | undefined;
26
- readonly data: Uint8Array;
27
- readonly format: string;
28
- readonly source: string;
29
- readonly filename: string | undefined;
26
+ private constructor();
27
+ free(): void;
28
+ [Symbol.dispose](): void;
29
+ readonly attributes: Record<string, string>;
30
+ readonly data: Uint8Array;
31
+ readonly description: string | undefined;
32
+ readonly dimensions: Uint32Array | undefined;
33
+ readonly filename: string | undefined;
34
+ readonly format: string;
35
+ readonly source: string;
30
36
  }
31
37
 
38
+ /**
39
+ * Inline image configuration
40
+ */
32
41
  export class WasmInlineImageConfig {
33
- free(): void;
34
- [Symbol.dispose](): void;
35
- constructor(max_decoded_size_bytes?: number | null);
36
- set captureSvg(value: boolean);
37
- set filenamePrefix(value: string | null | undefined);
38
- set inferDimensions(value: boolean);
42
+ free(): void;
43
+ [Symbol.dispose](): void;
44
+ constructor(max_decoded_size_bytes?: number | null);
45
+ set captureSvg(value: boolean);
46
+ set filenamePrefix(value: string | null | undefined);
47
+ set inferDimensions(value: boolean);
39
48
  }
40
49
 
50
+ /**
51
+ * Warning about inline image processing
52
+ */
41
53
  export class WasmInlineImageWarning {
42
- private constructor();
43
- free(): void;
44
- [Symbol.dispose](): void;
45
- readonly index: number;
46
- readonly message: string;
54
+ private constructor();
55
+ free(): void;
56
+ [Symbol.dispose](): void;
57
+ readonly index: number;
58
+ readonly message: string;
47
59
  }
48
60
 
61
+ /**
62
+ * Metadata extraction configuration
63
+ */
49
64
  export class WasmMetadataConfig {
50
- free(): void;
51
- [Symbol.dispose](): void;
52
- /**
53
- * Create a new metadata configuration with defaults
54
- *
55
- * All extraction types enabled by default with 1MB structured data limit
56
- */
57
- constructor();
58
- extract_links: boolean;
59
- extract_images: boolean;
60
- extract_headers: boolean;
61
- extract_document: boolean;
62
- extract_structured_data: boolean;
63
- max_structured_data_size: number;
65
+ free(): void;
66
+ [Symbol.dispose](): void;
67
+ /**
68
+ * Create a new metadata configuration with defaults
69
+ *
70
+ * All extraction types enabled by default with 1MB structured data limit
71
+ */
72
+ constructor();
73
+ extract_document: boolean;
74
+ extract_headers: boolean;
75
+ extract_images: boolean;
76
+ extract_links: boolean;
77
+ extract_structured_data: boolean;
78
+ max_structured_data_size: number;
64
79
  }
65
80
 
66
81
  /**