qlue-ls 0.5.7 → 0.5.9

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/README.md CHANGED
@@ -109,8 +109,9 @@ I split auto-completion into 3 stages:
109
109
  2. Dynamic offline (local defined variables)
110
110
  3. Dynamic online (with data from a knowledge-graph)
111
111
 
112
- The implementation is in Stage 1.5.
113
- Static completion is done, dynamic offline completion is in development.
112
+ The implementation is in Stage 2.8.
113
+ Dynamic online completion works!
114
+ At the moment the context is limited to the Tripple the completion is requested from. Next step is to introduce full context sensitivity.
114
115
 
115
116
  ## 🛠️ Code Actions
116
117
 
@@ -132,13 +133,17 @@ Here is the full default configuration
132
133
  ```toml
133
134
  [format]
134
135
  align_predicates = true
135
- align_prefixes = false
136
+ align_prefixes = true
136
137
  separate_prolouge = false
137
138
  capitalize_keywords = true
138
139
  insert_spaces = true
139
- tab_size = 2
140
- where_new_line = false
140
+ tab_size = 10
141
+ where_new_line = true
141
142
  filter_same_line = true
143
+
144
+ [completion]
145
+ timeout_ms = 5000
146
+ result_size_limit = 42
142
147
  ```
143
148
 
144
149
  # 🌐 use in web
@@ -154,6 +159,91 @@ npm i qlue-ls
154
159
  You will have to wrap this in a Web Worker and provide a language server client.
155
160
  There will be more documentation on this in the future...
156
161
 
162
+ Until then you can check out the demo in ./editor/
163
+
164
+ # 🏗 Development Setup
165
+
166
+ Here is a quick guide to set this project up for development.
167
+
168
+ ## Requirements
169
+
170
+ - [rust](https://www.rust-lang.org/tools/install) >= 1.83.0
171
+ - [wasm-pack](https://rustwasm.github.io/wasm-pack/) >= 0.13.1
172
+ - [node & npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) >= 22.14.0 & >= 11.3.0
173
+ - \[Optional\] [just](https://github.com/casey/just)
174
+ - \[Optional\] [watchexec](https://github.com/watchexec/watchexec)
175
+
176
+ ## Initial Setup
177
+
178
+ You will only have to do this once.
179
+
180
+ ### install node dependencies
181
+
182
+ ```bash
183
+ cd editor
184
+ npm install
185
+ ```
186
+
187
+ ### build wasm & bindings
188
+
189
+ If you have [just](https://github.com/casey/just) installed:
190
+
191
+ ```bash
192
+ just build-wasm
193
+ ```
194
+
195
+ If you have [make](https://wiki.ubuntuusers.de/Makefile/) installed:
196
+
197
+ ```bash
198
+ make wasm
199
+ ```
200
+
201
+ If you don't have [just](https://github.com/casey/just) or [make](https://wiki.ubuntuusers.de/Makefile/) installed:
202
+
203
+ **Install [just](https://github.com/casey/just)**
204
+
205
+
206
+ ### link against local package
207
+
208
+ ```bash
209
+ cd pkg
210
+ npm link
211
+ cd ../editor
212
+ npm link qlue-ls
213
+ ```
214
+
215
+ ## Run application
216
+
217
+ ```bash
218
+ cd editor
219
+ npm run dev
220
+ ```
221
+
222
+ Now the webapp should be running, open the browser on `localhost:5173`.
223
+
224
+ ## Automatically rebuild on change
225
+
226
+ When developping the cycle is:
227
+
228
+ - Change the code
229
+ - Compile to wasm (or run tests)
230
+ - Evaluate
231
+
232
+ To avoid having to run a command each time to Compile I strongly recommend setting up a
233
+ auto runner like [watchexec](https://github.com/watchexec/watchexec).
234
+
235
+ ```bash
236
+ watchexec --restart --exts rs --exts toml just build-wasm
237
+ ```
238
+
239
+ or just:
240
+
241
+ ```bash
242
+ just watch-and-run build-wasm
243
+ ```
244
+
245
+ have fun!
246
+
157
247
  # 🙏 Special Thanks
158
248
 
159
249
  * [TJ DeVries](https://github.com/tjdevries) for the inspiration and great tutorials
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Ioannis Nezis <ioannis@nezis.de>"
6
6
  ],
7
7
  "description": "A formatter for SPARQL queries",
8
- "version": "0.5.7",
8
+ "version": "0.5.9",
9
9
  "license": "SEE LICENSE IN LICENSE",
10
10
  "repository": {
11
11
  "type": "git",
@@ -14,13 +14,11 @@
14
14
  "files": [
15
15
  "qlue_ls_bg.wasm",
16
16
  "qlue_ls.js",
17
- "qlue_ls_bg.js",
18
17
  "qlue_ls.d.ts"
19
18
  ],
20
19
  "main": "qlue_ls.js",
21
20
  "types": "qlue_ls.d.ts",
22
21
  "sideEffects": [
23
- "./qlue_ls.js",
24
22
  "./snippets/*"
25
23
  ],
26
24
  "keywords": [
package/qlue_ls.d.ts CHANGED
@@ -1,11 +1,307 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export function init_language_server(writer: WritableStreamDefaultWriter): Server;
4
+ export function listen(server: Server, reader: ReadableStreamDefaultReader): Promise<void>;
3
5
  export function format_raw(text: string): string;
4
6
  export function determine_operation_type(text: string): string;
5
- export function init_language_server(writer: WritableStreamDefaultWriter): Server;
6
7
  export function get_parse_tree(input: string, offset: number): any;
7
8
  export class Server {
8
9
  private constructor();
9
10
  free(): void;
10
- listen(reader: ReadableStreamDefaultReader): Promise<void>;
11
11
  }
12
+
13
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
14
+
15
+ export interface InitOutput {
16
+ readonly memory: WebAssembly.Memory;
17
+ readonly __wbg_server_free: (a: number, b: number) => void;
18
+ readonly init_language_server: (a: any) => number;
19
+ readonly listen: (a: number, b: any) => any;
20
+ readonly ts_query_cursor_exec: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
21
+ readonly ts_query_cursor_next_capture: (a: number, b: number, c: number) => number;
22
+ readonly ts_parser_parse_with_options: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
23
+ readonly format_raw: (a: number, b: number) => [number, number, number, number];
24
+ readonly determine_operation_type: (a: number, b: number) => [number, number, number, number];
25
+ readonly get_parse_tree: (a: number, b: number, c: number) => any;
26
+ readonly ts_query_new: (a: number, b: number, c: number, d: number, e: number) => number;
27
+ readonly ts_query_delete: (a: number) => void;
28
+ readonly ts_query_pattern_count: (a: number) => number;
29
+ readonly ts_query_capture_count: (a: number) => number;
30
+ readonly ts_query_string_count: (a: number) => number;
31
+ readonly ts_query_capture_name_for_id: (a: number, b: number, c: number) => number;
32
+ readonly ts_query_capture_quantifier_for_id: (a: number, b: number, c: number) => number;
33
+ readonly ts_query_string_value_for_id: (a: number, b: number, c: number) => number;
34
+ readonly ts_query_predicates_for_pattern: (a: number, b: number, c: number) => number;
35
+ readonly ts_query_start_byte_for_pattern: (a: number, b: number) => number;
36
+ readonly ts_query_end_byte_for_pattern: (a: number, b: number) => number;
37
+ readonly ts_query_is_pattern_rooted: (a: number, b: number) => number;
38
+ readonly ts_query_is_pattern_non_local: (a: number, b: number) => number;
39
+ readonly ts_query_is_pattern_guaranteed_at_step: (a: number, b: number) => number;
40
+ readonly ts_query__step_is_fallible: (a: number, b: number) => number;
41
+ readonly ts_query_disable_capture: (a: number, b: number, c: number) => void;
42
+ readonly ts_query_disable_pattern: (a: number, b: number) => void;
43
+ readonly ts_query_cursor_new: () => number;
44
+ readonly ts_query_cursor_delete: (a: number) => void;
45
+ readonly ts_query_cursor_did_exceed_match_limit: (a: number) => number;
46
+ readonly ts_query_cursor_match_limit: (a: number) => number;
47
+ readonly ts_query_cursor_set_match_limit: (a: number, b: number) => void;
48
+ readonly ts_query_cursor_timeout_micros: (a: number) => bigint;
49
+ readonly ts_query_cursor_set_timeout_micros: (a: number, b: bigint) => void;
50
+ readonly ts_language_symbol_for_name: (a: number, b: number, c: number, d: number) => number;
51
+ readonly ts_language_field_id_for_name: (a: number, b: number, c: number) => number;
52
+ readonly ts_tree_cursor_delete: (a: number) => void;
53
+ readonly ts_tree_cursor_init: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
54
+ readonly ts_query_cursor_exec_with_options: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
55
+ readonly ts_query_cursor_set_byte_range: (a: number, b: number, c: number) => number;
56
+ readonly ts_query_cursor_set_point_range: (a: number, b: number, c: number, d: number, e: number) => number;
57
+ readonly ts_node_end_byte: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
58
+ readonly ts_node_end_point: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
59
+ readonly ts_query_cursor__compare_nodes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
60
+ readonly ts_query_cursor__compare_captures: (a: number, b: number, c: number, d: number, e: number) => void;
61
+ readonly ts_tree_cursor_current_node: (a: number, b: number) => void;
62
+ readonly ts_tree_cursor_parent_node: (a: number, b: number) => void;
63
+ readonly ts_tree_cursor_goto_sibling_internal: (a: number, b: number) => number;
64
+ readonly ts_tree_cursor_goto_parent: (a: number) => number;
65
+ readonly ts_node_symbol: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
66
+ readonly ts_node_is_named: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
67
+ readonly ts_node_is_missing: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
68
+ readonly ts_tree_cursor_current_status: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
69
+ readonly ts_node_child_by_field_id: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
70
+ readonly ts_tree_cursor_goto_first_child_internal: (a: number) => number;
71
+ readonly ts_query_cursor_next_match: (a: number, b: number) => number;
72
+ readonly ts_query_cursor_remove_match: (a: number, b: number) => void;
73
+ readonly ts_query_cursor_set_max_start_depth: (a: number, b: number) => void;
74
+ readonly ts_parser_new: () => number;
75
+ readonly ts_parser_delete: (a: number) => void;
76
+ readonly ts_parser_reset: (a: number) => void;
77
+ readonly ts_parser_language: (a: number) => number;
78
+ readonly ts_parser_set_language: (a: number, b: number) => number;
79
+ readonly ts_parser_logger: (a: number, b: number) => void;
80
+ readonly ts_parser_set_logger: (a: number, b: number, c: number) => void;
81
+ readonly ts_parser_print_dot_graphs: (a: number, b: number) => void;
82
+ readonly ts_parser_cancellation_flag: (a: number) => number;
83
+ readonly ts_parser_set_cancellation_flag: (a: number, b: number) => void;
84
+ readonly ts_parser_timeout_micros: (a: number) => bigint;
85
+ readonly ts_parser_set_timeout_micros: (a: number, b: bigint) => void;
86
+ readonly ts_parser_set_included_ranges: (a: number, b: number, c: number) => number;
87
+ readonly ts_parser_included_ranges: (a: number, b: number) => number;
88
+ readonly ts_parser_parse: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
89
+ readonly ts_subtree_last_external_token: (a: number, b: number, c: number) => void;
90
+ readonly ts_stack_pop_pending: (a: number, b: number, c: number) => void;
91
+ readonly ts_language_next_state: (a: number, b: number, c: number) => number;
92
+ readonly ts_subtree_retain: (a: number, b: number) => void;
93
+ readonly ts_stack_push: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
94
+ readonly ts_subtree_release: (a: number, b: number, c: number) => void;
95
+ readonly ts_stack_print_dot_graph: (a: number, b: number, c: number) => number;
96
+ readonly ts_stack_error_cost: (a: number, b: number) => number;
97
+ readonly ts_stack_node_count_since_error: (a: number, b: number) => number;
98
+ readonly ts_stack_position: (a: number, b: number, c: number) => void;
99
+ readonly ts_stack_can_merge: (a: number, b: number, c: number) => number;
100
+ readonly ts_subtree_compare: (a: number, b: number, c: number, d: number, e: number) => number;
101
+ readonly ts_subtree_array_remove_trailing_extras: (a: number, b: number) => void;
102
+ readonly ts_subtree_new_node: (a: number, b: number, c: number, d: number, e: number) => void;
103
+ readonly ts_subtree_array_delete: (a: number, b: number) => void;
104
+ readonly ts_subtree_array_clear: (a: number, b: number) => void;
105
+ readonly ts_stack_merge: (a: number, b: number, c: number) => number;
106
+ readonly ts_stack_remove_version: (a: number, b: number) => void;
107
+ readonly ts_language_table_entry: (a: number, b: number, c: number, d: number) => void;
108
+ readonly ts_stack_renumber_version: (a: number, b: number, c: number) => void;
109
+ readonly ts_stack_pop_error: (a: number, b: number, c: number) => void;
110
+ readonly ts_subtree_make_mut: (a: number, b: number, c: number, d: number) => void;
111
+ readonly ts_stack_set_last_external_token: (a: number, b: number, c: number, d: number) => void;
112
+ readonly ts_subtree_external_scanner_state_eq: (a: number, b: number, c: number, d: number) => number;
113
+ readonly ts_lexer_start: (a: number) => void;
114
+ readonly ts_lexer_finish: (a: number, b: number) => void;
115
+ readonly ts_subtree_external_scanner_state: (a: number, b: number) => number;
116
+ readonly ts_stack_has_advanced_since_error: (a: number, b: number) => number;
117
+ readonly ts_subtree_new_error: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
118
+ readonly ts_language_is_reserved_word: (a: number, b: number, c: number) => number;
119
+ readonly ts_subtree_new_leaf: (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) => void;
120
+ readonly ts_external_scanner_state_init: (a: number, b: number, c: number) => void;
121
+ readonly ts_subtree_set_symbol: (a: number, b: number, c: number) => void;
122
+ readonly ts_lexer_init: (a: number) => void;
123
+ readonly ts_subtree_pool_new: (a: number, b: number) => void;
124
+ readonly ts_stack_new: (a: number) => number;
125
+ readonly ts_stack_delete: (a: number) => void;
126
+ readonly ts_lexer_delete: (a: number) => void;
127
+ readonly ts_subtree_pool_delete: (a: number) => void;
128
+ readonly ts_lexer_set_included_ranges: (a: number, b: number, c: number) => number;
129
+ readonly ts_stack_clear: (a: number) => void;
130
+ readonly ts_range_array_get_changed_ranges: (a: number, b: number, c: number, d: number, e: number) => void;
131
+ readonly ts_subtree_print_dot_graph: (a: number, b: number, c: number, d: number) => void;
132
+ readonly ts_stack_resume: (a: number, b: number, c: number) => void;
133
+ readonly ts_stack_copy_version: (a: number, b: number) => number;
134
+ readonly ts_subtree_new_missing_leaf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
135
+ readonly ts_stack_record_summary: (a: number, b: number, c: number) => void;
136
+ readonly ts_subtree_compress: (a: number, b: number, c: number, d: number, e: number) => void;
137
+ readonly ts_tree_new: (a: number, b: number, c: number, d: number, e: number) => number;
138
+ readonly ts_parser_parse_string: (a: number, b: number, c: number, d: number) => number;
139
+ readonly ts_parser_parse_string_encoding: (a: number, b: number, c: number, d: number, e: number) => number;
140
+ readonly ts_parser_set_wasm_store: (a: number, b: number) => void;
141
+ readonly ts_parser_take_wasm_store: (a: number) => number;
142
+ readonly ts_language_symbol_type: (a: number, b: number) => number;
143
+ readonly ts_lookahead_iterator_new: (a: number, b: number) => number;
144
+ readonly ts_tree_root_node: (a: number, b: number) => void;
145
+ readonly ts_tree_root_node_with_offset: (a: number, b: number, c: number, d: number, e: number) => void;
146
+ readonly ts_tree_edit: (a: number, b: number) => void;
147
+ readonly ts_tree_get_changed_ranges: (a: number, b: number, c: number) => number;
148
+ readonly ts_tree_included_ranges: (a: number, b: number) => number;
149
+ readonly ts_tree_delete: (a: number) => void;
150
+ readonly ts_tree_copy: (a: number) => number;
151
+ readonly ts_node_grammar_symbol: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
152
+ readonly ts_node_type: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
153
+ readonly ts_node_grammar_type: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
154
+ readonly ts_node_is_extra: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
155
+ readonly ts_node_has_changes: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
156
+ readonly ts_node_has_error: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
157
+ readonly ts_node_parse_state: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
158
+ readonly ts_node_next_parse_state: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
159
+ readonly ts_node_child_count: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
160
+ readonly ts_node_named_child_count: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
161
+ readonly ts_node_field_name_for_child: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
162
+ readonly ts_node_field_name_for_named_child: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
163
+ readonly ts_node_parent: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
164
+ readonly ts_node_child_with_descendant: (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) => void;
165
+ readonly ts_node_descendant_count: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
166
+ readonly ts_node_string: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
167
+ readonly ts_node_edit: (a: number, b: number) => void;
168
+ readonly ts_tree_cursor_current_field_id: (a: number) => number;
169
+ readonly ts_tree_cursor_current_depth: (a: number) => number;
170
+ readonly ts_tree_cursor_goto_last_child_internal: (a: number) => number;
171
+ readonly ts_tree_cursor_goto_next_sibling: (a: number) => number;
172
+ readonly ts_tree_cursor_goto_descendant: (a: number, b: number) => void;
173
+ readonly ts_tree_cursor_goto_previous_sibling: (a: number) => number;
174
+ readonly ts_tree_cursor_reset_to: (a: number, b: number) => void;
175
+ readonly ts_tree_cursor_copy: (a: number, b: number) => void;
176
+ readonly ts_lookahead_iterator_current_symbol_name: (a: number) => number;
177
+ readonly ts_lookahead_iterator_reset: (a: number, b: number, c: number) => number;
178
+ readonly ts_lookahead_iterator_reset_state: (a: number, b: number) => number;
179
+ readonly ts_lookahead_iterator_next: (a: number) => number;
180
+ readonly ts_lookahead_iterator_delete: (a: number) => void;
181
+ readonly ts_external_scanner_state_copy: (a: number, b: number) => void;
182
+ readonly ts_external_scanner_state_delete: (a: number) => void;
183
+ readonly ts_external_scanner_state_data: (a: number) => number;
184
+ readonly ts_external_scanner_state_eq: (a: number, b: number, c: number) => number;
185
+ readonly ts_subtree_array_copy: (a: number, b: number, c: number, d: number) => void;
186
+ readonly ts_subtree_array_reverse: (a: number) => void;
187
+ readonly ts_subtree_clone: (a: number, b: number, c: number) => void;
188
+ readonly ts_subtree_summarize_children: (a: number, b: number, c: number) => void;
189
+ readonly ts_subtree_new_error_node: (a: number, b: number, c: number, d: number) => void;
190
+ readonly ts_subtree_edit: (a: number, b: number, c: number, d: number, e: number) => void;
191
+ readonly ts_subtree_string: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
192
+ readonly ts_subtree__print_dot_graph: (a: number, b: number, c: number, d: number, e: number) => void;
193
+ readonly ts_stack_version_count: (a: number) => number;
194
+ readonly ts_stack_state: (a: number, b: number) => number;
195
+ readonly ts_stack_last_external_token: (a: number, b: number, c: number) => void;
196
+ readonly ts_stack_pop_count: (a: number, b: number, c: number, d: number) => void;
197
+ readonly ts_stack_pop_all: (a: number, b: number, c: number) => void;
198
+ readonly ts_stack_get_summary: (a: number, b: number) => number;
199
+ readonly ts_stack_dynamic_precedence: (a: number, b: number) => number;
200
+ readonly ts_stack_swap_versions: (a: number, b: number, c: number) => void;
201
+ readonly ts_stack_halt: (a: number, b: number) => void;
202
+ readonly ts_stack_pause: (a: number, b: number, c: number, d: number) => void;
203
+ readonly ts_stack_is_active: (a: number, b: number) => number;
204
+ readonly ts_stack_is_halted: (a: number, b: number) => number;
205
+ readonly ts_stack_is_paused: (a: number, b: number) => number;
206
+ readonly ts_tree_cursor_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
207
+ readonly ts_tree_cursor_reset: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
208
+ readonly ts_tree_cursor_goto_first_child: (a: number) => number;
209
+ readonly ts_tree_cursor_goto_last_child: (a: number) => number;
210
+ readonly ts_tree_cursor_goto_first_child_for_byte: (a: number, b: number) => number;
211
+ readonly ts_tree_cursor_goto_first_child_for_point: (a: number, b: number, c: number) => number;
212
+ readonly ts_tree_cursor_goto_next_sibling_internal: (a: number) => number;
213
+ readonly ts_tree_cursor_goto_previous_sibling_internal: (a: number) => number;
214
+ readonly ts_tree_cursor_current_descendant_index: (a: number) => number;
215
+ readonly ts_tree_cursor_current_field_name: (a: number) => number;
216
+ readonly ts_node_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
217
+ readonly ts_node_start_byte: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
218
+ readonly ts_node_start_point: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
219
+ readonly ts_node_language: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
220
+ readonly ts_node_eq: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
221
+ readonly ts_node_is_null: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
222
+ readonly ts_node_is_error: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
223
+ readonly ts_node_child: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
224
+ readonly ts_node_named_child: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
225
+ readonly ts_node_child_by_field_name: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
226
+ readonly ts_node_next_sibling: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
227
+ readonly ts_node_next_named_sibling: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
228
+ readonly ts_node_prev_sibling: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
229
+ readonly ts_node_prev_named_sibling: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
230
+ readonly ts_node_first_child_for_byte: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
231
+ readonly ts_node_first_named_child_for_byte: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
232
+ readonly ts_node_descendant_for_byte_range: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
233
+ readonly ts_node_named_descendant_for_byte_range: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
234
+ readonly ts_node_descendant_for_point_range: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
235
+ readonly ts_node_named_descendant_for_point_range: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
236
+ readonly ts_range_array_intersects: (a: number, b: number, c: number, d: number) => number;
237
+ readonly ts_subtree_get_changed_ranges: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
238
+ readonly ts_tree_language: (a: number) => number;
239
+ readonly ts_wasm_store_start: (a: number, b: number, c: number) => number;
240
+ readonly ts_wasm_store_call_lex_keyword: (a: number, b: number) => number;
241
+ readonly ts_wasm_store_call_scanner_create: (a: number) => number;
242
+ readonly ts_wasm_store_call_scanner_destroy: (a: number, b: number) => void;
243
+ readonly ts_wasm_store_call_scanner_scan: (a: number, b: number, c: number) => number;
244
+ readonly ts_wasm_store_call_scanner_serialize: (a: number, b: number, c: number) => number;
245
+ readonly ts_wasm_store_call_scanner_deserialize: (a: number, b: number, c: number, d: number) => void;
246
+ readonly ts_language_is_wasm: (a: number) => number;
247
+ readonly ts_wasm_language_release: (a: number) => void;
248
+ readonly ts_wasm_store_call_lex_main: (a: number, b: number) => number;
249
+ readonly ts_wasm_store_reset: (a: number) => void;
250
+ readonly ts_wasm_store_has_error: (a: number) => number;
251
+ readonly ts_wasm_store_delete: (a: number) => void;
252
+ readonly ts_wasm_language_retain: (a: number) => void;
253
+ readonly ts_language_copy: (a: number) => number;
254
+ readonly ts_language_delete: (a: number) => void;
255
+ readonly ts_language_symbol_count: (a: number) => number;
256
+ readonly ts_language_state_count: (a: number) => number;
257
+ readonly ts_language_supertypes: (a: number, b: number) => number;
258
+ readonly ts_language_subtypes: (a: number, b: number, c: number) => number;
259
+ readonly ts_language_abi_version: (a: number) => number;
260
+ readonly ts_language_metadata: (a: number) => number;
261
+ readonly ts_language_name: (a: number) => number;
262
+ readonly ts_language_field_count: (a: number) => number;
263
+ readonly ts_language_lex_mode_for_state: (a: number, b: number, c: number) => void;
264
+ readonly ts_language_symbol_metadata: (a: number, b: number, c: number) => void;
265
+ readonly ts_language_public_symbol: (a: number, b: number) => number;
266
+ readonly ts_language_symbol_name: (a: number, b: number) => number;
267
+ readonly ts_language_field_name_for_id: (a: number, b: number) => number;
268
+ readonly ts_lookahead_iterator_current_symbol: (a: number) => number;
269
+ readonly ts_language_version: (a: number) => number;
270
+ readonly ts_lookahead_iterator_language: (a: number) => number;
271
+ readonly ts_lexer_set_input: (a: number, b: number, c: number, d: number, e: number) => void;
272
+ readonly ts_lexer_reset: (a: number, b: number, c: number, d: number) => void;
273
+ readonly ts_lexer_mark_end: (a: number) => void;
274
+ readonly ts_lexer_included_ranges: (a: number, b: number) => number;
275
+ readonly __wbindgen_exn_store: (a: number) => void;
276
+ readonly __externref_table_alloc: () => number;
277
+ readonly __wbindgen_export_2: WebAssembly.Table;
278
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
279
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
280
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
281
+ readonly __wbindgen_export_6: WebAssembly.Table;
282
+ readonly __externref_table_dealloc: (a: number) => void;
283
+ readonly closure597_externref_shim: (a: number, b: number, c: any) => void;
284
+ readonly closure610_externref_shim: (a: number, b: number, c: any, d: any) => void;
285
+ readonly __wbindgen_start: () => void;
286
+ }
287
+
288
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
289
+ /**
290
+ * Instantiates the given `module`, which can either be bytes or
291
+ * a precompiled `WebAssembly.Module`.
292
+ *
293
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
294
+ *
295
+ * @returns {InitOutput}
296
+ */
297
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
298
+
299
+ /**
300
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
301
+ * for everything else, calls `WebAssembly.instantiate` directly.
302
+ *
303
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
304
+ *
305
+ * @returns {Promise<InitOutput>}
306
+ */
307
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;