@kittycad/kcl-wasm-lib 0.0.1 → 0.1.141

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,939 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The `ReadableStreamType` enum.
5
+ *
6
+ * *This API requires the following crate features to be activated: `ReadableStreamType`*
7
+ */
8
+
9
+ type ReadableStreamType = 'bytes'
10
+
11
+ export class Context {
12
+ free(): void
13
+ [Symbol.dispose](): void
14
+ /**
15
+ * Add a constraint to sketch.
16
+ */
17
+ add_constraint(
18
+ version_json: string,
19
+ sketch_json: string,
20
+ constraint_json: string,
21
+ settings: string,
22
+ create_checkpoint: boolean
23
+ ): Promise<any>
24
+ add_file(project: number, file: string): Promise<void>
25
+ /**
26
+ * Add segment to sketch.
27
+ */
28
+ add_segment(
29
+ version_json: string,
30
+ sketch_json: string,
31
+ segment_json: string,
32
+ label: string | null | undefined,
33
+ settings: string,
34
+ create_checkpoint: boolean
35
+ ): Promise<any>
36
+ /**
37
+ * Reset the scene and bust the cache.
38
+ * ONLY use this if you absolutely need to reset the scene and bust the cache.
39
+ */
40
+ bustCacheAndResetScene(settings: string, path?: string | null): Promise<any>
41
+ /**
42
+ * Chain a segment to a previous segment by adding it and creating a coincident constraint.
43
+ */
44
+ chain_segment(
45
+ version_json: string,
46
+ sketch_json: string,
47
+ previous_segment_end_point_id_json: string,
48
+ segment_json: string,
49
+ label: string | null | undefined,
50
+ settings: string,
51
+ create_checkpoint: boolean
52
+ ): Promise<any>
53
+ clear_sketch_checkpoints(): Promise<void>
54
+ /**
55
+ * Delete segments and constraints in sketch.
56
+ */
57
+ delete_objects(
58
+ version_json: string,
59
+ sketch_json: string,
60
+ constraint_ids_json: string,
61
+ segment_ids_json: string,
62
+ settings: string,
63
+ create_checkpoint: boolean
64
+ ): Promise<any>
65
+ /**
66
+ * Delete sketch.
67
+ */
68
+ delete_sketch(
69
+ version_json: string,
70
+ sketch_json: string,
71
+ settings: string
72
+ ): Promise<any>
73
+ /**
74
+ * Edit a constraint in a sketch.
75
+ */
76
+ edit_constraint(
77
+ version_json: string,
78
+ sketch_json: string,
79
+ constraint_id_json: string,
80
+ value_expression: string,
81
+ settings: string,
82
+ create_checkpoint: boolean
83
+ ): Promise<any>
84
+ /**
85
+ * Edit segment in sketch.
86
+ */
87
+ edit_segments(
88
+ version_json: string,
89
+ sketch_json: string,
90
+ segments_json: string,
91
+ settings: string,
92
+ create_checkpoint: boolean
93
+ ): Promise<any>
94
+ /**
95
+ * Enter sketch mode for an existing sketch.
96
+ */
97
+ edit_sketch(
98
+ project_json: string,
99
+ file_json: string,
100
+ version_json: string,
101
+ sketch_json: string,
102
+ settings: string
103
+ ): Promise<any>
104
+ /**
105
+ * Execute a program.
106
+ */
107
+ execute(
108
+ program_ast_json: string,
109
+ path: string | null | undefined,
110
+ settings: string
111
+ ): Promise<any>
112
+ /**
113
+ * Execute a program in mock mode.
114
+ */
115
+ executeMock(
116
+ program_ast_json: string,
117
+ path: string | null | undefined,
118
+ settings: string,
119
+ use_prev_memory: boolean
120
+ ): Promise<any>
121
+ /**
122
+ * Execute trim operations on a sketch.
123
+ * This runs the full trim loop internally, executing all trim operations.
124
+ */
125
+ execute_trim(
126
+ version_json: string,
127
+ sketch_json: string,
128
+ points: Float64Array,
129
+ settings: string
130
+ ): Promise<any>
131
+ /**
132
+ * Exit sketch mode.
133
+ */
134
+ exit_sketch(
135
+ version_json: string,
136
+ sketch_json: string,
137
+ settings: string
138
+ ): Promise<any>
139
+ /**
140
+ * Export a scene to a file.
141
+ */
142
+ export(format_json: string, settings: string): Promise<any>
143
+ get_file(project_id: number, file_id: number): Promise<any>
144
+ get_project(project_id: number): Promise<any>
145
+ /**
146
+ * Set the current program AST and execute it. Temporary hack for
147
+ * development purposes only.
148
+ */
149
+ hack_set_program(program_ast_json: string, settings: string): Promise<any>
150
+ constructor(engine_manager: any, fs_manager: any)
151
+ /**
152
+ * Create new sketch and enter sketch mode.
153
+ */
154
+ new_sketch(
155
+ project_json: string,
156
+ file_json: string,
157
+ version_json: string,
158
+ args_json: string,
159
+ settings: string
160
+ ): Promise<any>
161
+ open_project(project: number, files: string, open_file: number): Promise<void>
162
+ refresh(project: number): Promise<void>
163
+ remove_file(project: number, file: number): Promise<void>
164
+ restore_sketch_checkpoint(checkpoint_id_json: string): Promise<any>
165
+ /**
166
+ * Send a response to kcl lib's engine.
167
+ */
168
+ sendResponse(data: Uint8Array): Promise<void>
169
+ /**
170
+ * Execute the sketch in mock mode, without changing anything. This is
171
+ * useful after editing segments, and the user releases the mouse button.
172
+ */
173
+ sketch_execute_mock(
174
+ version_json: string,
175
+ sketch_json: string,
176
+ settings: string
177
+ ): Promise<any>
178
+ switch_file(project: number, file: number): Promise<void>
179
+ /**
180
+ * Transpile old sketch syntax (startProfile in pipe) to new sketch block syntax.
181
+ *
182
+ * This function re-executes the program using the execution cache (which should be very fast
183
+ * if the program hasn't changed), then extracts the sketch and transpiles it.
184
+ *
185
+ * # Arguments
186
+ * * `program_ast_json` - Program AST as JSON string
187
+ * * `variable_name` - Name of the variable containing the old sketch syntax
188
+ * * `path` - Optional file path for execution context
189
+ * * `settings` - Execution settings as JSON string
190
+ *
191
+ * # Returns
192
+ * The transpiled code as a string, or an error if execution or transpilation fails.
193
+ */
194
+ transpile_old_sketch(
195
+ program_ast_json: string,
196
+ variable_name: string,
197
+ path: string | null | undefined,
198
+ settings: string
199
+ ): Promise<any>
200
+ update_file(project: number, file: number, text: string): Promise<void>
201
+ }
202
+
203
+ export class IntoUnderlyingByteSource {
204
+ private constructor()
205
+ free(): void
206
+ [Symbol.dispose](): void
207
+ cancel(): void
208
+ pull(controller: ReadableByteStreamController): Promise<any>
209
+ start(controller: ReadableByteStreamController): void
210
+ readonly autoAllocateChunkSize: number
211
+ readonly type: ReadableStreamType
212
+ }
213
+
214
+ export class IntoUnderlyingSink {
215
+ private constructor()
216
+ free(): void
217
+ [Symbol.dispose](): void
218
+ abort(reason: any): Promise<any>
219
+ close(): Promise<any>
220
+ write(chunk: any): Promise<any>
221
+ }
222
+
223
+ export class IntoUnderlyingSource {
224
+ private constructor()
225
+ free(): void
226
+ [Symbol.dispose](): void
227
+ cancel(): void
228
+ pull(controller: ReadableStreamDefaultController): Promise<any>
229
+ }
230
+
231
+ export class LspServerConfig {
232
+ free(): void
233
+ [Symbol.dispose](): void
234
+ constructor(
235
+ into_server: AsyncIterator<any>,
236
+ from_server: WritableStream,
237
+ fs: any
238
+ )
239
+ }
240
+
241
+ export class ResponseContext {
242
+ free(): void
243
+ [Symbol.dispose](): void
244
+ constructor()
245
+ send_response(data: Uint8Array): Promise<void>
246
+ }
247
+
248
+ export class TangentialArcInfoOutputWasm {
249
+ private constructor()
250
+ free(): void
251
+ [Symbol.dispose](): void
252
+ /**
253
+ * The length of the arc.
254
+ */
255
+ arc_length: number
256
+ /**
257
+ * The midpoint of the arc x.
258
+ */
259
+ arc_mid_point_x: number
260
+ /**
261
+ * The midpoint of the arc y.
262
+ */
263
+ arc_mid_point_y: number
264
+ /**
265
+ * Flag to determine if the arc is counter clockwise.
266
+ */
267
+ ccw: number
268
+ /**
269
+ * The geometric center of the arc x.
270
+ */
271
+ center_x: number
272
+ /**
273
+ * The geometric center of the arc y.
274
+ */
275
+ center_y: number
276
+ /**
277
+ * End angle of the arc in radians.
278
+ */
279
+ end_angle: number
280
+ /**
281
+ * The radius of the arc.
282
+ */
283
+ radius: number
284
+ /**
285
+ * Start angle of the arc in radians.
286
+ */
287
+ start_angle: number
288
+ }
289
+
290
+ export class WasmCircleParams {
291
+ private constructor()
292
+ free(): void
293
+ [Symbol.dispose](): void
294
+ center_x: number
295
+ center_y: number
296
+ radius: number
297
+ }
298
+
299
+ /**
300
+ * Base64 decode a string.
301
+ */
302
+ export function base64_decode(input: string): Uint8Array
303
+
304
+ /**
305
+ * Calculate a circle from 3 points.
306
+ */
307
+ export function calculate_circle_from_3_points(
308
+ ax: number,
309
+ ay: number,
310
+ bx: number,
311
+ by: number,
312
+ cx: number,
313
+ cy: number
314
+ ): WasmCircleParams
315
+
316
+ /**
317
+ * Takes a kcl string and Meta settings and changes the meta settings in the kcl string.
318
+ */
319
+ export function change_default_units(code: string, len_str: string): string
320
+
321
+ /**
322
+ * Takes a kcl string and Meta settings and changes the meta settings in the kcl string.
323
+ */
324
+ export function change_experimental_features(
325
+ code: string,
326
+ level_str: string
327
+ ): string
328
+
329
+ /**
330
+ * Get a coredump.
331
+ */
332
+ export function coredump(core_dump_manager: any): Promise<any>
333
+
334
+ /**
335
+ * Get the default app settings.
336
+ */
337
+ export function default_app_settings(): any
338
+
339
+ /**
340
+ * Get the default project settings.
341
+ */
342
+ export function default_project_settings(): any
343
+
344
+ export function format_number_literal(
345
+ value: number,
346
+ suffix_json: string,
347
+ decimals?: number | null
348
+ ): string
349
+
350
+ export function format_number_value(
351
+ value: number,
352
+ numeric_type_json: string
353
+ ): string
354
+
355
+ /**
356
+ * Get the version of the kcl library.
357
+ */
358
+ export function get_kcl_version(): string
359
+
360
+ export function get_tangential_arc_to_info(
361
+ arc_start_point_x: number,
362
+ arc_start_point_y: number,
363
+ arc_end_point_x: number,
364
+ arc_end_point_y: number,
365
+ tan_previous_point_x: number,
366
+ tan_previous_point_y: number,
367
+ obtuse: boolean
368
+ ): TangentialArcInfoOutputWasm
369
+
370
+ export function human_display_number(value: number, ty_json: string): string
371
+
372
+ /**
373
+ * Get the allowed import file extensions.
374
+ */
375
+ export function import_file_extensions(): string[]
376
+
377
+ /**
378
+ * Returns true if the given KCL is empty or only contains settings that would
379
+ * be auto-generated.
380
+ */
381
+ export function is_kcl_empty_or_only_settings(code: string): any
382
+
383
+ export function is_points_ccw(points: Float64Array): number
384
+
385
+ export function kcl_lint(program_ast_json: string): Promise<any>
386
+
387
+ /**
388
+ * Takes a parsed KCL program and returns the Meta settings. If it's not
389
+ * found, null is returned.
390
+ */
391
+ export function kcl_settings(program_json: string): any
392
+
393
+ /**
394
+ * Run the `copilot` lsp server.
395
+ */
396
+ export function lsp_run_copilot(
397
+ config: LspServerConfig,
398
+ token: string,
399
+ baseurl: string
400
+ ): Promise<void>
401
+
402
+ /**
403
+ * Run the `kcl` lsp server.
404
+ */
405
+ export function lsp_run_kcl(
406
+ config: LspServerConfig,
407
+ token: string,
408
+ baseurl: string
409
+ ): Promise<void>
410
+
411
+ export function node_path_from_range(
412
+ program_ast_json: string,
413
+ range_json: string
414
+ ): Promise<any>
415
+
416
+ /**
417
+ * Parse the app settings.
418
+ */
419
+ export function parse_app_settings(toml_str: string): any
420
+
421
+ /**
422
+ * Parse (deserialize) the project settings.
423
+ */
424
+ export function parse_project_settings(toml_str: string): any
425
+
426
+ export function parse_wasm(kcl_program_source: string): any
427
+
428
+ export function point_to_unit(
429
+ point_json: string,
430
+ from_len_unit_json: string,
431
+ to_len_unit_json: string
432
+ ): Float64Array
433
+
434
+ export function recast_wasm(json_str: string): any
435
+
436
+ /**
437
+ * Get the allowed relevant file extensions (imports + kcl).
438
+ */
439
+ export function relevant_file_extensions(): string[]
440
+
441
+ /**
442
+ * Serialize the configuration settings.
443
+ */
444
+ export function serialize_configuration(val: any): any
445
+
446
+ /**
447
+ * Serialize the project configuration settings.
448
+ */
449
+ export function serialize_project_configuration(val: any): any
450
+
451
+ export function sketch_checkpoint_limit(): number
452
+
453
+ export type InitInput =
454
+ | RequestInfo
455
+ | URL
456
+ | Response
457
+ | BufferSource
458
+ | WebAssembly.Module
459
+
460
+ export interface InitOutput {
461
+ readonly memory: WebAssembly.Memory
462
+ readonly context_add_constraint: (
463
+ a: number,
464
+ b: number,
465
+ c: number,
466
+ d: number,
467
+ e: number,
468
+ f: number,
469
+ g: number,
470
+ h: number,
471
+ i: number,
472
+ j: number
473
+ ) => any
474
+ readonly context_add_file: (a: number, b: number, c: number, d: number) => any
475
+ readonly context_add_segment: (
476
+ a: number,
477
+ b: number,
478
+ c: number,
479
+ d: number,
480
+ e: number,
481
+ f: number,
482
+ g: number,
483
+ h: number,
484
+ i: number,
485
+ j: number,
486
+ k: number,
487
+ l: number
488
+ ) => any
489
+ readonly context_chain_segment: (
490
+ a: number,
491
+ b: number,
492
+ c: number,
493
+ d: number,
494
+ e: number,
495
+ f: number,
496
+ g: number,
497
+ h: number,
498
+ i: number,
499
+ j: number,
500
+ k: number,
501
+ l: number,
502
+ m: number,
503
+ n: number
504
+ ) => any
505
+ readonly context_clear_sketch_checkpoints: (a: number) => any
506
+ readonly context_delete_objects: (
507
+ a: number,
508
+ b: number,
509
+ c: number,
510
+ d: number,
511
+ e: number,
512
+ f: number,
513
+ g: number,
514
+ h: number,
515
+ i: number,
516
+ j: number,
517
+ k: number,
518
+ l: number
519
+ ) => any
520
+ readonly context_delete_sketch: (
521
+ a: number,
522
+ b: number,
523
+ c: number,
524
+ d: number,
525
+ e: number,
526
+ f: number,
527
+ g: number
528
+ ) => any
529
+ readonly context_edit_constraint: (
530
+ a: number,
531
+ b: number,
532
+ c: number,
533
+ d: number,
534
+ e: number,
535
+ f: number,
536
+ g: number,
537
+ h: number,
538
+ i: number,
539
+ j: number,
540
+ k: number,
541
+ l: number
542
+ ) => any
543
+ readonly context_edit_segments: (
544
+ a: number,
545
+ b: number,
546
+ c: number,
547
+ d: number,
548
+ e: number,
549
+ f: number,
550
+ g: number,
551
+ h: number,
552
+ i: number,
553
+ j: number
554
+ ) => any
555
+ readonly context_edit_sketch: (
556
+ a: number,
557
+ b: number,
558
+ c: number,
559
+ d: number,
560
+ e: number,
561
+ f: number,
562
+ g: number,
563
+ h: number,
564
+ i: number,
565
+ j: number,
566
+ k: number
567
+ ) => any
568
+ readonly context_execute_trim: (
569
+ a: number,
570
+ b: number,
571
+ c: number,
572
+ d: number,
573
+ e: number,
574
+ f: number,
575
+ g: number,
576
+ h: number,
577
+ i: number
578
+ ) => any
579
+ readonly context_exit_sketch: (
580
+ a: number,
581
+ b: number,
582
+ c: number,
583
+ d: number,
584
+ e: number,
585
+ f: number,
586
+ g: number
587
+ ) => any
588
+ readonly context_get_file: (a: number, b: number, c: number) => any
589
+ readonly context_get_project: (a: number, b: number) => any
590
+ readonly context_hack_set_program: (
591
+ a: number,
592
+ b: number,
593
+ c: number,
594
+ d: number,
595
+ e: number
596
+ ) => any
597
+ readonly context_new_sketch: (
598
+ a: number,
599
+ b: number,
600
+ c: number,
601
+ d: number,
602
+ e: number,
603
+ f: number,
604
+ g: number,
605
+ h: number,
606
+ i: number,
607
+ j: number,
608
+ k: number
609
+ ) => any
610
+ readonly context_open_project: (
611
+ a: number,
612
+ b: number,
613
+ c: number,
614
+ d: number,
615
+ e: number
616
+ ) => any
617
+ readonly context_refresh: (a: number, b: number) => any
618
+ readonly context_remove_file: (a: number, b: number, c: number) => any
619
+ readonly context_restore_sketch_checkpoint: (
620
+ a: number,
621
+ b: number,
622
+ c: number
623
+ ) => any
624
+ readonly context_sketch_execute_mock: (
625
+ a: number,
626
+ b: number,
627
+ c: number,
628
+ d: number,
629
+ e: number,
630
+ f: number,
631
+ g: number
632
+ ) => any
633
+ readonly context_switch_file: (a: number, b: number, c: number) => any
634
+ readonly context_transpile_old_sketch: (
635
+ a: number,
636
+ b: number,
637
+ c: number,
638
+ d: number,
639
+ e: number,
640
+ f: number,
641
+ g: number,
642
+ h: number,
643
+ i: number
644
+ ) => any
645
+ readonly context_update_file: (
646
+ a: number,
647
+ b: number,
648
+ c: number,
649
+ d: number,
650
+ e: number
651
+ ) => any
652
+ readonly sketch_checkpoint_limit: () => number
653
+ readonly __wbg_context_free: (a: number, b: number) => void
654
+ readonly __wbg_get_tangentialarcinfooutputwasm_arc_length: (
655
+ a: number
656
+ ) => number
657
+ readonly __wbg_get_tangentialarcinfooutputwasm_arc_mid_point_x: (
658
+ a: number
659
+ ) => number
660
+ readonly __wbg_get_tangentialarcinfooutputwasm_arc_mid_point_y: (
661
+ a: number
662
+ ) => number
663
+ readonly __wbg_get_tangentialarcinfooutputwasm_ccw: (a: number) => number
664
+ readonly __wbg_get_tangentialarcinfooutputwasm_center_x: (a: number) => number
665
+ readonly __wbg_get_tangentialarcinfooutputwasm_center_y: (a: number) => number
666
+ readonly __wbg_get_tangentialarcinfooutputwasm_end_angle: (
667
+ a: number
668
+ ) => number
669
+ readonly __wbg_get_tangentialarcinfooutputwasm_radius: (a: number) => number
670
+ readonly __wbg_get_tangentialarcinfooutputwasm_start_angle: (
671
+ a: number
672
+ ) => number
673
+ readonly __wbg_set_tangentialarcinfooutputwasm_arc_length: (
674
+ a: number,
675
+ b: number
676
+ ) => void
677
+ readonly __wbg_set_tangentialarcinfooutputwasm_arc_mid_point_x: (
678
+ a: number,
679
+ b: number
680
+ ) => void
681
+ readonly __wbg_set_tangentialarcinfooutputwasm_arc_mid_point_y: (
682
+ a: number,
683
+ b: number
684
+ ) => void
685
+ readonly __wbg_set_tangentialarcinfooutputwasm_ccw: (
686
+ a: number,
687
+ b: number
688
+ ) => void
689
+ readonly __wbg_set_tangentialarcinfooutputwasm_center_x: (
690
+ a: number,
691
+ b: number
692
+ ) => void
693
+ readonly __wbg_set_tangentialarcinfooutputwasm_center_y: (
694
+ a: number,
695
+ b: number
696
+ ) => void
697
+ readonly __wbg_set_tangentialarcinfooutputwasm_end_angle: (
698
+ a: number,
699
+ b: number
700
+ ) => void
701
+ readonly __wbg_set_tangentialarcinfooutputwasm_radius: (
702
+ a: number,
703
+ b: number
704
+ ) => void
705
+ readonly __wbg_set_tangentialarcinfooutputwasm_start_angle: (
706
+ a: number,
707
+ b: number
708
+ ) => void
709
+ readonly __wbg_tangentialarcinfooutputwasm_free: (
710
+ a: number,
711
+ b: number
712
+ ) => void
713
+ readonly __wbg_wasmcircleparams_free: (a: number, b: number) => void
714
+ readonly base64_decode: (
715
+ a: number,
716
+ b: number
717
+ ) => [number, number, number, number]
718
+ readonly calculate_circle_from_3_points: (
719
+ a: number,
720
+ b: number,
721
+ c: number,
722
+ d: number,
723
+ e: number,
724
+ f: number
725
+ ) => number
726
+ readonly change_default_units: (
727
+ a: number,
728
+ b: number,
729
+ c: number,
730
+ d: number
731
+ ) => [number, number, number, number]
732
+ readonly change_experimental_features: (
733
+ a: number,
734
+ b: number,
735
+ c: number,
736
+ d: number
737
+ ) => [number, number, number, number]
738
+ readonly context_bustCacheAndResetScene: (
739
+ a: number,
740
+ b: number,
741
+ c: number,
742
+ d: number,
743
+ e: number
744
+ ) => any
745
+ readonly context_execute: (
746
+ a: number,
747
+ b: number,
748
+ c: number,
749
+ d: number,
750
+ e: number,
751
+ f: number,
752
+ g: number
753
+ ) => any
754
+ readonly context_executeMock: (
755
+ a: number,
756
+ b: number,
757
+ c: number,
758
+ d: number,
759
+ e: number,
760
+ f: number,
761
+ g: number,
762
+ h: number
763
+ ) => any
764
+ readonly context_export: (
765
+ a: number,
766
+ b: number,
767
+ c: number,
768
+ d: number,
769
+ e: number
770
+ ) => any
771
+ readonly context_new: (a: any, b: any) => [number, number, number]
772
+ readonly context_sendResponse: (a: number, b: any) => any
773
+ readonly coredump: (a: any) => any
774
+ readonly default_app_settings: () => [number, number, number]
775
+ readonly default_project_settings: () => [number, number, number]
776
+ readonly format_number_literal: (
777
+ a: number,
778
+ b: number,
779
+ c: number,
780
+ d: number
781
+ ) => [number, number, number, number]
782
+ readonly format_number_value: (
783
+ a: number,
784
+ b: number,
785
+ c: number
786
+ ) => [number, number, number, number]
787
+ readonly get_kcl_version: () => [number, number]
788
+ readonly get_tangential_arc_to_info: (
789
+ a: number,
790
+ b: number,
791
+ c: number,
792
+ d: number,
793
+ e: number,
794
+ f: number,
795
+ g: number
796
+ ) => number
797
+ readonly human_display_number: (
798
+ a: number,
799
+ b: number,
800
+ c: number
801
+ ) => [number, number, number, number]
802
+ readonly import_file_extensions: () => [number, number, number, number]
803
+ readonly is_kcl_empty_or_only_settings: (
804
+ a: number,
805
+ b: number
806
+ ) => [number, number, number]
807
+ readonly is_points_ccw: (a: number, b: number) => number
808
+ readonly kcl_lint: (a: number, b: number) => any
809
+ readonly kcl_settings: (a: number, b: number) => [number, number, number]
810
+ readonly node_path_from_range: (
811
+ a: number,
812
+ b: number,
813
+ c: number,
814
+ d: number
815
+ ) => any
816
+ readonly parse_app_settings: (
817
+ a: number,
818
+ b: number
819
+ ) => [number, number, number]
820
+ readonly parse_project_settings: (
821
+ a: number,
822
+ b: number
823
+ ) => [number, number, number]
824
+ readonly parse_wasm: (a: number, b: number) => [number, number, number]
825
+ readonly point_to_unit: (
826
+ a: number,
827
+ b: number,
828
+ c: number,
829
+ d: number,
830
+ e: number,
831
+ f: number
832
+ ) => [number, number, number, number]
833
+ readonly recast_wasm: (a: number, b: number) => [number, number, number]
834
+ readonly relevant_file_extensions: () => [number, number, number, number]
835
+ readonly serialize_configuration: (a: any) => [number, number, number]
836
+ readonly serialize_project_configuration: (a: any) => [number, number, number]
837
+ readonly __wbg_set_wasmcircleparams_center_x: (a: number, b: number) => void
838
+ readonly __wbg_set_wasmcircleparams_center_y: (a: number, b: number) => void
839
+ readonly __wbg_set_wasmcircleparams_radius: (a: number, b: number) => void
840
+ readonly __wbg_get_wasmcircleparams_center_x: (a: number) => number
841
+ readonly __wbg_get_wasmcircleparams_center_y: (a: number) => number
842
+ readonly __wbg_get_wasmcircleparams_radius: (a: number) => number
843
+ readonly __wbg_lspserverconfig_free: (a: number, b: number) => void
844
+ readonly lsp_run_copilot: (
845
+ a: number,
846
+ b: number,
847
+ c: number,
848
+ d: number,
849
+ e: number
850
+ ) => any
851
+ readonly lsp_run_kcl: (
852
+ a: number,
853
+ b: number,
854
+ c: number,
855
+ d: number,
856
+ e: number
857
+ ) => any
858
+ readonly lspserverconfig_new: (a: any, b: any, c: any) => number
859
+ readonly __wbg_responsecontext_free: (a: number, b: number) => void
860
+ readonly responsecontext_new: () => number
861
+ readonly responsecontext_send_response: (a: number, b: any) => any
862
+ readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void
863
+ readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number
864
+ readonly intounderlyingbytesource_cancel: (a: number) => void
865
+ readonly intounderlyingbytesource_pull: (a: number, b: any) => any
866
+ readonly intounderlyingbytesource_start: (a: number, b: any) => void
867
+ readonly intounderlyingbytesource_type: (a: number) => number
868
+ readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void
869
+ readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void
870
+ readonly intounderlyingsink_abort: (a: number, b: any) => any
871
+ readonly intounderlyingsink_close: (a: number) => any
872
+ readonly intounderlyingsink_write: (a: number, b: any) => any
873
+ readonly intounderlyingsource_cancel: (a: number) => void
874
+ readonly intounderlyingsource_pull: (a: number, b: any) => any
875
+ readonly wasm_bindgen__convert__closures_____invoke__hd41fce227beb919d: (
876
+ a: number,
877
+ b: number,
878
+ c: any
879
+ ) => [number, number]
880
+ readonly wasm_bindgen__convert__closures_____invoke__hd1cad1d65a58033c: (
881
+ a: number,
882
+ b: number,
883
+ c: any
884
+ ) => [number, number]
885
+ readonly wasm_bindgen__convert__closures_____invoke__h9bcd17f09dc83691: (
886
+ a: number,
887
+ b: number,
888
+ c: any,
889
+ d: any
890
+ ) => void
891
+ readonly wasm_bindgen__convert__closures_____invoke__hc85db0809cd3d705: (
892
+ a: number,
893
+ b: number
894
+ ) => void
895
+ readonly __wbindgen_malloc: (a: number, b: number) => number
896
+ readonly __wbindgen_realloc: (
897
+ a: number,
898
+ b: number,
899
+ c: number,
900
+ d: number
901
+ ) => number
902
+ readonly __externref_table_alloc: () => number
903
+ readonly __wbindgen_externrefs: WebAssembly.Table
904
+ readonly __wbindgen_exn_store: (a: number) => void
905
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void
906
+ readonly __wbindgen_destroy_closure: (a: number, b: number) => void
907
+ readonly __externref_table_dealloc: (a: number) => void
908
+ readonly __externref_drop_slice: (a: number, b: number) => void
909
+ readonly __wbindgen_start: () => void
910
+ }
911
+
912
+ export type SyncInitInput = BufferSource | WebAssembly.Module
913
+
914
+ /**
915
+ * Instantiates the given `module`, which can either be bytes or
916
+ * a precompiled `WebAssembly.Module`.
917
+ *
918
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
919
+ *
920
+ * @returns {InitOutput}
921
+ */
922
+ export function initSync(
923
+ module: { module: SyncInitInput } | SyncInitInput
924
+ ): InitOutput
925
+
926
+ /**
927
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
928
+ * for everything else, calls `WebAssembly.instantiate` directly.
929
+ *
930
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
931
+ *
932
+ * @returns {Promise<InitOutput>}
933
+ */
934
+ export default function __wbg_init(
935
+ module_or_path?:
936
+ | { module_or_path: InitInput | Promise<InitInput> }
937
+ | InitInput
938
+ | Promise<InitInput>
939
+ ): Promise<InitOutput>