@kreuzberg/html-to-markdown-wasm 3.4.0 → 3.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreuzberg/html-to-markdown-wasm",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "private": false,
5
5
  "description": "High-performance HTML to Markdown converter",
6
6
  "license": "MIT",
@@ -16,9 +16,9 @@
16
16
  "README.md"
17
17
  ],
18
18
  "type": "module",
19
- "main": "pkg/nodejs/html-to-markdown_wasm.js",
20
- "module": "pkg/web/html-to-markdown_wasm.js",
21
- "types": "pkg/nodejs/html-to-markdown_wasm.d.ts",
19
+ "main": "pkg/nodejs/html_to_markdown_wasm.js",
20
+ "module": "pkg/web/html_to_markdown_wasm.js",
21
+ "types": "pkg/nodejs/html_to_markdown_wasm.d.ts",
22
22
  "scripts": {
23
23
  "build": "wasm-pack build --target nodejs --out-dir pkg/nodejs",
24
24
  "build:ci": "wasm-pack build --release --target nodejs --out-dir pkg/nodejs",
@@ -52,7 +52,7 @@ export class WasmConversionOptions {
52
52
  /**
53
53
  * Apply a partial update to these conversion options.
54
54
  */
55
- applyUpdate(_update: WasmConversionOptionsUpdate): void;
55
+ applyUpdate(update: WasmConversionOptionsUpdate): void;
56
56
  /**
57
57
  * Create a new builder with default values.
58
58
  */
@@ -63,12 +63,13 @@ export class WasmConversionOptions {
63
63
  * Create from a partial update, applying to defaults.
64
64
  */
65
65
  static fromUpdate(update: WasmConversionOptionsUpdate): WasmConversionOptions;
66
- constructor(heading_style?: WasmHeadingStyle | null, list_indent_type?: WasmListIndentType | null, list_indent_width?: number | null, bullets?: string | null, strong_em_symbol?: string | null, escape_asterisks?: boolean | null, escape_underscores?: boolean | null, escape_misc?: boolean | null, escape_ascii?: boolean | null, code_language?: string | null, autolinks?: boolean | null, default_title?: boolean | null, br_in_tables?: boolean | null, highlight_style?: WasmHighlightStyle | null, extract_metadata?: boolean | null, whitespace_mode?: WasmWhitespaceMode | null, strip_newlines?: boolean | null, wrap?: boolean | null, wrap_width?: number | null, convert_as_inline?: boolean | null, sub_symbol?: string | null, sup_symbol?: string | null, newline_style?: WasmNewlineStyle | null, code_block_style?: WasmCodeBlockStyle | null, keep_inline_images_in?: string[] | null, preprocessing?: WasmPreprocessingOptions | null, encoding?: string | null, debug?: boolean | null, strip_tags?: string[] | null, preserve_tags?: string[] | null, skip_images?: boolean | null, link_style?: WasmLinkStyle | null, output_format?: WasmOutputFormat | null, include_document_structure?: boolean | null, extract_images?: boolean | null, max_image_size?: bigint | null, capture_svg?: boolean | null, infer_dimensions?: boolean | null, exclude_selectors?: string[] | null, max_depth?: number | null, visitor?: WasmVisitorHandle | null);
66
+ constructor(heading_style?: WasmHeadingStyle | null, list_indent_type?: WasmListIndentType | null, list_indent_width?: number | null, bullets?: string | null, strong_em_symbol?: string | null, escape_asterisks?: boolean | null, escape_underscores?: boolean | null, escape_misc?: boolean | null, escape_ascii?: boolean | null, code_language?: string | null, autolinks?: boolean | null, default_title?: boolean | null, br_in_tables?: boolean | null, highlight_style?: WasmHighlightStyle | null, extract_metadata?: boolean | null, whitespace_mode?: WasmWhitespaceMode | null, strip_newlines?: boolean | null, wrap?: boolean | null, wrap_width?: number | null, convert_as_inline?: boolean | null, sub_symbol?: string | null, sup_symbol?: string | null, newline_style?: WasmNewlineStyle | null, code_block_style?: WasmCodeBlockStyle | null, keep_inline_images_in?: string[] | null, preprocessing?: WasmPreprocessingOptions | null, encoding?: string | null, debug?: boolean | null, strip_tags?: string[] | null, preserve_tags?: string[] | null, skip_images?: boolean | null, link_style?: WasmLinkStyle | null, output_format?: WasmOutputFormat | null, include_document_structure?: boolean | null, extract_images?: boolean | null, max_image_size?: bigint | null, capture_svg?: boolean | null, infer_dimensions?: boolean | null, exclude_selectors?: string[] | null, max_depth?: number | null);
67
67
  autolinks: boolean;
68
68
  brInTables: boolean;
69
69
  bullets: string;
70
70
  captureSvg: boolean;
71
- codeBlockStyle: WasmCodeBlockStyle;
71
+ get codeBlockStyle(): string;
72
+ set codeBlockStyle(value: WasmCodeBlockStyle);
72
73
  codeLanguage: string;
73
74
  convertAsInline: boolean;
74
75
  debug: boolean;
@@ -81,19 +82,25 @@ export class WasmConversionOptions {
81
82
  excludeSelectors: string[];
82
83
  extractImages: boolean;
83
84
  extractMetadata: boolean;
84
- headingStyle: WasmHeadingStyle;
85
- highlightStyle: WasmHighlightStyle;
85
+ get headingStyle(): string;
86
+ set headingStyle(value: WasmHeadingStyle);
87
+ get highlightStyle(): string;
88
+ set highlightStyle(value: WasmHighlightStyle);
86
89
  includeDocumentStructure: boolean;
87
90
  inferDimensions: boolean;
88
91
  keepInlineImagesIn: string[];
89
- linkStyle: WasmLinkStyle;
90
- listIndentType: WasmListIndentType;
92
+ get linkStyle(): string;
93
+ set linkStyle(value: WasmLinkStyle);
94
+ get listIndentType(): string;
95
+ set listIndentType(value: WasmListIndentType);
91
96
  listIndentWidth: number;
92
97
  get maxDepth(): number | undefined;
93
98
  set maxDepth(value: number | null | undefined);
94
99
  maxImageSize: bigint;
95
- newlineStyle: WasmNewlineStyle;
96
- outputFormat: WasmOutputFormat;
100
+ get newlineStyle(): string;
101
+ set newlineStyle(value: WasmNewlineStyle);
102
+ get outputFormat(): string;
103
+ set outputFormat(value: WasmOutputFormat);
97
104
  preprocessing: WasmPreprocessingOptions;
98
105
  preserveTags: string[];
99
106
  skipImages: boolean;
@@ -104,7 +111,8 @@ export class WasmConversionOptions {
104
111
  supSymbol: string;
105
112
  get visitor(): WasmVisitorHandle | undefined;
106
113
  set visitor(value: WasmVisitorHandle | null | undefined);
107
- whitespaceMode: WasmWhitespaceMode;
114
+ get whitespaceMode(): string;
115
+ set whitespaceMode(value: WasmWhitespaceMode);
108
116
  wrap: boolean;
109
117
  wrapWidth: number;
110
118
  }
@@ -157,7 +165,8 @@ export class WasmConversionOptionsBuilder {
157
165
  export class WasmConversionOptionsUpdate {
158
166
  free(): void;
159
167
  [Symbol.dispose](): void;
160
- constructor(heading_style?: WasmHeadingStyle | null, list_indent_type?: WasmListIndentType | null, list_indent_width?: number | null, bullets?: string | null, strong_em_symbol?: string | null, escape_asterisks?: boolean | null, escape_underscores?: boolean | null, escape_misc?: boolean | null, escape_ascii?: boolean | null, code_language?: string | null, autolinks?: boolean | null, default_title?: boolean | null, br_in_tables?: boolean | null, highlight_style?: WasmHighlightStyle | null, extract_metadata?: boolean | null, whitespace_mode?: WasmWhitespaceMode | null, strip_newlines?: boolean | null, wrap?: boolean | null, wrap_width?: number | null, convert_as_inline?: boolean | null, sub_symbol?: string | null, sup_symbol?: string | null, newline_style?: WasmNewlineStyle | null, code_block_style?: WasmCodeBlockStyle | null, keep_inline_images_in?: string[] | null, preprocessing?: WasmPreprocessingOptionsUpdate | null, encoding?: string | null, debug?: boolean | null, strip_tags?: string[] | null, preserve_tags?: string[] | null, skip_images?: boolean | null, link_style?: WasmLinkStyle | null, output_format?: WasmOutputFormat | null, include_document_structure?: boolean | null, extract_images?: boolean | null, max_image_size?: bigint | null, capture_svg?: boolean | null, infer_dimensions?: boolean | null, max_depth?: number | null, exclude_selectors?: string[] | null, visitor?: WasmVisitorHandle | null);
168
+ static default(): WasmConversionOptionsUpdate;
169
+ constructor(heading_style?: WasmHeadingStyle | null, list_indent_type?: WasmListIndentType | null, list_indent_width?: number | null, bullets?: string | null, strong_em_symbol?: string | null, escape_asterisks?: boolean | null, escape_underscores?: boolean | null, escape_misc?: boolean | null, escape_ascii?: boolean | null, code_language?: string | null, autolinks?: boolean | null, default_title?: boolean | null, br_in_tables?: boolean | null, highlight_style?: WasmHighlightStyle | null, extract_metadata?: boolean | null, whitespace_mode?: WasmWhitespaceMode | null, strip_newlines?: boolean | null, wrap?: boolean | null, wrap_width?: number | null, convert_as_inline?: boolean | null, sub_symbol?: string | null, sup_symbol?: string | null, newline_style?: WasmNewlineStyle | null, code_block_style?: WasmCodeBlockStyle | null, keep_inline_images_in?: string[] | null, preprocessing?: WasmPreprocessingOptionsUpdate | null, encoding?: string | null, debug?: boolean | null, strip_tags?: string[] | null, preserve_tags?: string[] | null, skip_images?: boolean | null, link_style?: WasmLinkStyle | null, output_format?: WasmOutputFormat | null, include_document_structure?: boolean | null, extract_images?: boolean | null, max_image_size?: bigint | null, capture_svg?: boolean | null, infer_dimensions?: boolean | null, max_depth?: number | null, exclude_selectors?: string[] | null);
161
170
  get autolinks(): boolean | undefined;
162
171
  set autolinks(value: boolean | null | undefined);
163
172
  get brInTables(): boolean | undefined;
@@ -166,7 +175,7 @@ export class WasmConversionOptionsUpdate {
166
175
  set bullets(value: string | null | undefined);
167
176
  get captureSvg(): boolean | undefined;
168
177
  set captureSvg(value: boolean | null | undefined);
169
- get codeBlockStyle(): WasmCodeBlockStyle | undefined;
178
+ get codeBlockStyle(): string | undefined;
170
179
  set codeBlockStyle(value: WasmCodeBlockStyle | null | undefined);
171
180
  get codeLanguage(): string | undefined;
172
181
  set codeLanguage(value: string | null | undefined);
@@ -192,9 +201,9 @@ export class WasmConversionOptionsUpdate {
192
201
  set extractImages(value: boolean | null | undefined);
193
202
  get extractMetadata(): boolean | undefined;
194
203
  set extractMetadata(value: boolean | null | undefined);
195
- get headingStyle(): WasmHeadingStyle | undefined;
204
+ get headingStyle(): string | undefined;
196
205
  set headingStyle(value: WasmHeadingStyle | null | undefined);
197
- get highlightStyle(): WasmHighlightStyle | undefined;
206
+ get highlightStyle(): string | undefined;
198
207
  set highlightStyle(value: WasmHighlightStyle | null | undefined);
199
208
  get includeDocumentStructure(): boolean | undefined;
200
209
  set includeDocumentStructure(value: boolean | null | undefined);
@@ -202,9 +211,9 @@ export class WasmConversionOptionsUpdate {
202
211
  set inferDimensions(value: boolean | null | undefined);
203
212
  get keepInlineImagesIn(): string[] | undefined;
204
213
  set keepInlineImagesIn(value: string[] | null | undefined);
205
- get linkStyle(): WasmLinkStyle | undefined;
214
+ get linkStyle(): string | undefined;
206
215
  set linkStyle(value: WasmLinkStyle | null | undefined);
207
- get listIndentType(): WasmListIndentType | undefined;
216
+ get listIndentType(): string | undefined;
208
217
  set listIndentType(value: WasmListIndentType | null | undefined);
209
218
  get listIndentWidth(): number | undefined;
210
219
  set listIndentWidth(value: number | null | undefined);
@@ -212,9 +221,9 @@ export class WasmConversionOptionsUpdate {
212
221
  set maxDepth(value: number | null | undefined);
213
222
  get maxImageSize(): bigint | undefined;
214
223
  set maxImageSize(value: bigint | null | undefined);
215
- get newlineStyle(): WasmNewlineStyle | undefined;
224
+ get newlineStyle(): string | undefined;
216
225
  set newlineStyle(value: WasmNewlineStyle | null | undefined);
217
- get outputFormat(): WasmOutputFormat | undefined;
226
+ get outputFormat(): string | undefined;
218
227
  set outputFormat(value: WasmOutputFormat | null | undefined);
219
228
  get preprocessing(): WasmPreprocessingOptionsUpdate | undefined;
220
229
  set preprocessing(value: WasmPreprocessingOptionsUpdate | null | undefined);
@@ -234,7 +243,7 @@ export class WasmConversionOptionsUpdate {
234
243
  set supSymbol(value: string | null | undefined);
235
244
  get visitor(): WasmVisitorHandle | undefined;
236
245
  set visitor(value: WasmVisitorHandle | null | undefined);
237
- get whitespaceMode(): WasmWhitespaceMode | undefined;
246
+ get whitespaceMode(): string | undefined;
238
247
  set whitespaceMode(value: WasmWhitespaceMode | null | undefined);
239
248
  get wrap(): boolean | undefined;
240
249
  set wrap(value: boolean | null | undefined);
@@ -261,7 +270,8 @@ export class WasmConversionOptionsUpdate {
261
270
  export class WasmConversionResult {
262
271
  free(): void;
263
272
  [Symbol.dispose](): void;
264
- constructor(metadata?: WasmHtmlMetadata | null, tables?: WasmTableData[] | null, images?: string[] | null, warnings?: WasmProcessingWarning[] | null, content?: string | null, document?: WasmDocumentStructure | null);
273
+ static default(): WasmConversionResult;
274
+ constructor(tables?: WasmTableData[] | null, warnings?: WasmProcessingWarning[] | null, content?: string | null, document?: WasmDocumentStructure | null);
265
275
  get content(): string | undefined;
266
276
  set content(value: string | null | undefined);
267
277
  get document(): WasmDocumentStructure | undefined;
@@ -294,6 +304,7 @@ export class WasmConversionResult {
294
304
  export class WasmDocumentMetadata {
295
305
  free(): void;
296
306
  [Symbol.dispose](): void;
307
+ static default(): WasmDocumentMetadata;
297
308
  constructor(keywords?: string[] | null, open_graph?: any | null, twitter_card?: any | null, meta_tags?: any | null, title?: string | null, description?: string | null, author?: string | null, canonical_url?: string | null, base_href?: string | null, language?: string | null, text_direction?: WasmTextDirection | null);
298
309
  get author(): string | undefined;
299
310
  set author(value: string | null | undefined);
@@ -308,7 +319,7 @@ export class WasmDocumentMetadata {
308
319
  set language(value: string | null | undefined);
309
320
  metaTags: any;
310
321
  openGraph: any;
311
- get textDirection(): WasmTextDirection | undefined;
322
+ get textDirection(): string | undefined;
312
323
  set textDirection(value: WasmTextDirection | null | undefined);
313
324
  get title(): string | undefined;
314
325
  set title(value: string | null | undefined);
@@ -321,12 +332,14 @@ export class WasmDocumentMetadata {
321
332
  export class WasmDocumentNode {
322
333
  free(): void;
323
334
  [Symbol.dispose](): void;
335
+ static default(): WasmDocumentNode;
324
336
  constructor(id: string, content: WasmNodeContent, children: Uint32Array, annotations: WasmTextAnnotation[], parent?: number | null, attributes?: any | null);
325
337
  annotations: WasmTextAnnotation[];
326
338
  get attributes(): any | undefined;
327
339
  set attributes(value: any | null | undefined);
328
340
  children: Uint32Array;
329
- content: WasmNodeContent;
341
+ get content(): string;
342
+ set content(value: WasmNodeContent);
330
343
  id: string;
331
344
  get parent(): number | undefined;
332
345
  set parent(value: number | null | undefined);
@@ -340,6 +353,7 @@ export class WasmDocumentNode {
340
353
  export class WasmDocumentStructure {
341
354
  free(): void;
342
355
  [Symbol.dispose](): void;
356
+ static default(): WasmDocumentStructure;
343
357
  constructor(nodes: WasmDocumentNode[], source_format?: string | null);
344
358
  nodes: WasmDocumentNode[];
345
359
  get sourceFormat(): string | undefined;
@@ -352,6 +366,7 @@ export class WasmDocumentStructure {
352
366
  export class WasmGridCell {
353
367
  free(): void;
354
368
  [Symbol.dispose](): void;
369
+ static default(): WasmGridCell;
355
370
  constructor(content: string, row: number, col: number, row_span: number, col_span: number, is_header: boolean);
356
371
  col: number;
357
372
  colSpan: number;
@@ -385,6 +400,7 @@ export class WasmGridCell {
385
400
  export class WasmHeaderMetadata {
386
401
  free(): void;
387
402
  [Symbol.dispose](): void;
403
+ static default(): WasmHeaderMetadata;
388
404
  /**
389
405
  * Validate that the header level is within valid range (1-6).
390
406
  *
@@ -470,6 +486,7 @@ export enum WasmHighlightStyle {
470
486
  export class WasmHtmlMetadata {
471
487
  free(): void;
472
488
  [Symbol.dispose](): void;
489
+ static default(): WasmHtmlMetadata;
473
490
  constructor(document?: WasmDocumentMetadata | null, headers?: WasmHeaderMetadata[] | null, links?: WasmLinkMetadata[] | null, images?: WasmImageMetadata[] | null, structured_data?: WasmStructuredData[] | null);
474
491
  document: WasmDocumentMetadata;
475
492
  headers: WasmHeaderMetadata[];
@@ -502,13 +519,15 @@ export class WasmHtmlMetadata {
502
519
  export class WasmImageMetadata {
503
520
  free(): void;
504
521
  [Symbol.dispose](): void;
522
+ static default(): WasmImageMetadata;
505
523
  constructor(src: string, image_type: WasmImageType, attributes: any, alt?: string | null, title?: string | null, dimensions?: Uint32Array | null);
506
524
  get alt(): string | undefined;
507
525
  set alt(value: string | null | undefined);
508
526
  attributes: any;
509
527
  get dimensions(): Uint32Array | undefined;
510
528
  set dimensions(value: Uint32Array | null | undefined);
511
- imageType: WasmImageType;
529
+ get imageType(): string;
530
+ set imageType(value: WasmImageType);
512
531
  src: string;
513
532
  get title(): string | undefined;
514
533
  set title(value: string | null | undefined);
@@ -571,10 +590,12 @@ export class WasmLinkMetadata {
571
590
  * ```
572
591
  */
573
592
  static classifyLink(href: string): WasmLinkType;
593
+ static default(): WasmLinkMetadata;
574
594
  constructor(href: string, text: string, link_type: WasmLinkType, rel: string[], attributes: any, title?: string | null);
575
595
  attributes: any;
576
596
  href: string;
577
- linkType: WasmLinkType;
597
+ get linkType(): string;
598
+ set linkType(value: WasmLinkType);
578
599
  rel: string[];
579
600
  text: string;
580
601
  get title(): string | undefined;
@@ -656,12 +677,14 @@ export enum WasmNodeContent {
656
677
  export class WasmNodeContext {
657
678
  free(): void;
658
679
  [Symbol.dispose](): void;
680
+ static default(): WasmNodeContext;
659
681
  constructor(node_type: WasmNodeType, tag_name: string, attributes: any, depth: number, index_in_parent: number, is_inline: boolean, parent_tag?: string | null);
660
682
  attributes: any;
661
683
  depth: number;
662
684
  indexInParent: number;
663
685
  isInline: boolean;
664
- nodeType: WasmNodeType;
686
+ get nodeType(): string;
687
+ set nodeType(value: WasmNodeType);
665
688
  get parentTag(): string | undefined;
666
689
  set parentTag(value: string | null | undefined);
667
690
  tagName: string;
@@ -791,7 +814,7 @@ export class WasmPreprocessingOptions {
791
814
  *
792
815
  * * `update` - Partial preprocessing options update
793
816
  */
794
- applyUpdate(_update: WasmPreprocessingOptionsUpdate): void;
817
+ applyUpdate(update: WasmPreprocessingOptionsUpdate): void;
795
818
  static default(): WasmPreprocessingOptions;
796
819
  static from(update: WasmPreprocessingOptionsUpdate): WasmPreprocessingOptions;
797
820
  /**
@@ -811,7 +834,8 @@ export class WasmPreprocessingOptions {
811
834
  static fromUpdate(update: WasmPreprocessingOptionsUpdate): WasmPreprocessingOptions;
812
835
  constructor(enabled?: boolean | null, preset?: WasmPreprocessingPreset | null, remove_navigation?: boolean | null, remove_forms?: boolean | null);
813
836
  enabled: boolean;
814
- preset: WasmPreprocessingPreset;
837
+ get preset(): string;
838
+ set preset(value: WasmPreprocessingPreset);
815
839
  removeForms: boolean;
816
840
  removeNavigation: boolean;
817
841
  }
@@ -826,10 +850,11 @@ export class WasmPreprocessingOptions {
826
850
  export class WasmPreprocessingOptionsUpdate {
827
851
  free(): void;
828
852
  [Symbol.dispose](): void;
853
+ static default(): WasmPreprocessingOptionsUpdate;
829
854
  constructor(enabled?: boolean | null, preset?: WasmPreprocessingPreset | null, remove_navigation?: boolean | null, remove_forms?: boolean | null);
830
855
  get enabled(): boolean | undefined;
831
856
  set enabled(value: boolean | null | undefined);
832
- get preset(): WasmPreprocessingPreset | undefined;
857
+ get preset(): string | undefined;
833
858
  set preset(value: WasmPreprocessingPreset | null | undefined);
834
859
  get removeForms(): boolean | undefined;
835
860
  set removeForms(value: boolean | null | undefined);
@@ -854,8 +879,10 @@ export enum WasmPreprocessingPreset {
854
879
  export class WasmProcessingWarning {
855
880
  free(): void;
856
881
  [Symbol.dispose](): void;
882
+ static default(): WasmProcessingWarning;
857
883
  constructor(message: string, kind: WasmWarningKind);
858
- kind: WasmWarningKind;
884
+ get kind(): string;
885
+ set kind(value: WasmWarningKind);
859
886
  message: string;
860
887
  }
861
888
 
@@ -880,8 +907,10 @@ export class WasmProcessingWarning {
880
907
  export class WasmStructuredData {
881
908
  free(): void;
882
909
  [Symbol.dispose](): void;
910
+ static default(): WasmStructuredData;
883
911
  constructor(data_type: WasmStructuredDataType, raw_json: string, schema_type?: string | null);
884
- dataType: WasmStructuredDataType;
912
+ get dataType(): string;
913
+ set dataType(value: WasmStructuredDataType);
885
914
  rawJson: string;
886
915
  get schemaType(): string | undefined;
887
916
  set schemaType(value: string | null | undefined);
@@ -904,6 +933,7 @@ export enum WasmStructuredDataType {
904
933
  export class WasmTableData {
905
934
  free(): void;
906
935
  [Symbol.dispose](): void;
936
+ static default(): WasmTableData;
907
937
  constructor(grid: WasmTableGrid, markdown: string);
908
938
  grid: WasmTableGrid;
909
939
  markdown: string;
@@ -915,6 +945,7 @@ export class WasmTableData {
915
945
  export class WasmTableGrid {
916
946
  free(): void;
917
947
  [Symbol.dispose](): void;
948
+ static default(): WasmTableGrid;
918
949
  constructor(rows?: number | null, cols?: number | null, cells?: WasmGridCell[] | null);
919
950
  cells: WasmGridCell[];
920
951
  cols: number;
@@ -929,9 +960,11 @@ export class WasmTableGrid {
929
960
  export class WasmTextAnnotation {
930
961
  free(): void;
931
962
  [Symbol.dispose](): void;
963
+ static default(): WasmTextAnnotation;
932
964
  constructor(start: number, end: number, kind: WasmAnnotationKind);
933
965
  end: number;
934
- kind: WasmAnnotationKind;
966
+ get kind(): string;
967
+ set kind(value: WasmAnnotationKind);
935
968
  start: number;
936
969
  }
937
970
 
@@ -962,9 +995,11 @@ export enum WasmVisitResult {
962
995
  }
963
996
 
964
997
  /**
965
- * Type alias for a visitor handle (Rc-wrapped `RefCell` for interior mutability).
998
+ * Type alias for a visitor handle (`Arc`-wrapped `Mutex` for thread-safe shared mutation).
966
999
  *
967
- * This allows visitors to be passed around and shared while still being mutable.
1000
+ * `Send + Sync` so that types embedding a `VisitorHandle` (e.g. `ConversionOptions`)
1001
+ * can be shared across threads — required by callers that stash configs inside
1002
+ * axum/rmcp/tokio Send-bound contexts.
968
1003
  */
969
1004
  export class WasmVisitorHandle {
970
1005
  free(): void;