@xberg-io/html-to-markdown-wasm 0.0.1 → 3.8.0-rc.2

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,1490 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ /**
5
+ * The type of an inline text annotation.
6
+ *
7
+ * Uses internally tagged representation (`"annotation_type": "bold"`) for JSON serialization.
8
+ */
9
+ export class WasmAnnotationKind {
10
+ free(): void;
11
+ [Symbol.dispose](): void;
12
+ static default(): WasmAnnotationKind;
13
+ constructor();
14
+ annotationType: string;
15
+ get title(): string | undefined;
16
+ set title(value: string | null | undefined);
17
+ get url(): string | undefined;
18
+ set url(value: string | null | undefined);
19
+ }
20
+
21
+ /**
22
+ * Code block fence style in Markdown output.
23
+ *
24
+ * Determines how code blocks (`<pre><code>`) are rendered in Markdown.
25
+ */
26
+ export enum WasmCodeBlockStyle {
27
+ Indented = 0,
28
+ Backticks = 1,
29
+ Tildes = 2,
30
+ }
31
+
32
+ /**
33
+ * Main conversion options for HTML to Markdown conversion.
34
+ *
35
+ * Use `ConversionOptions.builder()` to construct, or `Default.default()` for defaults.
36
+ *
37
+ * # Example
38
+ */
39
+ export class WasmConversionOptions {
40
+ free(): void;
41
+ [Symbol.dispose](): void;
42
+ static default(): WasmConversionOptions;
43
+ constructor(headingStyle?: WasmHeadingStyle | null, listIndentType?: WasmListIndentType | null, listIndentWidth?: number | null, bullets?: string | null, strongEmSymbol?: string | null, escapeAsterisks?: boolean | null, escapeUnderscores?: boolean | null, escapeMisc?: boolean | null, escapeAscii?: boolean | null, codeLanguage?: string | null, autolinks?: boolean | null, defaultTitle?: boolean | null, brInTables?: boolean | null, compactTables?: boolean | null, highlightStyle?: WasmHighlightStyle | null, extractMetadata?: boolean | null, whitespaceMode?: WasmWhitespaceMode | null, stripNewlines?: boolean | null, wrap?: boolean | null, wrapWidth?: number | null, convertAsInline?: boolean | null, subSymbol?: string | null, supSymbol?: string | null, newlineStyle?: WasmNewlineStyle | null, codeBlockStyle?: WasmCodeBlockStyle | null, keepInlineImagesIn?: string[] | null, preprocessing?: WasmPreprocessingOptions | null, encoding?: string | null, debug?: boolean | null, stripTags?: string[] | null, preserveTags?: string[] | null, skipImages?: boolean | null, urlEscapeStyle?: WasmUrlEscapeStyle | null, linkStyle?: WasmLinkStyle | null, outputFormat?: WasmOutputFormat | null, includeDocumentStructure?: boolean | null, extractImages?: boolean | null, maxImageSize?: bigint | null, captureSvg?: boolean | null, inferDimensions?: boolean | null, excludeSelectors?: string[] | null, tierStrategy?: WasmTierStrategy | null, maxDepth?: number | null);
44
+ autolinks: boolean;
45
+ brInTables: boolean;
46
+ bullets: string;
47
+ captureSvg: boolean;
48
+ get codeBlockStyle(): string;
49
+ set codeBlockStyle(value: WasmCodeBlockStyle);
50
+ codeLanguage: string;
51
+ compactTables: boolean;
52
+ convertAsInline: boolean;
53
+ debug: boolean;
54
+ defaultTitle: boolean;
55
+ encoding: string;
56
+ escapeAscii: boolean;
57
+ escapeAsterisks: boolean;
58
+ escapeMisc: boolean;
59
+ escapeUnderscores: boolean;
60
+ excludeSelectors: string[];
61
+ extractImages: boolean;
62
+ extractMetadata: boolean;
63
+ get headingStyle(): string;
64
+ set headingStyle(value: WasmHeadingStyle);
65
+ get highlightStyle(): string;
66
+ set highlightStyle(value: WasmHighlightStyle);
67
+ includeDocumentStructure: boolean;
68
+ inferDimensions: boolean;
69
+ keepInlineImagesIn: string[];
70
+ get linkStyle(): string;
71
+ set linkStyle(value: WasmLinkStyle);
72
+ get listIndentType(): string;
73
+ set listIndentType(value: WasmListIndentType);
74
+ listIndentWidth: number;
75
+ get maxDepth(): number | undefined;
76
+ set maxDepth(value: number | null | undefined);
77
+ maxImageSize: bigint;
78
+ get newlineStyle(): string;
79
+ set newlineStyle(value: WasmNewlineStyle);
80
+ get outputFormat(): string;
81
+ set outputFormat(value: WasmOutputFormat);
82
+ preprocessing: WasmPreprocessingOptions;
83
+ preserveTags: string[];
84
+ skipImages: boolean;
85
+ stripNewlines: boolean;
86
+ stripTags: string[];
87
+ strongEmSymbol: string;
88
+ subSymbol: string;
89
+ supSymbol: string;
90
+ get tierStrategy(): string;
91
+ set tierStrategy(value: WasmTierStrategy);
92
+ get urlEscapeStyle(): string;
93
+ set urlEscapeStyle(value: WasmUrlEscapeStyle);
94
+ get visitor(): WasmVisitorHandle | undefined;
95
+ set visitor(value: WasmVisitorHandle | null | undefined);
96
+ get whitespaceMode(): string;
97
+ set whitespaceMode(value: WasmWhitespaceMode);
98
+ wrap: boolean;
99
+ wrapWidth: number;
100
+ }
101
+
102
+ /**
103
+ * Partial update for `ConversionOptions`.
104
+ *
105
+ * Uses `Option<T>` fields for selective updates. Bindings use this to construct
106
+ * options from language-native types. Prefer `ConversionOptionsBuilder` for Rust code.
107
+ */
108
+ export class WasmConversionOptionsUpdate {
109
+ free(): void;
110
+ [Symbol.dispose](): void;
111
+ static default(): WasmConversionOptionsUpdate;
112
+ constructor(headingStyle?: WasmHeadingStyle | null, listIndentType?: WasmListIndentType | null, listIndentWidth?: number | null, bullets?: string | null, strongEmSymbol?: string | null, escapeAsterisks?: boolean | null, escapeUnderscores?: boolean | null, escapeMisc?: boolean | null, escapeAscii?: boolean | null, codeLanguage?: string | null, autolinks?: boolean | null, defaultTitle?: boolean | null, brInTables?: boolean | null, compactTables?: boolean | null, highlightStyle?: WasmHighlightStyle | null, extractMetadata?: boolean | null, whitespaceMode?: WasmWhitespaceMode | null, stripNewlines?: boolean | null, wrap?: boolean | null, wrapWidth?: number | null, convertAsInline?: boolean | null, subSymbol?: string | null, supSymbol?: string | null, newlineStyle?: WasmNewlineStyle | null, codeBlockStyle?: WasmCodeBlockStyle | null, keepInlineImagesIn?: string[] | null, preprocessing?: WasmPreprocessingOptionsUpdate | null, encoding?: string | null, debug?: boolean | null, stripTags?: string[] | null, preserveTags?: string[] | null, skipImages?: boolean | null, urlEscapeStyle?: WasmUrlEscapeStyle | null, linkStyle?: WasmLinkStyle | null, outputFormat?: WasmOutputFormat | null, includeDocumentStructure?: boolean | null, extractImages?: boolean | null, maxImageSize?: bigint | null, captureSvg?: boolean | null, inferDimensions?: boolean | null, maxDepth?: number | null, excludeSelectors?: string[] | null, tierStrategy?: WasmTierStrategy | null);
113
+ get autolinks(): boolean | undefined;
114
+ set autolinks(value: boolean | null | undefined);
115
+ get brInTables(): boolean | undefined;
116
+ set brInTables(value: boolean | null | undefined);
117
+ get bullets(): string | undefined;
118
+ set bullets(value: string | null | undefined);
119
+ get captureSvg(): boolean | undefined;
120
+ set captureSvg(value: boolean | null | undefined);
121
+ get codeBlockStyle(): string | undefined;
122
+ set codeBlockStyle(value: WasmCodeBlockStyle | null | undefined);
123
+ get codeLanguage(): string | undefined;
124
+ set codeLanguage(value: string | null | undefined);
125
+ get compactTables(): boolean | undefined;
126
+ set compactTables(value: boolean | null | undefined);
127
+ get convertAsInline(): boolean | undefined;
128
+ set convertAsInline(value: boolean | null | undefined);
129
+ get debug(): boolean | undefined;
130
+ set debug(value: boolean | null | undefined);
131
+ get defaultTitle(): boolean | undefined;
132
+ set defaultTitle(value: boolean | null | undefined);
133
+ get encoding(): string | undefined;
134
+ set encoding(value: string | null | undefined);
135
+ get escapeAscii(): boolean | undefined;
136
+ set escapeAscii(value: boolean | null | undefined);
137
+ get escapeAsterisks(): boolean | undefined;
138
+ set escapeAsterisks(value: boolean | null | undefined);
139
+ get escapeMisc(): boolean | undefined;
140
+ set escapeMisc(value: boolean | null | undefined);
141
+ get escapeUnderscores(): boolean | undefined;
142
+ set escapeUnderscores(value: boolean | null | undefined);
143
+ get excludeSelectors(): string[] | undefined;
144
+ set excludeSelectors(value: string[] | null | undefined);
145
+ get extractImages(): boolean | undefined;
146
+ set extractImages(value: boolean | null | undefined);
147
+ get extractMetadata(): boolean | undefined;
148
+ set extractMetadata(value: boolean | null | undefined);
149
+ get headingStyle(): string | undefined;
150
+ set headingStyle(value: WasmHeadingStyle | null | undefined);
151
+ get highlightStyle(): string | undefined;
152
+ set highlightStyle(value: WasmHighlightStyle | null | undefined);
153
+ get includeDocumentStructure(): boolean | undefined;
154
+ set includeDocumentStructure(value: boolean | null | undefined);
155
+ get inferDimensions(): boolean | undefined;
156
+ set inferDimensions(value: boolean | null | undefined);
157
+ get keepInlineImagesIn(): string[] | undefined;
158
+ set keepInlineImagesIn(value: string[] | null | undefined);
159
+ get linkStyle(): string | undefined;
160
+ set linkStyle(value: WasmLinkStyle | null | undefined);
161
+ get listIndentType(): string | undefined;
162
+ set listIndentType(value: WasmListIndentType | null | undefined);
163
+ get listIndentWidth(): number | undefined;
164
+ set listIndentWidth(value: number | null | undefined);
165
+ get maxDepth(): number | undefined;
166
+ set maxDepth(value: number | null | undefined);
167
+ get maxImageSize(): bigint | undefined;
168
+ set maxImageSize(value: bigint | null | undefined);
169
+ get newlineStyle(): string | undefined;
170
+ set newlineStyle(value: WasmNewlineStyle | null | undefined);
171
+ get outputFormat(): string | undefined;
172
+ set outputFormat(value: WasmOutputFormat | null | undefined);
173
+ get preprocessing(): WasmPreprocessingOptionsUpdate | undefined;
174
+ set preprocessing(value: WasmPreprocessingOptionsUpdate | null | undefined);
175
+ get preserveTags(): string[] | undefined;
176
+ set preserveTags(value: string[] | null | undefined);
177
+ get skipImages(): boolean | undefined;
178
+ set skipImages(value: boolean | null | undefined);
179
+ get stripNewlines(): boolean | undefined;
180
+ set stripNewlines(value: boolean | null | undefined);
181
+ get stripTags(): string[] | undefined;
182
+ set stripTags(value: string[] | null | undefined);
183
+ get strongEmSymbol(): string | undefined;
184
+ set strongEmSymbol(value: string | null | undefined);
185
+ get subSymbol(): string | undefined;
186
+ set subSymbol(value: string | null | undefined);
187
+ get supSymbol(): string | undefined;
188
+ set supSymbol(value: string | null | undefined);
189
+ get tierStrategy(): string | undefined;
190
+ set tierStrategy(value: WasmTierStrategy | null | undefined);
191
+ get urlEscapeStyle(): string | undefined;
192
+ set urlEscapeStyle(value: WasmUrlEscapeStyle | null | undefined);
193
+ get visitor(): WasmVisitorHandle | undefined;
194
+ set visitor(value: WasmVisitorHandle | null | undefined);
195
+ get whitespaceMode(): string | undefined;
196
+ set whitespaceMode(value: WasmWhitespaceMode | null | undefined);
197
+ get wrap(): boolean | undefined;
198
+ set wrap(value: boolean | null | undefined);
199
+ get wrapWidth(): number | undefined;
200
+ set wrapWidth(value: number | null | undefined);
201
+ }
202
+
203
+ /**
204
+ * The primary result of HTML conversion and extraction.
205
+ *
206
+ * Contains the converted text output, optional structured document tree,
207
+ * metadata, extracted tables, images, and processing warnings.
208
+ *
209
+ * # Example
210
+ *
211
+ * ```text
212
+ * use html_to_markdown_rs::{convert, ConversionOptions};
213
+ *
214
+ * let result = convert("<h1>Hello</h1><p>World</p>", None)?;
215
+ * assert!(result.content.is_some());
216
+ * assert!(result.warnings.is_empty());
217
+ * ```
218
+ */
219
+ export class WasmConversionResult {
220
+ free(): void;
221
+ [Symbol.dispose](): void;
222
+ static default(): WasmConversionResult;
223
+ constructor(tables?: WasmTableData[] | null, warnings?: WasmProcessingWarning[] | null, content?: string | null, document?: WasmDocumentStructure | null);
224
+ get content(): string | undefined;
225
+ set content(value: string | null | undefined);
226
+ get document(): WasmDocumentStructure | undefined;
227
+ set document(value: WasmDocumentStructure | null | undefined);
228
+ metadata: WasmHtmlMetadata;
229
+ tables: WasmTableData[];
230
+ warnings: WasmProcessingWarning[];
231
+ }
232
+
233
+ /**
234
+ * Document-level metadata extracted from `<head>` and top-level elements.
235
+ *
236
+ * Contains all metadata typically used by search engines, social media platforms,
237
+ * and browsers for document indexing and presentation.
238
+ *
239
+ * # Examples
240
+ */
241
+ export class WasmDocumentMetadata {
242
+ free(): void;
243
+ [Symbol.dispose](): void;
244
+ static default(): WasmDocumentMetadata;
245
+ constructor(keywords?: string[] | null, openGraph?: any | null, twitterCard?: any | null, metaTags?: any | null, title?: string | null, description?: string | null, author?: string | null, canonicalUrl?: string | null, baseHref?: string | null, language?: string | null, textDirection?: WasmTextDirection | null);
246
+ get author(): string | undefined;
247
+ set author(value: string | null | undefined);
248
+ get baseHref(): string | undefined;
249
+ set baseHref(value: string | null | undefined);
250
+ get canonicalUrl(): string | undefined;
251
+ set canonicalUrl(value: string | null | undefined);
252
+ get description(): string | undefined;
253
+ set description(value: string | null | undefined);
254
+ keywords: string[];
255
+ get language(): string | undefined;
256
+ set language(value: string | null | undefined);
257
+ metaTags: any;
258
+ openGraph: any;
259
+ get textDirection(): string | undefined;
260
+ set textDirection(value: WasmTextDirection | null | undefined);
261
+ get title(): string | undefined;
262
+ set title(value: string | null | undefined);
263
+ twitterCard: any;
264
+ }
265
+
266
+ /**
267
+ * A single node in the document tree.
268
+ */
269
+ export class WasmDocumentNode {
270
+ free(): void;
271
+ [Symbol.dispose](): void;
272
+ static default(): WasmDocumentNode;
273
+ constructor(id: string, content: any, children: Uint32Array, annotations: WasmTextAnnotation[], parent?: number | null, attributes?: any | null);
274
+ annotations: WasmTextAnnotation[];
275
+ get attributes(): any | undefined;
276
+ set attributes(value: any | null | undefined);
277
+ children: Uint32Array;
278
+ content: any;
279
+ id: string;
280
+ get parent(): number | undefined;
281
+ set parent(value: number | null | undefined);
282
+ }
283
+
284
+ /**
285
+ * A structured document tree representing the semantic content of an HTML document.
286
+ *
287
+ * Uses a flat node array with index-based parent/child references for efficient traversal.
288
+ */
289
+ export class WasmDocumentStructure {
290
+ free(): void;
291
+ [Symbol.dispose](): void;
292
+ static default(): WasmDocumentStructure;
293
+ constructor(nodes: WasmDocumentNode[], sourceFormat?: string | null);
294
+ nodes: WasmDocumentNode[];
295
+ get sourceFormat(): string | undefined;
296
+ set sourceFormat(value: string | null | undefined);
297
+ }
298
+
299
+ /**
300
+ * A single cell in a table grid.
301
+ */
302
+ export class WasmGridCell {
303
+ free(): void;
304
+ [Symbol.dispose](): void;
305
+ static default(): WasmGridCell;
306
+ constructor(content: string, row: number, col: number, rowSpan: number, colSpan: number, isHeader: boolean);
307
+ col: number;
308
+ colSpan: number;
309
+ content: string;
310
+ isHeader: boolean;
311
+ row: number;
312
+ rowSpan: number;
313
+ }
314
+
315
+ /**
316
+ * Header element metadata with hierarchy tracking.
317
+ *
318
+ * Captures heading elements (h1-h6) with their text content, identifiers,
319
+ * and position in the document structure.
320
+ *
321
+ * # Examples
322
+ */
323
+ export class WasmHeaderMetadata {
324
+ free(): void;
325
+ [Symbol.dispose](): void;
326
+ static default(): WasmHeaderMetadata;
327
+ /**
328
+ * Validate that the header level is within valid range (1-6).
329
+ *
330
+ * # Returns
331
+ *
332
+ * `true` if level is 1-6, `false` otherwise.
333
+ *
334
+ * # Examples
335
+ */
336
+ isValid(): boolean;
337
+ constructor(level: number, text: string, depth: number, htmlOffset: number, id?: string | null);
338
+ depth: number;
339
+ htmlOffset: number;
340
+ get id(): string | undefined;
341
+ set id(value: string | null | undefined);
342
+ level: number;
343
+ text: string;
344
+ }
345
+
346
+ /**
347
+ * Heading style options for Markdown output.
348
+ *
349
+ * Controls how headings (h1-h6) are rendered in the output Markdown.
350
+ */
351
+ export enum WasmHeadingStyle {
352
+ Underlined = 0,
353
+ Atx = 1,
354
+ AtxClosed = 2,
355
+ }
356
+
357
+ /**
358
+ * Highlight rendering style for `<mark>` elements.
359
+ *
360
+ * Controls how highlighted text is rendered in Markdown output.
361
+ */
362
+ export enum WasmHighlightStyle {
363
+ DoubleEqual = 0,
364
+ Html = 1,
365
+ Bold = 2,
366
+ None = 3,
367
+ }
368
+
369
+ /**
370
+ * Comprehensive metadata extraction result from HTML document.
371
+ *
372
+ * Contains all extracted metadata types in a single structure,
373
+ * suitable for serialization and transmission across language boundaries.
374
+ *
375
+ * # Examples
376
+ */
377
+ export class WasmHtmlMetadata {
378
+ free(): void;
379
+ [Symbol.dispose](): void;
380
+ static default(): WasmHtmlMetadata;
381
+ constructor(document?: WasmDocumentMetadata | null, headers?: WasmHeaderMetadata[] | null, links?: WasmLinkMetadata[] | null, images?: WasmImageMetadata[] | null, structuredData?: WasmStructuredData[] | null);
382
+ document: WasmDocumentMetadata;
383
+ headers: WasmHeaderMetadata[];
384
+ images: WasmImageMetadata[];
385
+ links: WasmLinkMetadata[];
386
+ structuredData: WasmStructuredData[];
387
+ }
388
+
389
+ /**
390
+ * Image dimensions in pixels.
391
+ *
392
+ * Binding-safe replacement for `(u32, u32)` tuples, which degrade to
393
+ * `Vec<Vec<String>>` when sanitized for cross-language binding generation.
394
+ * Used by both `ImageMetadata` and
395
+ * `InlineImage`.
396
+ */
397
+ export class WasmImageDimensions {
398
+ free(): void;
399
+ [Symbol.dispose](): void;
400
+ static default(): WasmImageDimensions;
401
+ constructor(width: number, height: number);
402
+ height: number;
403
+ width: number;
404
+ }
405
+
406
+ /**
407
+ * Image metadata with source and dimensions.
408
+ *
409
+ * Captures `<img>` elements and inline `<svg>` elements with metadata
410
+ * for image analysis and optimization.
411
+ *
412
+ * # Examples
413
+ */
414
+ export class WasmImageMetadata {
415
+ free(): void;
416
+ [Symbol.dispose](): void;
417
+ static default(): WasmImageMetadata;
418
+ constructor(src: string, imageType: WasmImageType, attributes: any, alt?: string | null, title?: string | null, dimensions?: WasmImageDimensions | null);
419
+ get alt(): string | undefined;
420
+ set alt(value: string | null | undefined);
421
+ attributes: any;
422
+ get dimensions(): WasmImageDimensions | undefined;
423
+ set dimensions(value: WasmImageDimensions | null | undefined);
424
+ get imageType(): string;
425
+ set imageType(value: WasmImageType);
426
+ src: string;
427
+ get title(): string | undefined;
428
+ set title(value: string | null | undefined);
429
+ }
430
+
431
+ /**
432
+ * Image source classification for proper handling and processing.
433
+ *
434
+ * Determines whether an image is embedded (data URI), inline SVG, external, or relative.
435
+ */
436
+ export enum WasmImageType {
437
+ DataUri = 0,
438
+ InlineSvg = 1,
439
+ External = 2,
440
+ Relative = 3,
441
+ }
442
+
443
+ /**
444
+ * Hyperlink metadata with categorization and attributes.
445
+ *
446
+ * Represents `<a>` elements with parsed href values, text content, and link type classification.
447
+ *
448
+ * # Examples
449
+ */
450
+ export class WasmLinkMetadata {
451
+ free(): void;
452
+ [Symbol.dispose](): void;
453
+ static default(): WasmLinkMetadata;
454
+ constructor(href: string, text: string, linkType: WasmLinkType, rel: string[], attributes: any, title?: string | null);
455
+ attributes: any;
456
+ href: string;
457
+ get linkType(): string;
458
+ set linkType(value: WasmLinkType);
459
+ rel: string[];
460
+ text: string;
461
+ get title(): string | undefined;
462
+ set title(value: string | null | undefined);
463
+ }
464
+
465
+ /**
466
+ * Link rendering style in Markdown output.
467
+ *
468
+ * Controls whether links and images use inline `[text](url)` syntax or
469
+ * reference-style `[text][1]` syntax with definitions collected at the end.
470
+ */
471
+ export enum WasmLinkStyle {
472
+ Inline = 0,
473
+ Reference = 1,
474
+ }
475
+
476
+ /**
477
+ * Link classification based on href value and document context.
478
+ *
479
+ * Used to categorize links during extraction for filtering and analysis.
480
+ */
481
+ export enum WasmLinkType {
482
+ Anchor = 0,
483
+ Internal = 1,
484
+ External = 2,
485
+ Email = 3,
486
+ Phone = 4,
487
+ Other = 5,
488
+ }
489
+
490
+ /**
491
+ * List indentation character type.
492
+ *
493
+ * Controls whether list items are indented with spaces or tabs.
494
+ */
495
+ export enum WasmListIndentType {
496
+ Spaces = 0,
497
+ Tabs = 1,
498
+ }
499
+
500
+ /**
501
+ * A single key-value metadata entry from `<head>` meta tags.
502
+ *
503
+ * Binding-safe replacement for `(String, String)` tuples used in
504
+ * `NodeContent.MetadataBlock`. Tuple pairs cannot be represented
505
+ * across language boundaries without lossy degradation.
506
+ */
507
+ export class WasmMetadataEntry {
508
+ free(): void;
509
+ [Symbol.dispose](): void;
510
+ static default(): WasmMetadataEntry;
511
+ constructor(key: string, value: string);
512
+ key: string;
513
+ value: string;
514
+ }
515
+
516
+ /**
517
+ * Line break syntax in Markdown output.
518
+ *
519
+ * Controls how soft line breaks (from `<br>` or line breaks in source) are rendered.
520
+ */
521
+ export enum WasmNewlineStyle {
522
+ Spaces = 0,
523
+ Backslash = 1,
524
+ }
525
+
526
+ /**
527
+ * The semantic content type of a document node.
528
+ *
529
+ * Uses internally tagged representation (`"node_type": "heading"`) for JSON serialization.
530
+ */
531
+ export class WasmNodeContent {
532
+ free(): void;
533
+ [Symbol.dispose](): void;
534
+ static default(): WasmNodeContent;
535
+ constructor();
536
+ get content(): string | undefined;
537
+ set content(value: string | null | undefined);
538
+ get definition(): string | undefined;
539
+ set definition(value: string | null | undefined);
540
+ get description(): string | undefined;
541
+ set description(value: string | null | undefined);
542
+ get entries(): WasmMetadataEntry[] | undefined;
543
+ set entries(value: WasmMetadataEntry[] | null | undefined);
544
+ get format(): string | undefined;
545
+ set format(value: string | null | undefined);
546
+ get grid(): WasmTableGrid | undefined;
547
+ set grid(value: WasmTableGrid | null | undefined);
548
+ get headingLevel(): number | undefined;
549
+ set headingLevel(value: number | null | undefined);
550
+ get headingText(): string | undefined;
551
+ set headingText(value: string | null | undefined);
552
+ get imageIndex(): number | undefined;
553
+ set imageIndex(value: number | null | undefined);
554
+ get label(): string | undefined;
555
+ set label(value: string | null | undefined);
556
+ get language(): string | undefined;
557
+ set language(value: string | null | undefined);
558
+ get level(): number | undefined;
559
+ set level(value: number | null | undefined);
560
+ nodeType: string;
561
+ get ordered(): boolean | undefined;
562
+ set ordered(value: boolean | null | undefined);
563
+ get src(): string | undefined;
564
+ set src(value: string | null | undefined);
565
+ get term(): string | undefined;
566
+ set term(value: string | null | undefined);
567
+ get text(): string | undefined;
568
+ set text(value: string | null | undefined);
569
+ }
570
+
571
+ /**
572
+ * Context information passed to all visitor methods.
573
+ *
574
+ * Provides comprehensive metadata about the current node being visited,
575
+ * including its type, tag name, position in the DOM tree, and parent context.
576
+ *
577
+ * ## Attributes
578
+ *
579
+ * Access attributes via `NodeContext.attributes`, which returns
580
+ * `&BTreeMap<String, String>`. When the context was built with
581
+ * `NodeContext.with_lazy_attributes` (the hot path inside the converter),
582
+ * the map is only materialized on the first call — if the visitor never reads
583
+ * attributes, the allocation is skipped.
584
+ *
585
+ * ## Lifetimes
586
+ *
587
+ * String fields use `Cow<'_, str>` so the converter can pass slices directly
588
+ * out of the parsed DOM without allocating. Visitor implementations that need
589
+ * to outlive the callback should call `NodeContext.into_owned`.
590
+ */
591
+ export class WasmNodeContext {
592
+ free(): void;
593
+ [Symbol.dispose](): void;
594
+ /**
595
+ * Return a reference to the attribute map.
596
+ *
597
+ * If the context was built with `NodeContext.with_lazy_attributes`, the
598
+ * map is materialized on the first call and cached for subsequent calls.
599
+ * If this method is never called, no allocation occurs for attributes.
600
+ */
601
+ attributes(): any;
602
+ static default(): WasmNodeContext;
603
+ /**
604
+ * Promote any borrowed fields into owned storage so the context can outlive `'a`.
605
+ */
606
+ intoOwned(): WasmNodeContext;
607
+ constructor(nodeType: WasmNodeType, tagName: string, depth: number, indexInParent: number, isInline: boolean, parentTag?: string | null);
608
+ /**
609
+ * Construct a `NodeContext` with an owned attribute map.
610
+ *
611
+ * Use this when the caller already has materialized attributes.
612
+ */
613
+ static withOwnedAttributes(node_type: WasmNodeType, tag_name: string, attributes: any, depth: number, index_in_parent: number, parent_tag: string | null | undefined, is_inline: boolean): WasmNodeContext;
614
+ depth: number;
615
+ indexInParent: number;
616
+ isInline: boolean;
617
+ get nodeType(): string;
618
+ set nodeType(value: WasmNodeType);
619
+ get parentTag(): string | undefined;
620
+ set parentTag(value: string | null | undefined);
621
+ tagName: string;
622
+ }
623
+
624
+ /**
625
+ * Node type enumeration covering all HTML element types.
626
+ *
627
+ * This enum categorizes all HTML elements that the converter recognizes,
628
+ * providing a coarse-grained classification for visitor dispatch.
629
+ */
630
+ export enum WasmNodeType {
631
+ Text = 0,
632
+ Element = 1,
633
+ Heading = 2,
634
+ Paragraph = 3,
635
+ Div = 4,
636
+ Blockquote = 5,
637
+ Pre = 6,
638
+ Hr = 7,
639
+ List = 8,
640
+ ListItem = 9,
641
+ DefinitionList = 10,
642
+ DefinitionTerm = 11,
643
+ DefinitionDescription = 12,
644
+ Table = 13,
645
+ TableRow = 14,
646
+ TableCell = 15,
647
+ TableHeader = 16,
648
+ TableBody = 17,
649
+ TableHead = 18,
650
+ TableFoot = 19,
651
+ Link = 20,
652
+ Image = 21,
653
+ Strong = 22,
654
+ Em = 23,
655
+ Code = 24,
656
+ Strikethrough = 25,
657
+ Underline = 26,
658
+ Subscript = 27,
659
+ Superscript = 28,
660
+ Mark = 29,
661
+ Small = 30,
662
+ Br = 31,
663
+ Span = 32,
664
+ Article = 33,
665
+ Section = 34,
666
+ Nav = 35,
667
+ Aside = 36,
668
+ Header = 37,
669
+ Footer = 38,
670
+ Main = 39,
671
+ Figure = 40,
672
+ Figcaption = 41,
673
+ Time = 42,
674
+ Details = 43,
675
+ Summary = 44,
676
+ Form = 45,
677
+ Input = 46,
678
+ Select = 47,
679
+ Option = 48,
680
+ Button = 49,
681
+ Textarea = 50,
682
+ Label = 51,
683
+ Fieldset = 52,
684
+ Legend = 53,
685
+ Audio = 54,
686
+ Video = 55,
687
+ Picture = 56,
688
+ Source = 57,
689
+ Iframe = 58,
690
+ Svg = 59,
691
+ Canvas = 60,
692
+ Ruby = 61,
693
+ Rt = 62,
694
+ Rp = 63,
695
+ Abbr = 64,
696
+ Kbd = 65,
697
+ Samp = 66,
698
+ Var = 67,
699
+ Cite = 68,
700
+ Q = 69,
701
+ Del = 70,
702
+ Ins = 71,
703
+ Data = 72,
704
+ Meter = 73,
705
+ Progress = 74,
706
+ Output = 75,
707
+ Template = 76,
708
+ Slot = 77,
709
+ Html = 78,
710
+ Head = 79,
711
+ Body = 80,
712
+ Title = 81,
713
+ Meta = 82,
714
+ LinkTag = 83,
715
+ Style = 84,
716
+ Script = 85,
717
+ Base = 86,
718
+ Custom = 87,
719
+ }
720
+
721
+ /**
722
+ * Output format for conversion.
723
+ *
724
+ * Specifies the target markup language format for the conversion output.
725
+ */
726
+ export enum WasmOutputFormat {
727
+ Markdown = 0,
728
+ Djot = 1,
729
+ Plain = 2,
730
+ }
731
+
732
+ /**
733
+ * HTML preprocessing options for document cleanup before conversion.
734
+ */
735
+ export class WasmPreprocessingOptions {
736
+ free(): void;
737
+ [Symbol.dispose](): void;
738
+ static default(): WasmPreprocessingOptions;
739
+ constructor(enabled?: boolean | null, preset?: WasmPreprocessingPreset | null, removeNavigation?: boolean | null, removeForms?: boolean | null);
740
+ enabled: boolean;
741
+ get preset(): string;
742
+ set preset(value: WasmPreprocessingPreset);
743
+ removeForms: boolean;
744
+ removeNavigation: boolean;
745
+ }
746
+
747
+ /**
748
+ * Partial update for `PreprocessingOptions`.
749
+ *
750
+ * This struct uses `Option<T>` to represent optional fields that can be selectively updated.
751
+ * Only specified fields (values) will override existing options; undefined values leave the
752
+ * corresponding fields unchanged when applied via `PreprocessingOptions.apply_update`.
753
+ */
754
+ export class WasmPreprocessingOptionsUpdate {
755
+ free(): void;
756
+ [Symbol.dispose](): void;
757
+ static default(): WasmPreprocessingOptionsUpdate;
758
+ constructor(enabled?: boolean | null, preset?: WasmPreprocessingPreset | null, removeNavigation?: boolean | null, removeForms?: boolean | null);
759
+ get enabled(): boolean | undefined;
760
+ set enabled(value: boolean | null | undefined);
761
+ get preset(): string | undefined;
762
+ set preset(value: WasmPreprocessingPreset | null | undefined);
763
+ get removeForms(): boolean | undefined;
764
+ set removeForms(value: boolean | null | undefined);
765
+ get removeNavigation(): boolean | undefined;
766
+ set removeNavigation(value: boolean | null | undefined);
767
+ }
768
+
769
+ /**
770
+ * HTML preprocessing aggressiveness level.
771
+ *
772
+ * Controls the extent of cleanup performed before conversion. Higher levels remove more elements.
773
+ */
774
+ export enum WasmPreprocessingPreset {
775
+ Minimal = 0,
776
+ Standard = 1,
777
+ Aggressive = 2,
778
+ }
779
+
780
+ /**
781
+ * A non-fatal diagnostic produced during HTML conversion.
782
+ *
783
+ * Warnings indicate that conversion completed but some content may have been handled
784
+ * differently than expected — for example, an image that could not be extracted, a truncated
785
+ * input, or malformed HTML that was repaired with best-effort parsing.
786
+ *
787
+ * Conversion always succeeds (returns `ConversionResult`) even when warnings are
788
+ * present. Callers should inspect `warnings` and decide how to
789
+ * handle them based on their tolerance for partial results:
790
+ *
791
+ * - **Logging pipelines**: emit each warning at `WARN` level and continue.
792
+ * - **Strict pipelines**: treat any warning as a hard error by checking
793
+ * `result.warnings.is_empty()` before using the output.
794
+ *
795
+ * See `WarningKind` for the full taxonomy of warning categories.
796
+ */
797
+ export class WasmProcessingWarning {
798
+ free(): void;
799
+ [Symbol.dispose](): void;
800
+ static default(): WasmProcessingWarning;
801
+ constructor(message: string, kind: WasmWarningKind);
802
+ get kind(): string;
803
+ set kind(value: WasmWarningKind);
804
+ message: string;
805
+ }
806
+
807
+ /**
808
+ * Structured data block (JSON-LD, Microdata, or `RDFa`).
809
+ *
810
+ * Represents machine-readable structured data found in the document.
811
+ * JSON-LD blocks are collected as raw JSON strings for flexibility.
812
+ *
813
+ * # Examples
814
+ */
815
+ export class WasmStructuredData {
816
+ free(): void;
817
+ [Symbol.dispose](): void;
818
+ static default(): WasmStructuredData;
819
+ constructor(dataType: WasmStructuredDataType, rawJson: string, schemaType?: string | null);
820
+ get dataType(): string;
821
+ set dataType(value: WasmStructuredDataType);
822
+ rawJson: string;
823
+ get schemaType(): string | undefined;
824
+ set schemaType(value: string | null | undefined);
825
+ }
826
+
827
+ /**
828
+ * Structured data format type.
829
+ *
830
+ * Identifies the schema/format used for structured data markup.
831
+ */
832
+ export enum WasmStructuredDataType {
833
+ JsonLd = 0,
834
+ Microdata = 1,
835
+ RDFa = 2,
836
+ }
837
+
838
+ /**
839
+ * A top-level extracted table with both structured data and markdown representation.
840
+ */
841
+ export class WasmTableData {
842
+ free(): void;
843
+ [Symbol.dispose](): void;
844
+ static default(): WasmTableData;
845
+ constructor(grid: WasmTableGrid, markdown: string);
846
+ grid: WasmTableGrid;
847
+ markdown: string;
848
+ }
849
+
850
+ /**
851
+ * A structured table grid with cell-level data including spans.
852
+ */
853
+ export class WasmTableGrid {
854
+ free(): void;
855
+ [Symbol.dispose](): void;
856
+ static default(): WasmTableGrid;
857
+ constructor(rows?: number | null, cols?: number | null, cells?: WasmGridCell[] | null);
858
+ cells: WasmGridCell[];
859
+ cols: number;
860
+ rows: number;
861
+ }
862
+
863
+ /**
864
+ * A styling or semantic annotation that applies to a byte range within a node's text.
865
+ *
866
+ * Unlike `DocumentNode`, which captures block-level structure (headings, paragraphs, etc.),
867
+ * a `TextAnnotation` describes inline-level markup — bold, italic, links, code spans, and
868
+ * similar — that spans a contiguous run of bytes inside `DocumentNode.content`'s text field.
869
+ *
870
+ * Byte offsets (`start`..`end`) are into the UTF-8 encoded text of the parent node. The range
871
+ * is half-open: `start` is inclusive and `end` is exclusive.
872
+ *
873
+ * Multiple annotations on the same node can overlap (e.g. bold-italic text), and they are
874
+ * stored in the order they are encountered during DOM traversal.
875
+ *
876
+ * See `AnnotationKind` for the full list of supported annotation types.
877
+ */
878
+ export class WasmTextAnnotation {
879
+ free(): void;
880
+ [Symbol.dispose](): void;
881
+ static default(): WasmTextAnnotation;
882
+ constructor(start: number, end: number, kind: any);
883
+ end: number;
884
+ kind: any;
885
+ start: number;
886
+ }
887
+
888
+ /**
889
+ * Text directionality of document content.
890
+ *
891
+ * Corresponds to the HTML `dir` attribute and `bdi` element directionality.
892
+ */
893
+ export enum WasmTextDirection {
894
+ LeftToRight = 0,
895
+ RightToLeft = 1,
896
+ Auto = 2,
897
+ }
898
+
899
+ /**
900
+ * Controls which conversion tier is used.
901
+ */
902
+ export enum WasmTierStrategy {
903
+ Auto = 0,
904
+ Tier2 = 1,
905
+ Tier1 = 2,
906
+ }
907
+
908
+ /**
909
+ * URL encoding strategy for link and image destinations.
910
+ *
911
+ * Controls how special characters in URL destinations are handled when they
912
+ * require escaping to produce valid Markdown.
913
+ *
914
+ * The `Angle` variant (default) wraps the destination in angle brackets:
915
+ * `[text](<url with spaces>)`. This is the CommonMark-specified escape hatch
916
+ * but breaks when the URL itself contains `>`.
917
+ *
918
+ * The `Percent` variant percent-encodes every character that is not an RFC 3986
919
+ * unreserved character or `/`, producing a destination safe for all Markdown
920
+ * parsers: `[text](url%20with%20spaces)`.
921
+ */
922
+ export enum WasmUrlEscapeStyle {
923
+ Angle = 0,
924
+ Percent = 1,
925
+ }
926
+
927
+ /**
928
+ * Result of a visitor callback.
929
+ *
930
+ * Allows visitors to control the conversion flow by either proceeding
931
+ * with default behavior, providing custom output, skipping elements,
932
+ * preserving HTML, or signaling errors.
933
+ */
934
+ export enum WasmVisitResult {
935
+ Continue = 0,
936
+ Custom = 1,
937
+ Skip = 2,
938
+ PreserveHtml = 3,
939
+ Error = 4,
940
+ }
941
+
942
+ /**
943
+ * Shareable, thread-safe handle to a user-provided HTML visitor implementation.
944
+ *
945
+ * Pass an instance wrapped in this handle to `ConversionOptions` to
946
+ * customise how the HTML document is traversed and converted to Markdown.
947
+ * The handle may be cloned and shared across threads without additional
948
+ * synchronisation on the caller's side.
949
+ */
950
+ export class WasmVisitorHandle {
951
+ free(): void;
952
+ [Symbol.dispose](): void;
953
+ constructor(visitor: any);
954
+ }
955
+
956
+ /**
957
+ * Categories of processing warnings.
958
+ */
959
+ export enum WasmWarningKind {
960
+ ImageExtractionFailed = 0,
961
+ EncodingFallback = 1,
962
+ TruncatedInput = 2,
963
+ MalformedHtml = 3,
964
+ SanitizationApplied = 4,
965
+ DepthLimitExceeded = 5,
966
+ }
967
+
968
+ /**
969
+ * Whitespace handling strategy during conversion.
970
+ *
971
+ * Determines how sequences of whitespace characters (spaces, tabs, newlines) are processed.
972
+ */
973
+ export enum WasmWhitespaceMode {
974
+ Normalized = 0,
975
+ Strict = 1,
976
+ }
977
+
978
+ /**
979
+ * Convert HTML to Markdown, Djot, or plain text.
980
+ *
981
+ * Returns a `ConversionResult` with converted content plus optional metadata,
982
+ * document structure, table data, inline images, and warnings depending on the
983
+ * enabled features and conversion options.
984
+ *
985
+ * # Arguments
986
+ *
987
+ * * `html` — the HTML string to convert.
988
+ * * `options` — conversion options. Rust accepts bare `ConversionOptions`,
989
+ * `Some(options)`, or `None`. Language bindings expose the same option
990
+ * fields through native constructors or optional parameters.
991
+ *
992
+ * # Example
993
+ *
994
+ *
995
+ * # Errors
996
+ *
997
+ * Returns an error if HTML parsing fails or if the input contains invalid UTF-8.
998
+ */
999
+ export function convert(html: string, options?: WasmConversionOptions | null): WasmConversionResult;
1000
+
1001
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
1002
+
1003
+ export interface InitOutput {
1004
+ readonly memory: WebAssembly.Memory;
1005
+ readonly __wbg_wasmannotationkind_free: (a: number, b: number) => void;
1006
+ readonly __wbg_wasmconversionoptions_free: (a: number, b: number) => void;
1007
+ readonly __wbg_wasmconversionoptionsupdate_free: (a: number, b: number) => void;
1008
+ readonly __wbg_wasmconversionresult_free: (a: number, b: number) => void;
1009
+ readonly __wbg_wasmdocumentmetadata_free: (a: number, b: number) => void;
1010
+ readonly __wbg_wasmdocumentnode_free: (a: number, b: number) => void;
1011
+ readonly __wbg_wasmdocumentstructure_free: (a: number, b: number) => void;
1012
+ readonly __wbg_wasmgridcell_free: (a: number, b: number) => void;
1013
+ readonly __wbg_wasmheadermetadata_free: (a: number, b: number) => void;
1014
+ readonly __wbg_wasmhtmlmetadata_free: (a: number, b: number) => void;
1015
+ readonly __wbg_wasmimagedimensions_free: (a: number, b: number) => void;
1016
+ readonly __wbg_wasmimagemetadata_free: (a: number, b: number) => void;
1017
+ readonly __wbg_wasmlinkmetadata_free: (a: number, b: number) => void;
1018
+ readonly __wbg_wasmmetadataentry_free: (a: number, b: number) => void;
1019
+ readonly __wbg_wasmnodecontent_free: (a: number, b: number) => void;
1020
+ readonly __wbg_wasmpreprocessingoptions_free: (a: number, b: number) => void;
1021
+ readonly __wbg_wasmprocessingwarning_free: (a: number, b: number) => void;
1022
+ readonly __wbg_wasmstructureddata_free: (a: number, b: number) => void;
1023
+ readonly __wbg_wasmtabledata_free: (a: number, b: number) => void;
1024
+ readonly __wbg_wasmtablegrid_free: (a: number, b: number) => void;
1025
+ readonly __wbg_wasmtextannotation_free: (a: number, b: number) => void;
1026
+ readonly __wbg_wasmvisitorhandle_free: (a: number, b: number) => void;
1027
+ readonly convert: (a: number, b: number, c: number, d: number) => void;
1028
+ readonly wasmannotationkind_annotationType: (a: number, b: number) => void;
1029
+ readonly wasmannotationkind_default: () => number;
1030
+ readonly wasmannotationkind_set_annotationType: (a: number, b: number, c: number) => void;
1031
+ readonly wasmannotationkind_set_title: (a: number, b: number, c: number) => void;
1032
+ readonly wasmannotationkind_set_url: (a: number, b: number, c: number) => void;
1033
+ readonly wasmannotationkind_title: (a: number, b: number) => void;
1034
+ readonly wasmannotationkind_url: (a: number, b: number) => void;
1035
+ readonly wasmconversionoptions_autolinks: (a: number) => number;
1036
+ readonly wasmconversionoptions_brInTables: (a: number) => number;
1037
+ readonly wasmconversionoptions_bullets: (a: number, b: number) => void;
1038
+ readonly wasmconversionoptions_captureSvg: (a: number) => number;
1039
+ readonly wasmconversionoptions_codeBlockStyle: (a: number, b: number) => void;
1040
+ readonly wasmconversionoptions_codeLanguage: (a: number, b: number) => void;
1041
+ readonly wasmconversionoptions_compactTables: (a: number) => number;
1042
+ readonly wasmconversionoptions_convertAsInline: (a: number) => number;
1043
+ readonly wasmconversionoptions_debug: (a: number) => number;
1044
+ readonly wasmconversionoptions_default: () => number;
1045
+ readonly wasmconversionoptions_defaultTitle: (a: number) => number;
1046
+ readonly wasmconversionoptions_encoding: (a: number, b: number) => void;
1047
+ readonly wasmconversionoptions_escapeAscii: (a: number) => number;
1048
+ readonly wasmconversionoptions_escapeAsterisks: (a: number) => number;
1049
+ readonly wasmconversionoptions_escapeMisc: (a: number) => number;
1050
+ readonly wasmconversionoptions_escapeUnderscores: (a: number) => number;
1051
+ readonly wasmconversionoptions_excludeSelectors: (a: number, b: number) => void;
1052
+ readonly wasmconversionoptions_extractImages: (a: number) => number;
1053
+ readonly wasmconversionoptions_extractMetadata: (a: number) => number;
1054
+ readonly wasmconversionoptions_headingStyle: (a: number, b: number) => void;
1055
+ readonly wasmconversionoptions_highlightStyle: (a: number, b: number) => void;
1056
+ readonly wasmconversionoptions_includeDocumentStructure: (a: number) => number;
1057
+ readonly wasmconversionoptions_inferDimensions: (a: number) => number;
1058
+ readonly wasmconversionoptions_keepInlineImagesIn: (a: number, b: number) => void;
1059
+ readonly wasmconversionoptions_linkStyle: (a: number, b: number) => void;
1060
+ readonly wasmconversionoptions_listIndentType: (a: number, b: number) => void;
1061
+ readonly wasmconversionoptions_listIndentWidth: (a: number) => number;
1062
+ readonly wasmconversionoptions_maxDepth: (a: number) => number;
1063
+ readonly wasmconversionoptions_maxImageSize: (a: number) => bigint;
1064
+ readonly wasmconversionoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: number, v1: bigint, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number) => number;
1065
+ readonly wasmconversionoptions_newlineStyle: (a: number, b: number) => void;
1066
+ readonly wasmconversionoptions_outputFormat: (a: number, b: number) => void;
1067
+ readonly wasmconversionoptions_preprocessing: (a: number) => number;
1068
+ readonly wasmconversionoptions_preserveTags: (a: number, b: number) => void;
1069
+ readonly wasmconversionoptions_set_autolinks: (a: number, b: number) => void;
1070
+ readonly wasmconversionoptions_set_brInTables: (a: number, b: number) => void;
1071
+ readonly wasmconversionoptions_set_bullets: (a: number, b: number, c: number) => void;
1072
+ readonly wasmconversionoptions_set_captureSvg: (a: number, b: number) => void;
1073
+ readonly wasmconversionoptions_set_codeBlockStyle: (a: number, b: number) => void;
1074
+ readonly wasmconversionoptions_set_codeLanguage: (a: number, b: number, c: number) => void;
1075
+ readonly wasmconversionoptions_set_compactTables: (a: number, b: number) => void;
1076
+ readonly wasmconversionoptions_set_convertAsInline: (a: number, b: number) => void;
1077
+ readonly wasmconversionoptions_set_debug: (a: number, b: number) => void;
1078
+ readonly wasmconversionoptions_set_defaultTitle: (a: number, b: number) => void;
1079
+ readonly wasmconversionoptions_set_encoding: (a: number, b: number, c: number) => void;
1080
+ readonly wasmconversionoptions_set_escapeAscii: (a: number, b: number) => void;
1081
+ readonly wasmconversionoptions_set_escapeAsterisks: (a: number, b: number) => void;
1082
+ readonly wasmconversionoptions_set_escapeMisc: (a: number, b: number) => void;
1083
+ readonly wasmconversionoptions_set_escapeUnderscores: (a: number, b: number) => void;
1084
+ readonly wasmconversionoptions_set_excludeSelectors: (a: number, b: number, c: number) => void;
1085
+ readonly wasmconversionoptions_set_extractImages: (a: number, b: number) => void;
1086
+ readonly wasmconversionoptions_set_extractMetadata: (a: number, b: number) => void;
1087
+ readonly wasmconversionoptions_set_headingStyle: (a: number, b: number) => void;
1088
+ readonly wasmconversionoptions_set_highlightStyle: (a: number, b: number) => void;
1089
+ readonly wasmconversionoptions_set_includeDocumentStructure: (a: number, b: number) => void;
1090
+ readonly wasmconversionoptions_set_inferDimensions: (a: number, b: number) => void;
1091
+ readonly wasmconversionoptions_set_keepInlineImagesIn: (a: number, b: number, c: number) => void;
1092
+ readonly wasmconversionoptions_set_linkStyle: (a: number, b: number) => void;
1093
+ readonly wasmconversionoptions_set_listIndentType: (a: number, b: number) => void;
1094
+ readonly wasmconversionoptions_set_listIndentWidth: (a: number, b: number) => void;
1095
+ readonly wasmconversionoptions_set_maxDepth: (a: number, b: number) => void;
1096
+ readonly wasmconversionoptions_set_maxImageSize: (a: number, b: bigint) => void;
1097
+ readonly wasmconversionoptions_set_newlineStyle: (a: number, b: number) => void;
1098
+ readonly wasmconversionoptions_set_outputFormat: (a: number, b: number) => void;
1099
+ readonly wasmconversionoptions_set_preprocessing: (a: number, b: number) => void;
1100
+ readonly wasmconversionoptions_set_preserveTags: (a: number, b: number, c: number) => void;
1101
+ readonly wasmconversionoptions_set_skipImages: (a: number, b: number) => void;
1102
+ readonly wasmconversionoptions_set_stripNewlines: (a: number, b: number) => void;
1103
+ readonly wasmconversionoptions_set_stripTags: (a: number, b: number, c: number) => void;
1104
+ readonly wasmconversionoptions_set_strongEmSymbol: (a: number, b: number, c: number) => void;
1105
+ readonly wasmconversionoptions_set_subSymbol: (a: number, b: number, c: number) => void;
1106
+ readonly wasmconversionoptions_set_supSymbol: (a: number, b: number, c: number) => void;
1107
+ readonly wasmconversionoptions_set_tierStrategy: (a: number, b: number) => void;
1108
+ readonly wasmconversionoptions_set_urlEscapeStyle: (a: number, b: number) => void;
1109
+ readonly wasmconversionoptions_set_visitor: (a: number, b: number) => void;
1110
+ readonly wasmconversionoptions_set_whitespaceMode: (a: number, b: number) => void;
1111
+ readonly wasmconversionoptions_set_wrap: (a: number, b: number) => void;
1112
+ readonly wasmconversionoptions_set_wrapWidth: (a: number, b: number) => void;
1113
+ readonly wasmconversionoptions_skipImages: (a: number) => number;
1114
+ readonly wasmconversionoptions_stripNewlines: (a: number) => number;
1115
+ readonly wasmconversionoptions_stripTags: (a: number, b: number) => void;
1116
+ readonly wasmconversionoptions_strongEmSymbol: (a: number, b: number) => void;
1117
+ readonly wasmconversionoptions_subSymbol: (a: number, b: number) => void;
1118
+ readonly wasmconversionoptions_supSymbol: (a: number, b: number) => void;
1119
+ readonly wasmconversionoptions_tierStrategy: (a: number, b: number) => void;
1120
+ readonly wasmconversionoptions_urlEscapeStyle: (a: number, b: number) => void;
1121
+ readonly wasmconversionoptions_visitor: (a: number) => number;
1122
+ readonly wasmconversionoptions_whitespaceMode: (a: number, b: number) => void;
1123
+ readonly wasmconversionoptions_wrap: (a: number) => number;
1124
+ readonly wasmconversionoptions_wrapWidth: (a: number) => number;
1125
+ readonly wasmconversionoptionsupdate_autolinks: (a: number) => number;
1126
+ readonly wasmconversionoptionsupdate_brInTables: (a: number) => number;
1127
+ readonly wasmconversionoptionsupdate_bullets: (a: number, b: number) => void;
1128
+ readonly wasmconversionoptionsupdate_captureSvg: (a: number) => number;
1129
+ readonly wasmconversionoptionsupdate_codeBlockStyle: (a: number, b: number) => void;
1130
+ readonly wasmconversionoptionsupdate_codeLanguage: (a: number, b: number) => void;
1131
+ readonly wasmconversionoptionsupdate_compactTables: (a: number) => number;
1132
+ readonly wasmconversionoptionsupdate_convertAsInline: (a: number) => number;
1133
+ readonly wasmconversionoptionsupdate_debug: (a: number) => number;
1134
+ readonly wasmconversionoptionsupdate_default: () => number;
1135
+ readonly wasmconversionoptionsupdate_defaultTitle: (a: number) => number;
1136
+ readonly wasmconversionoptionsupdate_encoding: (a: number, b: number) => void;
1137
+ readonly wasmconversionoptionsupdate_escapeAscii: (a: number) => number;
1138
+ readonly wasmconversionoptionsupdate_escapeAsterisks: (a: number) => number;
1139
+ readonly wasmconversionoptionsupdate_escapeMisc: (a: number) => number;
1140
+ readonly wasmconversionoptionsupdate_escapeUnderscores: (a: number) => number;
1141
+ readonly wasmconversionoptionsupdate_excludeSelectors: (a: number, b: number) => void;
1142
+ readonly wasmconversionoptionsupdate_extractImages: (a: number) => number;
1143
+ readonly wasmconversionoptionsupdate_extractMetadata: (a: number) => number;
1144
+ readonly wasmconversionoptionsupdate_headingStyle: (a: number, b: number) => void;
1145
+ readonly wasmconversionoptionsupdate_highlightStyle: (a: number, b: number) => void;
1146
+ readonly wasmconversionoptionsupdate_includeDocumentStructure: (a: number) => number;
1147
+ readonly wasmconversionoptionsupdate_inferDimensions: (a: number) => number;
1148
+ readonly wasmconversionoptionsupdate_keepInlineImagesIn: (a: number, b: number) => void;
1149
+ readonly wasmconversionoptionsupdate_linkStyle: (a: number, b: number) => void;
1150
+ readonly wasmconversionoptionsupdate_listIndentType: (a: number, b: number) => void;
1151
+ readonly wasmconversionoptionsupdate_listIndentWidth: (a: number) => number;
1152
+ readonly wasmconversionoptionsupdate_maxDepth: (a: number) => number;
1153
+ readonly wasmconversionoptionsupdate_maxImageSize: (a: number, b: number) => void;
1154
+ readonly wasmconversionoptionsupdate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: number, v1: bigint, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number) => number;
1155
+ readonly wasmconversionoptionsupdate_newlineStyle: (a: number, b: number) => void;
1156
+ readonly wasmconversionoptionsupdate_outputFormat: (a: number, b: number) => void;
1157
+ readonly wasmconversionoptionsupdate_preprocessing: (a: number) => number;
1158
+ readonly wasmconversionoptionsupdate_preserveTags: (a: number, b: number) => void;
1159
+ readonly wasmconversionoptionsupdate_set_autolinks: (a: number, b: number) => void;
1160
+ readonly wasmconversionoptionsupdate_set_brInTables: (a: number, b: number) => void;
1161
+ readonly wasmconversionoptionsupdate_set_bullets: (a: number, b: number, c: number) => void;
1162
+ readonly wasmconversionoptionsupdate_set_captureSvg: (a: number, b: number) => void;
1163
+ readonly wasmconversionoptionsupdate_set_codeBlockStyle: (a: number, b: number) => void;
1164
+ readonly wasmconversionoptionsupdate_set_codeLanguage: (a: number, b: number, c: number) => void;
1165
+ readonly wasmconversionoptionsupdate_set_compactTables: (a: number, b: number) => void;
1166
+ readonly wasmconversionoptionsupdate_set_convertAsInline: (a: number, b: number) => void;
1167
+ readonly wasmconversionoptionsupdate_set_debug: (a: number, b: number) => void;
1168
+ readonly wasmconversionoptionsupdate_set_defaultTitle: (a: number, b: number) => void;
1169
+ readonly wasmconversionoptionsupdate_set_encoding: (a: number, b: number, c: number) => void;
1170
+ readonly wasmconversionoptionsupdate_set_escapeAscii: (a: number, b: number) => void;
1171
+ readonly wasmconversionoptionsupdate_set_escapeAsterisks: (a: number, b: number) => void;
1172
+ readonly wasmconversionoptionsupdate_set_escapeMisc: (a: number, b: number) => void;
1173
+ readonly wasmconversionoptionsupdate_set_escapeUnderscores: (a: number, b: number) => void;
1174
+ readonly wasmconversionoptionsupdate_set_excludeSelectors: (a: number, b: number, c: number) => void;
1175
+ readonly wasmconversionoptionsupdate_set_extractImages: (a: number, b: number) => void;
1176
+ readonly wasmconversionoptionsupdate_set_extractMetadata: (a: number, b: number) => void;
1177
+ readonly wasmconversionoptionsupdate_set_headingStyle: (a: number, b: number) => void;
1178
+ readonly wasmconversionoptionsupdate_set_highlightStyle: (a: number, b: number) => void;
1179
+ readonly wasmconversionoptionsupdate_set_includeDocumentStructure: (a: number, b: number) => void;
1180
+ readonly wasmconversionoptionsupdate_set_inferDimensions: (a: number, b: number) => void;
1181
+ readonly wasmconversionoptionsupdate_set_keepInlineImagesIn: (a: number, b: number, c: number) => void;
1182
+ readonly wasmconversionoptionsupdate_set_linkStyle: (a: number, b: number) => void;
1183
+ readonly wasmconversionoptionsupdate_set_listIndentType: (a: number, b: number) => void;
1184
+ readonly wasmconversionoptionsupdate_set_listIndentWidth: (a: number, b: number) => void;
1185
+ readonly wasmconversionoptionsupdate_set_maxDepth: (a: number, b: number) => void;
1186
+ readonly wasmconversionoptionsupdate_set_maxImageSize: (a: number, b: number, c: bigint) => void;
1187
+ readonly wasmconversionoptionsupdate_set_newlineStyle: (a: number, b: number) => void;
1188
+ readonly wasmconversionoptionsupdate_set_outputFormat: (a: number, b: number) => void;
1189
+ readonly wasmconversionoptionsupdate_set_preprocessing: (a: number, b: number) => void;
1190
+ readonly wasmconversionoptionsupdate_set_preserveTags: (a: number, b: number, c: number) => void;
1191
+ readonly wasmconversionoptionsupdate_set_skipImages: (a: number, b: number) => void;
1192
+ readonly wasmconversionoptionsupdate_set_stripNewlines: (a: number, b: number) => void;
1193
+ readonly wasmconversionoptionsupdate_set_stripTags: (a: number, b: number, c: number) => void;
1194
+ readonly wasmconversionoptionsupdate_set_strongEmSymbol: (a: number, b: number, c: number) => void;
1195
+ readonly wasmconversionoptionsupdate_set_subSymbol: (a: number, b: number, c: number) => void;
1196
+ readonly wasmconversionoptionsupdate_set_supSymbol: (a: number, b: number, c: number) => void;
1197
+ readonly wasmconversionoptionsupdate_set_tierStrategy: (a: number, b: number) => void;
1198
+ readonly wasmconversionoptionsupdate_set_urlEscapeStyle: (a: number, b: number) => void;
1199
+ readonly wasmconversionoptionsupdate_set_visitor: (a: number, b: number) => void;
1200
+ readonly wasmconversionoptionsupdate_set_whitespaceMode: (a: number, b: number) => void;
1201
+ readonly wasmconversionoptionsupdate_set_wrap: (a: number, b: number) => void;
1202
+ readonly wasmconversionoptionsupdate_set_wrapWidth: (a: number, b: number) => void;
1203
+ readonly wasmconversionoptionsupdate_skipImages: (a: number) => number;
1204
+ readonly wasmconversionoptionsupdate_stripNewlines: (a: number) => number;
1205
+ readonly wasmconversionoptionsupdate_stripTags: (a: number, b: number) => void;
1206
+ readonly wasmconversionoptionsupdate_strongEmSymbol: (a: number, b: number) => void;
1207
+ readonly wasmconversionoptionsupdate_subSymbol: (a: number, b: number) => void;
1208
+ readonly wasmconversionoptionsupdate_supSymbol: (a: number, b: number) => void;
1209
+ readonly wasmconversionoptionsupdate_tierStrategy: (a: number, b: number) => void;
1210
+ readonly wasmconversionoptionsupdate_urlEscapeStyle: (a: number, b: number) => void;
1211
+ readonly wasmconversionoptionsupdate_visitor: (a: number) => number;
1212
+ readonly wasmconversionoptionsupdate_whitespaceMode: (a: number, b: number) => void;
1213
+ readonly wasmconversionoptionsupdate_wrap: (a: number) => number;
1214
+ readonly wasmconversionoptionsupdate_wrapWidth: (a: number) => number;
1215
+ readonly wasmconversionresult_content: (a: number, b: number) => void;
1216
+ readonly wasmconversionresult_default: () => number;
1217
+ readonly wasmconversionresult_document: (a: number) => number;
1218
+ readonly wasmconversionresult_metadata: (a: number) => number;
1219
+ readonly wasmconversionresult_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
1220
+ readonly wasmconversionresult_set_content: (a: number, b: number, c: number) => void;
1221
+ readonly wasmconversionresult_set_document: (a: number, b: number) => void;
1222
+ readonly wasmconversionresult_set_metadata: (a: number, b: number) => void;
1223
+ readonly wasmconversionresult_set_tables: (a: number, b: number, c: number) => void;
1224
+ readonly wasmconversionresult_set_warnings: (a: number, b: number, c: number) => void;
1225
+ readonly wasmconversionresult_tables: (a: number, b: number) => void;
1226
+ readonly wasmconversionresult_warnings: (a: number, b: number) => void;
1227
+ readonly wasmdocumentmetadata_author: (a: number, b: number) => void;
1228
+ readonly wasmdocumentmetadata_baseHref: (a: number, b: number) => void;
1229
+ readonly wasmdocumentmetadata_canonicalUrl: (a: number, b: number) => void;
1230
+ readonly wasmdocumentmetadata_default: () => number;
1231
+ readonly wasmdocumentmetadata_description: (a: number, b: number) => void;
1232
+ readonly wasmdocumentmetadata_keywords: (a: number, b: number) => void;
1233
+ readonly wasmdocumentmetadata_language: (a: number, b: number) => void;
1234
+ readonly wasmdocumentmetadata_metaTags: (a: number) => number;
1235
+ readonly wasmdocumentmetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number) => number;
1236
+ readonly wasmdocumentmetadata_openGraph: (a: number) => number;
1237
+ readonly wasmdocumentmetadata_set_author: (a: number, b: number, c: number) => void;
1238
+ readonly wasmdocumentmetadata_set_baseHref: (a: number, b: number, c: number) => void;
1239
+ readonly wasmdocumentmetadata_set_canonicalUrl: (a: number, b: number, c: number) => void;
1240
+ readonly wasmdocumentmetadata_set_description: (a: number, b: number, c: number) => void;
1241
+ readonly wasmdocumentmetadata_set_keywords: (a: number, b: number, c: number) => void;
1242
+ readonly wasmdocumentmetadata_set_language: (a: number, b: number, c: number) => void;
1243
+ readonly wasmdocumentmetadata_set_metaTags: (a: number, b: number) => void;
1244
+ readonly wasmdocumentmetadata_set_openGraph: (a: number, b: number) => void;
1245
+ readonly wasmdocumentmetadata_set_textDirection: (a: number, b: number) => void;
1246
+ readonly wasmdocumentmetadata_set_title: (a: number, b: number, c: number) => void;
1247
+ readonly wasmdocumentmetadata_set_twitterCard: (a: number, b: number) => void;
1248
+ readonly wasmdocumentmetadata_textDirection: (a: number, b: number) => void;
1249
+ readonly wasmdocumentmetadata_title: (a: number, b: number) => void;
1250
+ readonly wasmdocumentmetadata_twitterCard: (a: number) => number;
1251
+ readonly wasmdocumentnode_annotations: (a: number, b: number) => void;
1252
+ readonly wasmdocumentnode_attributes: (a: number) => number;
1253
+ readonly wasmdocumentnode_children: (a: number, b: number) => void;
1254
+ readonly wasmdocumentnode_content: (a: number) => number;
1255
+ readonly wasmdocumentnode_default: () => number;
1256
+ readonly wasmdocumentnode_id: (a: number, b: number) => void;
1257
+ readonly wasmdocumentnode_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
1258
+ readonly wasmdocumentnode_parent: (a: number) => number;
1259
+ readonly wasmdocumentnode_set_annotations: (a: number, b: number, c: number) => void;
1260
+ readonly wasmdocumentnode_set_attributes: (a: number, b: number) => void;
1261
+ readonly wasmdocumentnode_set_children: (a: number, b: number, c: number) => void;
1262
+ readonly wasmdocumentnode_set_content: (a: number, b: number) => void;
1263
+ readonly wasmdocumentnode_set_id: (a: number, b: number, c: number) => void;
1264
+ readonly wasmdocumentnode_set_parent: (a: number, b: number) => void;
1265
+ readonly wasmdocumentstructure_default: () => number;
1266
+ readonly wasmdocumentstructure_new: (a: number, b: number, c: number, d: number) => number;
1267
+ readonly wasmdocumentstructure_nodes: (a: number, b: number) => void;
1268
+ readonly wasmdocumentstructure_set_nodes: (a: number, b: number, c: number) => void;
1269
+ readonly wasmdocumentstructure_set_sourceFormat: (a: number, b: number, c: number) => void;
1270
+ readonly wasmdocumentstructure_sourceFormat: (a: number, b: number) => void;
1271
+ readonly wasmgridcell_col: (a: number) => number;
1272
+ readonly wasmgridcell_colSpan: (a: number) => number;
1273
+ readonly wasmgridcell_content: (a: number, b: number) => void;
1274
+ readonly wasmgridcell_default: () => number;
1275
+ readonly wasmgridcell_isHeader: (a: number) => number;
1276
+ readonly wasmgridcell_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
1277
+ readonly wasmgridcell_row: (a: number) => number;
1278
+ readonly wasmgridcell_rowSpan: (a: number) => number;
1279
+ readonly wasmgridcell_set_col: (a: number, b: number) => void;
1280
+ readonly wasmgridcell_set_colSpan: (a: number, b: number) => void;
1281
+ readonly wasmgridcell_set_content: (a: number, b: number, c: number) => void;
1282
+ readonly wasmgridcell_set_isHeader: (a: number, b: number) => void;
1283
+ readonly wasmgridcell_set_row: (a: number, b: number) => void;
1284
+ readonly wasmgridcell_set_rowSpan: (a: number, b: number) => void;
1285
+ readonly wasmheadermetadata_default: () => number;
1286
+ readonly wasmheadermetadata_htmlOffset: (a: number) => number;
1287
+ readonly wasmheadermetadata_id: (a: number, b: number) => void;
1288
+ readonly wasmheadermetadata_isValid: (a: number) => number;
1289
+ readonly wasmheadermetadata_level: (a: number) => number;
1290
+ readonly wasmheadermetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
1291
+ readonly wasmheadermetadata_set_htmlOffset: (a: number, b: number) => void;
1292
+ readonly wasmheadermetadata_set_id: (a: number, b: number, c: number) => void;
1293
+ readonly wasmheadermetadata_set_level: (a: number, b: number) => void;
1294
+ readonly wasmheadermetadata_set_text: (a: number, b: number, c: number) => void;
1295
+ readonly wasmheadermetadata_text: (a: number, b: number) => void;
1296
+ readonly wasmhtmlmetadata_default: () => number;
1297
+ readonly wasmhtmlmetadata_document: (a: number) => number;
1298
+ readonly wasmhtmlmetadata_headers: (a: number, b: number) => void;
1299
+ readonly wasmhtmlmetadata_images: (a: number, b: number) => void;
1300
+ readonly wasmhtmlmetadata_links: (a: number, b: number) => void;
1301
+ readonly wasmhtmlmetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
1302
+ readonly wasmhtmlmetadata_set_document: (a: number, b: number) => void;
1303
+ readonly wasmhtmlmetadata_set_headers: (a: number, b: number, c: number) => void;
1304
+ readonly wasmhtmlmetadata_set_images: (a: number, b: number, c: number) => void;
1305
+ readonly wasmhtmlmetadata_set_links: (a: number, b: number, c: number) => void;
1306
+ readonly wasmhtmlmetadata_set_structuredData: (a: number, b: number, c: number) => void;
1307
+ readonly wasmhtmlmetadata_structuredData: (a: number, b: number) => void;
1308
+ readonly wasmimagedimensions_default: () => number;
1309
+ readonly wasmimagedimensions_height: (a: number) => number;
1310
+ readonly wasmimagedimensions_new: (a: number, b: number) => number;
1311
+ readonly wasmimagedimensions_set_height: (a: number, b: number) => void;
1312
+ readonly wasmimagedimensions_set_width: (a: number, b: number) => void;
1313
+ readonly wasmimagedimensions_width: (a: number) => number;
1314
+ readonly wasmimagemetadata_alt: (a: number, b: number) => void;
1315
+ readonly wasmimagemetadata_attributes: (a: number) => number;
1316
+ readonly wasmimagemetadata_default: () => number;
1317
+ readonly wasmimagemetadata_dimensions: (a: number) => number;
1318
+ readonly wasmimagemetadata_imageType: (a: number, b: number) => void;
1319
+ readonly wasmimagemetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
1320
+ readonly wasmimagemetadata_set_alt: (a: number, b: number, c: number) => void;
1321
+ readonly wasmimagemetadata_set_attributes: (a: number, b: number) => void;
1322
+ readonly wasmimagemetadata_set_dimensions: (a: number, b: number) => void;
1323
+ readonly wasmimagemetadata_set_imageType: (a: number, b: number) => void;
1324
+ readonly wasmimagemetadata_set_src: (a: number, b: number, c: number) => void;
1325
+ readonly wasmimagemetadata_set_title: (a: number, b: number, c: number) => void;
1326
+ readonly wasmimagemetadata_src: (a: number, b: number) => void;
1327
+ readonly wasmimagemetadata_title: (a: number, b: number) => void;
1328
+ readonly wasmlinkmetadata_attributes: (a: number) => number;
1329
+ readonly wasmlinkmetadata_default: () => number;
1330
+ readonly wasmlinkmetadata_href: (a: number, b: number) => void;
1331
+ readonly wasmlinkmetadata_linkType: (a: number, b: number) => void;
1332
+ readonly wasmlinkmetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
1333
+ readonly wasmlinkmetadata_rel: (a: number, b: number) => void;
1334
+ readonly wasmlinkmetadata_set_attributes: (a: number, b: number) => void;
1335
+ readonly wasmlinkmetadata_set_href: (a: number, b: number, c: number) => void;
1336
+ readonly wasmlinkmetadata_set_linkType: (a: number, b: number) => void;
1337
+ readonly wasmlinkmetadata_set_rel: (a: number, b: number, c: number) => void;
1338
+ readonly wasmlinkmetadata_set_text: (a: number, b: number, c: number) => void;
1339
+ readonly wasmlinkmetadata_set_title: (a: number, b: number, c: number) => void;
1340
+ readonly wasmlinkmetadata_text: (a: number, b: number) => void;
1341
+ readonly wasmlinkmetadata_title: (a: number, b: number) => void;
1342
+ readonly wasmmetadataentry_default: () => number;
1343
+ readonly wasmmetadataentry_key: (a: number, b: number) => void;
1344
+ readonly wasmmetadataentry_new: (a: number, b: number, c: number, d: number) => number;
1345
+ readonly wasmmetadataentry_set_key: (a: number, b: number, c: number) => void;
1346
+ readonly wasmmetadataentry_set_value: (a: number, b: number, c: number) => void;
1347
+ readonly wasmmetadataentry_value: (a: number, b: number) => void;
1348
+ readonly wasmnodecontent_content: (a: number, b: number) => void;
1349
+ readonly wasmnodecontent_default: () => number;
1350
+ readonly wasmnodecontent_definition: (a: number, b: number) => void;
1351
+ readonly wasmnodecontent_description: (a: number, b: number) => void;
1352
+ readonly wasmnodecontent_entries: (a: number, b: number) => void;
1353
+ readonly wasmnodecontent_format: (a: number, b: number) => void;
1354
+ readonly wasmnodecontent_grid: (a: number) => number;
1355
+ readonly wasmnodecontent_headingLevel: (a: number) => number;
1356
+ readonly wasmnodecontent_headingText: (a: number, b: number) => void;
1357
+ readonly wasmnodecontent_label: (a: number, b: number) => void;
1358
+ readonly wasmnodecontent_language: (a: number, b: number) => void;
1359
+ readonly wasmnodecontent_level: (a: number) => number;
1360
+ readonly wasmnodecontent_nodeType: (a: number, b: number) => void;
1361
+ readonly wasmnodecontent_set_content: (a: number, b: number, c: number) => void;
1362
+ readonly wasmnodecontent_set_definition: (a: number, b: number, c: number) => void;
1363
+ readonly wasmnodecontent_set_description: (a: number, b: number, c: number) => void;
1364
+ readonly wasmnodecontent_set_entries: (a: number, b: number, c: number) => void;
1365
+ readonly wasmnodecontent_set_format: (a: number, b: number, c: number) => void;
1366
+ readonly wasmnodecontent_set_grid: (a: number, b: number) => void;
1367
+ readonly wasmnodecontent_set_headingLevel: (a: number, b: number) => void;
1368
+ readonly wasmnodecontent_set_headingText: (a: number, b: number, c: number) => void;
1369
+ readonly wasmnodecontent_set_label: (a: number, b: number, c: number) => void;
1370
+ readonly wasmnodecontent_set_language: (a: number, b: number, c: number) => void;
1371
+ readonly wasmnodecontent_set_level: (a: number, b: number) => void;
1372
+ readonly wasmnodecontent_set_nodeType: (a: number, b: number, c: number) => void;
1373
+ readonly wasmnodecontent_set_src: (a: number, b: number, c: number) => void;
1374
+ readonly wasmnodecontent_set_term: (a: number, b: number, c: number) => void;
1375
+ readonly wasmnodecontent_set_text: (a: number, b: number, c: number) => void;
1376
+ readonly wasmnodecontent_src: (a: number, b: number) => void;
1377
+ readonly wasmnodecontent_term: (a: number, b: number) => void;
1378
+ readonly wasmnodecontent_text: (a: number, b: number) => void;
1379
+ readonly wasmnodecontext_attributes: (a: number) => number;
1380
+ readonly wasmnodecontext_default: () => number;
1381
+ readonly wasmnodecontext_intoOwned: (a: number) => number;
1382
+ readonly wasmnodecontext_isInline: (a: number) => number;
1383
+ readonly wasmnodecontext_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
1384
+ readonly wasmnodecontext_nodeType: (a: number, b: number) => void;
1385
+ readonly wasmnodecontext_set_isInline: (a: number, b: number) => void;
1386
+ readonly wasmnodecontext_set_nodeType: (a: number, b: number) => void;
1387
+ readonly wasmnodecontext_withOwnedAttributes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
1388
+ readonly wasmpreprocessingoptions_default: () => number;
1389
+ readonly wasmpreprocessingoptions_enabled: (a: number) => number;
1390
+ readonly wasmpreprocessingoptions_new: (a: number, b: number, c: number, d: number) => number;
1391
+ readonly wasmpreprocessingoptions_preset: (a: number, b: number) => void;
1392
+ readonly wasmpreprocessingoptions_removeForms: (a: number) => number;
1393
+ readonly wasmpreprocessingoptions_removeNavigation: (a: number) => number;
1394
+ readonly wasmpreprocessingoptions_set_enabled: (a: number, b: number) => void;
1395
+ readonly wasmpreprocessingoptions_set_preset: (a: number, b: number) => void;
1396
+ readonly wasmpreprocessingoptions_set_removeForms: (a: number, b: number) => void;
1397
+ readonly wasmpreprocessingoptions_set_removeNavigation: (a: number, b: number) => void;
1398
+ readonly wasmpreprocessingoptionsupdate_default: () => number;
1399
+ readonly wasmpreprocessingoptionsupdate_enabled: (a: number) => number;
1400
+ readonly wasmpreprocessingoptionsupdate_new: (a: number, b: number, c: number, d: number) => number;
1401
+ readonly wasmpreprocessingoptionsupdate_preset: (a: number, b: number) => void;
1402
+ readonly wasmpreprocessingoptionsupdate_removeForms: (a: number) => number;
1403
+ readonly wasmpreprocessingoptionsupdate_removeNavigation: (a: number) => number;
1404
+ readonly wasmpreprocessingoptionsupdate_set_enabled: (a: number, b: number) => void;
1405
+ readonly wasmpreprocessingoptionsupdate_set_preset: (a: number, b: number) => void;
1406
+ readonly wasmpreprocessingoptionsupdate_set_removeForms: (a: number, b: number) => void;
1407
+ readonly wasmpreprocessingoptionsupdate_set_removeNavigation: (a: number, b: number) => void;
1408
+ readonly wasmprocessingwarning_default: () => number;
1409
+ readonly wasmprocessingwarning_kind: (a: number, b: number) => void;
1410
+ readonly wasmprocessingwarning_message: (a: number, b: number) => void;
1411
+ readonly wasmprocessingwarning_new: (a: number, b: number, c: number) => number;
1412
+ readonly wasmprocessingwarning_set_kind: (a: number, b: number) => void;
1413
+ readonly wasmprocessingwarning_set_message: (a: number, b: number, c: number) => void;
1414
+ readonly wasmstructureddata_dataType: (a: number, b: number) => void;
1415
+ readonly wasmstructureddata_default: () => number;
1416
+ readonly wasmstructureddata_new: (a: number, b: number, c: number, d: number, e: number) => number;
1417
+ readonly wasmstructureddata_rawJson: (a: number, b: number) => void;
1418
+ readonly wasmstructureddata_schemaType: (a: number, b: number) => void;
1419
+ readonly wasmstructureddata_set_dataType: (a: number, b: number) => void;
1420
+ readonly wasmstructureddata_set_rawJson: (a: number, b: number, c: number) => void;
1421
+ readonly wasmstructureddata_set_schemaType: (a: number, b: number, c: number) => void;
1422
+ readonly wasmtabledata_default: () => number;
1423
+ readonly wasmtabledata_grid: (a: number) => number;
1424
+ readonly wasmtabledata_markdown: (a: number, b: number) => void;
1425
+ readonly wasmtabledata_new: (a: number, b: number, c: number) => number;
1426
+ readonly wasmtabledata_set_grid: (a: number, b: number) => void;
1427
+ readonly wasmtabledata_set_markdown: (a: number, b: number, c: number) => void;
1428
+ readonly wasmtablegrid_cells: (a: number, b: number) => void;
1429
+ readonly wasmtablegrid_default: () => number;
1430
+ readonly wasmtablegrid_new: (a: number, b: number, c: number, d: number) => number;
1431
+ readonly wasmtablegrid_set_cells: (a: number, b: number, c: number) => void;
1432
+ readonly wasmtextannotation_default: () => number;
1433
+ readonly wasmtextannotation_kind: (a: number) => number;
1434
+ readonly wasmtextannotation_new: (a: number, b: number, c: number) => number;
1435
+ readonly wasmtextannotation_set_kind: (a: number, b: number) => void;
1436
+ readonly wasmvisitorhandle_new: (a: number) => number;
1437
+ readonly wasmnodecontent_ordered: (a: number) => number;
1438
+ readonly wasmnodecontent_new: () => number;
1439
+ readonly wasmheadermetadata_set_depth: (a: number, b: number) => void;
1440
+ readonly wasmnodecontext_set_depth: (a: number, b: number) => void;
1441
+ readonly wasmnodecontext_set_indexInParent: (a: number, b: number) => void;
1442
+ readonly wasmtablegrid_set_cols: (a: number, b: number) => void;
1443
+ readonly wasmtablegrid_set_rows: (a: number, b: number) => void;
1444
+ readonly wasmtextannotation_set_end: (a: number, b: number) => void;
1445
+ readonly wasmtextannotation_set_start: (a: number, b: number) => void;
1446
+ readonly wasmnodecontent_set_imageIndex: (a: number, b: number) => void;
1447
+ readonly wasmheadermetadata_depth: (a: number) => number;
1448
+ readonly wasmnodecontext_depth: (a: number) => number;
1449
+ readonly wasmnodecontext_indexInParent: (a: number) => number;
1450
+ readonly wasmtablegrid_cols: (a: number) => number;
1451
+ readonly wasmtablegrid_rows: (a: number) => number;
1452
+ readonly wasmtextannotation_end: (a: number) => number;
1453
+ readonly wasmtextannotation_start: (a: number) => number;
1454
+ readonly wasmannotationkind_new: () => number;
1455
+ readonly wasmnodecontext_parentTag: (a: number, b: number) => void;
1456
+ readonly wasmnodecontent_set_ordered: (a: number, b: number) => void;
1457
+ readonly wasmnodecontext_set_tagName: (a: number, b: number, c: number) => void;
1458
+ readonly wasmnodecontext_set_parentTag: (a: number, b: number, c: number) => void;
1459
+ readonly wasmnodecontext_tagName: (a: number, b: number) => void;
1460
+ readonly wasmnodecontent_imageIndex: (a: number) => number;
1461
+ readonly __wbg_wasmnodecontext_free: (a: number, b: number) => void;
1462
+ readonly __wbg_wasmpreprocessingoptionsupdate_free: (a: number, b: number) => void;
1463
+ readonly __wbindgen_export: (a: number, b: number) => number;
1464
+ readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
1465
+ readonly __wbindgen_export3: (a: number) => void;
1466
+ readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
1467
+ readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
1468
+ }
1469
+
1470
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
1471
+
1472
+ /**
1473
+ * Instantiates the given `module`, which can either be bytes or
1474
+ * a precompiled `WebAssembly.Module`.
1475
+ *
1476
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
1477
+ *
1478
+ * @returns {InitOutput}
1479
+ */
1480
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
1481
+
1482
+ /**
1483
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
1484
+ * for everything else, calls `WebAssembly.instantiate` directly.
1485
+ *
1486
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
1487
+ *
1488
+ * @returns {Promise<InitOutput>}
1489
+ */
1490
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;