mam 1.11.26 → 1.11.29

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/node.d.ts CHANGED
@@ -1,2 +1,1328 @@
1
+ declare let _$_: {
2
+ new (): {};
3
+ } & typeof globalThis;
4
+ declare class $ extends _$_ {
5
+ }
6
+ declare namespace $ {
7
+ export type $ = typeof $$;
8
+ export class $$ extends $ {
9
+ }
10
+ namespace $$ {
11
+ type $$ = $;
12
+ }
13
+ export {};
14
+ }
15
+
16
+ declare namespace $ {
17
+ type $mol_log3_event<Fields> = {
18
+ [key in string]: unknown;
19
+ } & {
20
+ time?: string;
21
+ place: unknown;
22
+ message: string;
23
+ } & Fields;
24
+ type $mol_log3_logger<Fields, Res = void> = (this: $, event: $mol_log3_event<Fields>) => Res;
25
+ let $mol_log3_come: $mol_log3_logger<{}>;
26
+ let $mol_log3_done: $mol_log3_logger<{}>;
27
+ let $mol_log3_fail: $mol_log3_logger<{}>;
28
+ let $mol_log3_warn: $mol_log3_logger<{
29
+ hint: string;
30
+ }>;
31
+ let $mol_log3_rise: $mol_log3_logger<{}>;
32
+ let $mol_log3_area: $mol_log3_logger<{}, () => void>;
33
+ function $mol_log3_area_lazy(this: $, event: $mol_log3_event<{}>): () => void;
34
+ let $mol_log3_stack: (() => void)[];
35
+ }
36
+
37
+ declare namespace $ {
38
+ const $mol_ambient_ref: unique symbol;
39
+ type $mol_ambient_context = $;
40
+ function $mol_ambient(this: $ | void, overrides: Partial<$>): $;
41
+ }
42
+
43
+ declare namespace $ {
44
+ function $mol_delegate<Value extends object>(proto: Value, target: () => Value): Value;
45
+ }
46
+
47
+ declare namespace $ {
48
+ const $mol_owning_map: WeakMap<any, any>;
49
+ function $mol_owning_allow<Having>(having: Having): having is Having & {
50
+ destructor(): void;
51
+ };
52
+ function $mol_owning_get<Having, Owner extends object>(having: Having, Owner?: {
53
+ new (): Owner;
54
+ }): Owner | null;
55
+ function $mol_owning_check<Owner, Having>(owner: Owner, having: Having): having is Having & {
56
+ destructor(): void;
57
+ };
58
+ function $mol_owning_catch<Owner, Having>(owner: Owner, having: Having): boolean;
59
+ }
60
+
61
+ declare namespace $ {
62
+ function $mol_fail(error: any): never;
63
+ }
64
+
65
+ declare namespace $ {
66
+ function $mol_fail_hidden(error: any): never;
67
+ }
68
+
69
+ declare namespace $ {
70
+ type $mol_type_writable<T> = {
71
+ -readonly [P in keyof T]: T[P];
72
+ };
73
+ }
74
+
75
+ declare namespace $ {
76
+ class $mol_object2 {
77
+ static $: typeof $$;
78
+ [$mol_ambient_ref]: typeof $$;
79
+ get $(): $;
80
+ set $(next: $);
81
+ static create<Instance>(this: new (init?: (instance: any) => void) => Instance, init?: (instance: $mol_type_writable<Instance>) => void): Instance;
82
+ static [Symbol.toPrimitive](): any;
83
+ static toString(): any;
84
+ destructor(): void;
85
+ toString(): any;
86
+ toJSON(): any;
87
+ }
88
+ }
89
+
90
+ declare namespace $ {
91
+ const $mol_tree_convert: unique symbol;
92
+ type $mol_tree_path = Array<string | number | null>;
93
+ type $mol_tree_hack = (input: $mol_tree, context: $mol_tree_context) => readonly $mol_tree[];
94
+ type $mol_tree_context = Record<string, $mol_tree_hack>;
95
+ type $mol_tree_library = Record<string, $mol_tree_context>;
96
+ class $mol_tree extends $mol_object2 {
97
+ readonly type: string;
98
+ readonly data: string;
99
+ readonly sub: readonly $mol_tree[];
100
+ readonly baseUri: string;
101
+ readonly row: number;
102
+ readonly col: number;
103
+ readonly length: number;
104
+ constructor(config?: Partial<$mol_tree>);
105
+ static values(str: string, baseUri?: string): $mol_tree[];
106
+ clone(config?: Partial<$mol_tree>): $mol_tree;
107
+ make(config: Partial<$mol_tree>): $mol_tree;
108
+ make_data(value: string, sub?: readonly $mol_tree[]): $mol_tree;
109
+ make_struct(type: string, sub?: readonly $mol_tree[]): $mol_tree;
110
+ static fromString(str: string, baseUri?: string): $mol_tree;
111
+ static fromJSON(json: any, baseUri?: string): $mol_tree;
112
+ get uri(): string;
113
+ toString(prefix?: string): string;
114
+ toJSON(): any;
115
+ get value(): string;
116
+ insert(value: $mol_tree, ...path: $mol_tree_path): $mol_tree;
117
+ select(...path: $mol_tree_path): $mol_tree;
118
+ filter(path: string[], value?: string): $mol_tree;
119
+ transform(visit: (stack: $mol_tree[], sub: () => $mol_tree[]) => $mol_tree | null, stack?: $mol_tree[]): $mol_tree | null;
120
+ hack(context: $mol_tree_context): $mol_tree;
121
+ error(message: string): Error;
122
+ }
123
+ }
124
+
125
+ declare namespace $ {
126
+ class $mol_term_color {
127
+ static reset: (str: string) => string;
128
+ static bold: (str: string) => string;
129
+ static italic: (str: string) => string;
130
+ static underline: (str: string) => string;
131
+ static inverse: (str: string) => string;
132
+ static hidden: (str: string) => string;
133
+ static strike: (str: string) => string;
134
+ static gray: (str: string) => string;
135
+ static red: (str: string) => string;
136
+ static green: (str: string) => string;
137
+ static yellow: (str: string) => string;
138
+ static blue: (str: string) => string;
139
+ static magenta: (str: string) => string;
140
+ static cyan: (str: string) => string;
141
+ static white: (str: string) => string;
142
+ static Red: (str: string) => string;
143
+ static Green: (str: string) => string;
144
+ static Yellow: (str: string) => string;
145
+ static Blue: (str: string) => string;
146
+ static Magenta: (str: string) => string;
147
+ static Cyan: (str: string) => string;
148
+ static White: (str: string) => string;
149
+ static ansi(open: number, close: number): (str: string) => string;
150
+ }
151
+ }
152
+
153
+ declare namespace $ {
154
+ function $mol_log3_node_make(level: keyof Console, output: 'stdout' | 'stderr', type: string, color: (str: string) => string): (this: $, event: $mol_log3_event<{}>) => () => void;
155
+ }
156
+
157
+ declare namespace $ {
158
+ enum $mol_wire_cursor {
159
+ stale = -1,
160
+ doubt = -2,
161
+ fresh = -3,
162
+ final = -4
163
+ }
164
+ }
165
+
166
+ declare namespace $ {
167
+ class $mol_wire_pub extends Object {
168
+ data: unknown[];
169
+ static get [Symbol.species](): ArrayConstructor;
170
+ protected sub_from: number;
171
+ get sub_list(): readonly $mol_wire_sub[];
172
+ get sub_empty(): boolean;
173
+ sub_on(sub: $mol_wire_pub, pub_pos: number): number;
174
+ sub_off(sub_pos: number): void;
175
+ reap(): void;
176
+ promote(): void;
177
+ fresh(): void;
178
+ complete(): void;
179
+ emit(quant?: $mol_wire_cursor): void;
180
+ peer_move(from_pos: number, to_pos: number): void;
181
+ peer_repos(peer_pos: number, self_pos: number): void;
182
+ }
183
+ }
184
+
185
+ declare namespace $ {
186
+ interface $mol_wire_sub extends $mol_wire_pub {
187
+ track_on(): $mol_wire_sub | null;
188
+ track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
189
+ pub_off(pub_pos: number): void;
190
+ track_cut(sub: $mol_wire_pub | null): void;
191
+ track_off(sub: $mol_wire_pub | null): void;
192
+ absorb(quant: $mol_wire_cursor): void;
193
+ destructor(): void;
194
+ }
195
+ }
196
+
197
+ declare namespace $ {
198
+ function $mol_wire_auto(next?: $mol_wire_sub | null): $mol_wire_sub | null;
199
+ const $mol_wire_affected: (number | $mol_wire_sub)[];
200
+ }
201
+
202
+ declare namespace $ {
203
+ function $mol_dev_format_register(config: {
204
+ header: (val: any, config: any) => any;
205
+ hasBody: (val: any, config: any) => false;
206
+ } | {
207
+ header: (val: any, config: any) => any;
208
+ hasBody: (val: any, config: any) => boolean;
209
+ body: (val: any, config: any) => any;
210
+ }): void;
211
+ let $mol_dev_format_head: symbol;
212
+ let $mol_dev_format_body: symbol;
213
+ function $mol_dev_format_native(obj: any): any;
214
+ function $mol_dev_format_auto(obj: any): any;
215
+ function $mol_dev_format_element(element: string, style: object, ...content: any[]): any[];
216
+ function $mol_dev_format_span(style: object, ...content: any[]): any[];
217
+ let $mol_dev_format_div: (style: object, ...content: any[]) => any[];
218
+ let $mol_dev_format_ol: (style: object, ...content: any[]) => any[];
219
+ let $mol_dev_format_li: (style: object, ...content: any[]) => any[];
220
+ let $mol_dev_format_table: (style: object, ...content: any[]) => any[];
221
+ let $mol_dev_format_tr: (style: object, ...content: any[]) => any[];
222
+ let $mol_dev_format_td: (style: object, ...content: any[]) => any[];
223
+ let $mol_dev_format_accent: (...args: any[]) => any[];
224
+ let $mol_dev_format_strong: (...args: any[]) => any[];
225
+ let $mol_dev_format_string: (...args: any[]) => any[];
226
+ let $mol_dev_format_shade: (...args: any[]) => any[];
227
+ let $mol_dev_format_indent: (...args: any[]) => any[];
228
+ }
229
+
230
+ declare namespace $ {
231
+ class $mol_wire_pub_sub extends $mol_wire_pub implements $mol_wire_sub {
232
+ protected pub_from: number;
233
+ protected cursor: $mol_wire_cursor;
234
+ get pub_list(): $mol_wire_pub[];
235
+ track_on(): $mol_wire_sub | null;
236
+ promote(): void;
237
+ track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
238
+ track_off(sub: $mol_wire_sub | null): void;
239
+ pub_off(sub_pos: number): void;
240
+ destructor(): void;
241
+ track_cut(): void;
242
+ complete(): void;
243
+ complete_pubs(): void;
244
+ absorb(quant?: $mol_wire_cursor): void;
245
+ get pub_empty(): boolean;
246
+ }
247
+ }
248
+
249
+ declare namespace $ {
250
+ class $mol_after_timeout extends $mol_object2 {
251
+ delay: number;
252
+ task: () => void;
253
+ id: any;
254
+ constructor(delay: number, task: () => void);
255
+ destructor(): void;
256
+ }
257
+ }
258
+
259
+ declare namespace $ {
260
+ class $mol_after_frame extends $mol_after_timeout {
261
+ task: () => void;
262
+ constructor(task: () => void);
263
+ }
264
+ }
265
+
266
+ declare namespace $ {
267
+ abstract class $mol_wire_fiber<Host, Args extends readonly unknown[], Result> extends $mol_wire_pub_sub {
268
+ readonly task: (this: Host, ...args: Args) => Result;
269
+ readonly host?: Host | undefined;
270
+ static warm: boolean;
271
+ static planning: Set<$mol_wire_fiber<any, any, any>>;
272
+ static reaping: Set<$mol_wire_fiber<any, any, any>>;
273
+ static plan_task: $mol_after_frame | null;
274
+ static plan(): void;
275
+ static sync(): void;
276
+ cache: Result | Error | Promise<Result | Error>;
277
+ get args(): Args;
278
+ result(): Result | undefined;
279
+ field(): string;
280
+ constructor(id: string, task: (this: Host, ...args: Args) => Result, host?: Host | undefined, args?: Args);
281
+ plan(): void;
282
+ reap(): void;
283
+ toString(): any;
284
+ toJSON(): any;
285
+ get $(): any;
286
+ emit(quant?: $mol_wire_cursor): void;
287
+ fresh(): void;
288
+ refresh(): void;
289
+ abstract put(next: Result | Error | Promise<Result | Error>): Result | Error | Promise<Result | Error>;
290
+ sync(): Awaited<Result>;
291
+ async(): Promise<Result>;
292
+ }
293
+ }
294
+
295
+ declare namespace $ {
296
+ let $mol_compare_deep_cache: WeakMap<any, WeakMap<any, boolean>>;
297
+ function $mol_compare_deep<Value>(left: Value, right: Value): boolean;
298
+ }
299
+
300
+ declare namespace $ {
301
+ class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
302
+ static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, [...Args], Result>;
303
+ complete(): void;
304
+ put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
305
+ }
306
+ }
307
+
308
+ declare namespace $ {
309
+ function $mol_wire_async<Host extends object>(obj: Host): (Host extends (...args: infer Args) => infer Res ? Res extends Promise<any> ? Host : (...args: Args) => Promise<Res> : {}) & { [key in keyof Host]: Host[key] extends (...args: infer Args_1) => infer Res_1 ? Res_1 extends Promise<any> ? Host[key] : (...args: Args_1) => Promise<Res_1> : Host[key]; };
310
+ }
311
+
312
+ declare namespace $ {
313
+ namespace $$ { }
314
+ const $mol_object_field: unique symbol;
315
+ class $mol_object extends $mol_object2 {
316
+ static make<Instance>(this: {
317
+ new (): Instance;
318
+ }, config: Partial<Instance>): Instance;
319
+ }
320
+ }
321
+
322
+ declare namespace $ {
323
+ function $mol_guid(length?: number, exists?: (id: string) => boolean): string;
324
+ }
325
+
326
+ declare namespace $ {
327
+ const $mol_key_store: WeakMap<object, string>;
328
+ function $mol_key<Value>(value: Value): string;
329
+ }
330
+
331
+ declare namespace $ {
332
+ function $mol_wire_method<Host extends object, Args extends readonly any[], Result>(host: Host, field: PropertyKey, descr?: TypedPropertyDescriptor<(...args: Args) => Result>): {
333
+ value: (this: Host, ...args: Args) => Result;
334
+ enumerable?: boolean | undefined;
335
+ configurable?: boolean | undefined;
336
+ writable?: boolean | undefined;
337
+ get?: (() => (...args: Args) => Result) | undefined;
338
+ set?: ((value: (...args: Args) => Result) => void) | undefined;
339
+ };
340
+ }
341
+
342
+ declare namespace $ {
343
+ class $mol_wire_atom<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
344
+ static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result, keys: number): (host: Host, args: Args) => $mol_wire_atom<Host, [...Args], Result>;
345
+ static watching: Set<$mol_wire_atom<any, any, any>>;
346
+ static watch(): void;
347
+ watch(): void;
348
+ resync(args: Args): Error | Result | Promise<Error | Result>;
349
+ once(): Awaited<Result>;
350
+ destructor(): void;
351
+ put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
352
+ }
353
+ }
354
+
355
+ declare namespace $ {
356
+ function $mol_wire_mem<Keys extends number>(keys: Keys): <Host extends object, Field extends keyof Host, Prop extends Extract<Host[Field], (...args: any[]) => any>>(host: Host, field: Field, descr?: TypedPropertyDescriptor<Prop> | undefined) => {
357
+ value: NonNullable<Prop>;
358
+ enumerable?: boolean | undefined;
359
+ configurable?: boolean | undefined;
360
+ writable?: boolean | undefined;
361
+ get?: (() => Prop) | undefined;
362
+ set?: ((value: Prop) => void) | undefined;
363
+ };
364
+ function $mol_wire_mem_func<Keys extends number>(keys: Keys): <Result, Host, Args extends unknown[], Func extends (this: Host, ...args: Args) => Result>(func: Func) => Func;
365
+ }
366
+
367
+ declare namespace $ {
368
+ let $mol_mem: <Host extends object, Field extends keyof Host, Prop extends Extract<Host[Field], (...args: any[]) => any>>(host: Host, field: Field, descr?: TypedPropertyDescriptor<Prop> | undefined) => {
369
+ value: NonNullable<Prop>;
370
+ enumerable?: boolean | undefined;
371
+ configurable?: boolean | undefined;
372
+ writable?: boolean | undefined;
373
+ get?: (() => Prop) | undefined;
374
+ set?: ((value: Prop) => void) | undefined;
375
+ };
376
+ let $mol_mem_key: <Host extends object, Field extends keyof Host, Prop extends Extract<Host[Field], (...args: any[]) => any>>(host: Host, field: Field, descr?: TypedPropertyDescriptor<Prop> | undefined) => {
377
+ value: NonNullable<Prop>;
378
+ enumerable?: boolean | undefined;
379
+ configurable?: boolean | undefined;
380
+ writable?: boolean | undefined;
381
+ get?: (() => Prop) | undefined;
382
+ set?: ((value: Prop) => void) | undefined;
383
+ };
384
+ let $mol_mem_key2: <Host extends object, Field extends keyof Host, Prop extends Extract<Host[Field], (...args: any[]) => any>>(host: Host, field: Field, descr?: TypedPropertyDescriptor<Prop> | undefined) => {
385
+ value: NonNullable<Prop>;
386
+ enumerable?: boolean | undefined;
387
+ configurable?: boolean | undefined;
388
+ writable?: boolean | undefined;
389
+ get?: (() => Prop) | undefined;
390
+ set?: ((value: Prop) => void) | undefined;
391
+ };
392
+ let $mol_mem_key3: <Host extends object, Field extends keyof Host, Prop extends Extract<Host[Field], (...args: any[]) => any>>(host: Host, field: Field, descr?: TypedPropertyDescriptor<Prop> | undefined) => {
393
+ value: NonNullable<Prop>;
394
+ enumerable?: boolean | undefined;
395
+ configurable?: boolean | undefined;
396
+ writable?: boolean | undefined;
397
+ get?: (() => Prop) | undefined;
398
+ set?: ((value: Prop) => void) | undefined;
399
+ };
400
+ }
401
+
402
+ interface $node {
403
+ [key: string]: any;
404
+ }
405
+ declare var $node: $node;
406
+
407
+ declare namespace $ {
408
+ function $mol_env(): Record<string, string | undefined>;
409
+ }
410
+
411
+ declare namespace $ {
412
+ }
413
+
414
+ /// <reference types="node" />
415
+ declare namespace $ {
416
+ function $mol_exec(this: $, dir: string, command: string, ...args: string[]): import("child_process").SpawnSyncReturns<Buffer>;
417
+ }
418
+
419
+ declare namespace $ {
420
+ type $mol_charset_encoding = 'utf8' | 'ibm866' | 'iso-8859-2' | 'iso-8859-3' | 'iso-8859-4' | 'iso-8859-5' | 'iso-8859-6' | 'iso-8859-7' | 'iso-8859-8' | 'iso-8859-8i' | 'iso-8859-10' | 'iso-8859-13' | 'iso-8859-14' | 'iso-8859-15' | 'iso-8859-16' | 'koi8-r' | 'koi8-u' | 'koi8-r' | 'macintosh' | 'windows-874' | 'windows-1250' | 'windows-1251' | 'windows-1252' | 'windows-1253' | 'windows-1254' | 'windows-1255' | 'windows-1256' | 'windows-1257' | 'windows-1258' | 'x-mac-cyrillic' | 'gbk' | 'gb18030' | 'hz-gb-2312' | 'big5' | 'euc-jp' | 'iso-2022-jp' | 'shift-jis' | 'euc-kr' | 'iso-2022-kr';
421
+ function $mol_charset_decode(value: Uint8Array, code?: $mol_charset_encoding): string;
422
+ }
423
+
424
+ declare namespace $ {
425
+ function $mol_charset_encode(value: string): Uint8Array;
426
+ }
427
+
428
+ declare namespace $ {
429
+ type $mol_file_type = 'file' | 'dir' | 'link';
430
+ interface $mol_file_stat {
431
+ type: $mol_file_type;
432
+ size: number;
433
+ atime: Date;
434
+ mtime: Date;
435
+ ctime: Date;
436
+ }
437
+ class $mol_file_not_found extends Error {
438
+ }
439
+ abstract class $mol_file extends $mol_object {
440
+ static absolute(path: string): $mol_file;
441
+ static relative(path: string): $mol_file;
442
+ static base: string;
443
+ path(): string;
444
+ parent(): $mol_file;
445
+ abstract stat(next?: $mol_file_stat | null, virt?: 'virt'): $mol_file_stat | null;
446
+ reset(): void;
447
+ version(): string;
448
+ abstract ensure(): void;
449
+ watcher(): {
450
+ destructor(): void;
451
+ };
452
+ exists(next?: boolean): boolean;
453
+ type(): "" | $mol_file_type;
454
+ name(): string;
455
+ ext(): string;
456
+ abstract buffer(next?: Uint8Array): Uint8Array;
457
+ text(next?: string, virt?: 'virt'): string;
458
+ abstract sub(): $mol_file[];
459
+ abstract resolve(path: string): $mol_file;
460
+ abstract relate(base?: $mol_file): string;
461
+ abstract append(next: Uint8Array | string): void;
462
+ find(include?: RegExp, exclude?: RegExp): $mol_file[];
463
+ size(): number;
464
+ }
465
+ }
466
+
467
+ declare namespace $ {
468
+ function $mol_const<Value>(value: Value): {
469
+ (): Value;
470
+ '()': Value;
471
+ };
472
+ }
473
+
474
+ declare namespace $ {
475
+ function $mol_fail_catch(error: unknown): boolean;
476
+ }
477
+
478
+ declare namespace $ {
479
+ function $mol_fail_log(error: unknown): boolean;
480
+ }
481
+
482
+ declare namespace $ {
483
+ function $mol_wire_probe<Value>(task: () => Value, next?: Value): Value | undefined;
484
+ }
485
+
486
+ declare namespace $ {
487
+ let $mol_mem_cached: typeof $mol_wire_probe;
488
+ }
489
+
490
+ declare namespace $ {
491
+ function $mol_compare_array<Value extends ArrayLike<unknown>>(a: Value, b: Value): boolean;
492
+ }
493
+
494
+ declare namespace $ {
495
+ class $mol_file_node extends $mol_file {
496
+ static absolute(path: string): $mol_file_node;
497
+ static relative(path: string): $mol_file_node;
498
+ watcher(): {
499
+ destructor(): void;
500
+ };
501
+ stat(next?: $mol_file_stat | null, virt?: 'virt'): $mol_file_stat | null;
502
+ ensure(): void;
503
+ buffer(next?: Uint8Array): Uint8Array;
504
+ sub(): $mol_file[];
505
+ resolve(path: string): $mol_file;
506
+ relate(base?: $mol_file): string;
507
+ append(next: Uint8Array | string): undefined;
508
+ }
509
+ }
510
+
511
+ declare namespace $ {
512
+ class $mol_span extends $mol_object2 {
513
+ readonly uri: string;
514
+ readonly source: string;
515
+ readonly row: number;
516
+ readonly col: number;
517
+ readonly length: number;
518
+ constructor(uri: string, source: string, row: number, col: number, length: number);
519
+ static unknown: $mol_span;
520
+ static begin(uri: string, source?: string): $mol_span;
521
+ static end(uri: string, source: string): $mol_span;
522
+ static entire(uri: string, source: string): $mol_span;
523
+ toString(): any;
524
+ toJSON(): {
525
+ uri: string;
526
+ row: number;
527
+ col: number;
528
+ length: number;
529
+ };
530
+ error(message: string, Class?: ErrorConstructor): Error;
531
+ span(row: number, col: number, length: number): $mol_span;
532
+ after(length?: number): $mol_span;
533
+ slice(begin: number, end?: number): $mol_span;
534
+ }
535
+ }
536
+
537
+ declare namespace $ {
538
+ class $mol_error_syntax extends SyntaxError {
539
+ reason: string;
540
+ line: string;
541
+ span: $mol_span;
542
+ constructor(reason: string, line: string, span: $mol_span);
543
+ }
544
+ }
545
+
546
+ declare namespace $ {
547
+ function $mol_tree2_from_string(this: $, str: string, uri?: string): $mol_tree2;
548
+ }
549
+
550
+ declare namespace $ {
551
+ function $mol_tree2_to_string(this: $, tree: $mol_tree2): string;
552
+ }
553
+
554
+ declare namespace $ {
555
+ type $mol_tree2_path = Array<string | number | null>;
556
+ type $mol_tree2_hack<Context> = (input: $mol_tree2, belt: $mol_tree2_belt<Context>, context: Context) => readonly $mol_tree2[];
557
+ type $mol_tree2_belt<Context> = Record<string, $mol_tree2_hack<Context>>;
558
+ class $mol_tree2 extends Object {
559
+ readonly type: string;
560
+ readonly value: string;
561
+ readonly kids: readonly $mol_tree2[];
562
+ readonly span: $mol_span;
563
+ constructor(type: string, value: string, kids: readonly $mol_tree2[], span: $mol_span);
564
+ static list(kids: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
565
+ list(kids: readonly $mol_tree2[]): $mol_tree2;
566
+ static data(value: string, kids?: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
567
+ data(value: string, kids?: readonly $mol_tree2[]): $mol_tree2;
568
+ static struct(type: string, kids?: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
569
+ struct(type: string, kids?: readonly $mol_tree2[]): $mol_tree2;
570
+ clone(kids: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
571
+ text(): string;
572
+ static fromString(str: string, uri?: string): $mol_tree2;
573
+ toString(): string;
574
+ insert(value: $mol_tree2 | null, ...path: $mol_tree2_path): $mol_tree2;
575
+ select(...path: $mol_tree2_path): $mol_tree2;
576
+ filter(path: string[], value?: string): $mol_tree2;
577
+ hack<Context extends {
578
+ span?: $mol_span;
579
+ [key: string]: unknown;
580
+ } = {}>(belt: $mol_tree2_belt<Context>, context?: Context): $mol_tree2[];
581
+ error(message: string, Class?: ErrorConstructor): Error;
582
+ }
583
+ class $mol_tree2_empty extends $mol_tree2 {
584
+ constructor();
585
+ }
586
+ }
587
+
588
+ declare namespace $ {
589
+ class $mol_view_tree2_error extends Error {
590
+ readonly spans: readonly $mol_span[];
591
+ constructor(message: string, spans: readonly $mol_span[]);
592
+ toJSON(): {
593
+ message: string;
594
+ spans: readonly $mol_span[];
595
+ };
596
+ }
597
+ class $mol_view_tree2_error_suggestions {
598
+ readonly suggestions: readonly string[];
599
+ constructor(suggestions: readonly string[]);
600
+ toString(): string;
601
+ toJSON(): readonly string[];
602
+ }
603
+ function $mol_view_tree2_error_str(strings: readonly string[], ...parts: readonly ($mol_span | readonly $mol_span[] | string | number | $mol_view_tree2_error_suggestions)[]): $mol_view_tree2_error;
604
+ }
605
+
606
+ declare namespace $ {
607
+ function $mol_view_tree2_child(this: $, tree: $mol_tree2): $mol_tree2;
608
+ }
609
+
610
+ declare namespace $ {
611
+ function $mol_view_tree2_classes(defs: $mol_tree2): $mol_tree2;
612
+ }
613
+
614
+ declare namespace $ {
615
+ type $mol_view_tree2_locales = Record<string, string>;
616
+ class $mol_view_tree2_context extends $mol_object2 {
617
+ protected parents: readonly $mol_view_tree2_prop[];
618
+ protected locales: $mol_view_tree2_locales;
619
+ protected methods: $mol_tree2[];
620
+ readonly types: boolean;
621
+ protected added_nodes: Map<string, {
622
+ src: $mol_tree2;
623
+ name: $mol_tree2;
624
+ key: $mol_tree2 | undefined;
625
+ next: $mol_tree2 | undefined;
626
+ }>;
627
+ protected array?: $mol_tree2 | undefined;
628
+ constructor($: $, parents: readonly $mol_view_tree2_prop[], locales: $mol_view_tree2_locales, methods: $mol_tree2[], types?: boolean, added_nodes?: Map<string, {
629
+ src: $mol_tree2;
630
+ name: $mol_tree2;
631
+ key: $mol_tree2 | undefined;
632
+ next: $mol_tree2 | undefined;
633
+ }>, array?: $mol_tree2 | undefined);
634
+ protected clone(prefixes: readonly $mol_view_tree2_prop[], array?: $mol_tree2): $mol_view_tree2_context;
635
+ parent(prefix: $mol_view_tree2_prop): $mol_view_tree2_context;
636
+ root(): $mol_view_tree2_context;
637
+ locale_disable(array: $mol_tree2): $mol_view_tree2_context;
638
+ get_method({ name, src, key, next }: $mol_view_tree2_prop): {
639
+ src: $mol_tree2;
640
+ name: $mol_tree2;
641
+ key: $mol_tree2 | undefined;
642
+ next: $mol_tree2 | undefined;
643
+ } | undefined;
644
+ check_scope_vars({ name, key, next }: $mol_view_tree2_prop): undefined;
645
+ index(owner: $mol_view_tree2_prop): number;
646
+ method(index: number, method: $mol_tree2[]): void;
647
+ protected locale_nodes: Map<string, $mol_tree2>;
648
+ locale(operator: $mol_tree2): $mol_tree2;
649
+ }
650
+ }
651
+
652
+ declare namespace $ {
653
+ function $mol_view_tree2_normalize(this: $, defs: $mol_tree2): $mol_tree2;
654
+ }
655
+
656
+ declare namespace $ {
657
+ function $mol_view_tree2_class_super(this: $, klass: $mol_tree2): $mol_tree2;
658
+ }
659
+
660
+ declare namespace $ {
661
+ function $mol_view_tree2_class_props(this: $, klass: $mol_tree2): $mol_tree2[];
662
+ }
663
+
664
+ declare namespace $ {
665
+ type $mol_type_equals<A, B> = (<X>() => X extends A ? 1 : 2) extends (<X>() => X extends B ? 1 : 2) ? unknown : never;
666
+ }
667
+
668
+ declare namespace $ {
669
+ type $mol_type_merge<Intersection> = Intersection extends (...a: any[]) => any ? Intersection : Intersection extends new (...a: any[]) => any ? Intersection : Intersection extends object ? $mol_type_merge_object<Intersection> extends Intersection ? unknown extends $mol_type_equals<$mol_type_merge_object<Intersection>, Intersection> ? Intersection : {
670
+ [Key in keyof Intersection]: $mol_type_merge<Intersection[Key]>;
671
+ } : Intersection : Intersection;
672
+ type $mol_type_merge_object<Intersection> = {
673
+ [Key in keyof Intersection]: Intersection[Key];
674
+ };
675
+ }
676
+
677
+ declare namespace $ {
678
+ type $mol_type_intersect<Union> = (Union extends any ? (_: Union) => void : never) extends ((_: infer Intersection) => void) ? Intersection : never;
679
+ }
680
+
681
+ declare namespace $ {
682
+ type $mol_type_override<Base, Over> = Omit<Base, keyof Over> & Over;
683
+ }
684
+
685
+ declare namespace $ {
686
+ type $mol_unicode_category = [$mol_unicode_category_binary] | ['General_Category', $mol_char_category_general] | ['Script', $mol_unicode_category_script] | ['Script_Extensions', $mol_unicode_category_script];
687
+ type $mol_unicode_category_binary = 'ASCII' | 'ASCII_Hex_Digit' | 'Alphabetic' | 'Any' | 'Assigned' | 'Bidi_Control' | 'Bidi_Mirrored' | 'Case_Ignorable' | 'Cased' | 'Changes_When_Casefolded' | 'Changes_When_Casemapped' | 'Changes_When_Lowercased' | 'Changes_When_NFKC_Casefolded' | 'Changes_When_Titlecased' | 'Changes_When_Uppercased' | 'Dash' | 'Default_Ignorable_Code_Point' | 'Deprecated' | 'Diacritic' | 'Emoji' | 'Emoji_Component' | 'Emoji_Modifier' | 'Emoji_Modifier_Base' | 'Emoji_Presentation' | 'Extended_Pictographic' | 'Extender' | 'Grapheme_Base' | 'Grapheme_Extend' | 'Hex_Digit' | 'IDS_Binary_Operator' | 'IDS_Trinary_Operator' | 'ID_Continue' | 'ID_Start' | 'Ideographic' | 'Join_Control' | 'Logical_Order_Exception' | 'Lowercase' | 'Math' | 'Noncharacter_Code_Point' | 'Pattern_Syntax' | 'Pattern_White_Space' | 'Quotation_Mark' | 'Radical' | 'Regional_Indicator' | 'Sentence_Terminal' | 'Soft_Dotted' | 'Terminal_Punctuation' | 'Unified_Ideograph' | 'Uppercase' | 'Variation_Selector' | 'White_Space' | 'XID_Continue' | 'XID_Start';
688
+ type $mol_char_category_general = 'Cased_Letter' | 'Close_Punctuation' | 'Connector_Punctuation' | 'Control' | 'Currency_Symbol' | 'Dash_Punctuation' | 'Decimal_Number' | 'Enclosing_Mark' | 'Final_Punctuation' | 'Format' | 'Initial_Punctuation' | 'Letter' | 'Letter_Number' | 'Line_Separator' | 'Lowercase_Letter' | 'Mark' | 'Math_Symbol' | 'Modifier_Letter' | 'Modifier_Symbol' | 'Nonspacing_Mark' | 'Number' | 'Open_Punctuation' | 'Other' | 'Other_Letter' | 'Other_Number' | 'Other_Punctuation' | 'Other_Symbol' | 'Paragraph_Separator' | 'Private_Use' | 'Punctuation' | 'Separator' | 'Space_Separator' | 'Spacing_Mark' | 'Surrogate' | 'Symbol' | 'Titlecase_Letter' | 'Unassigned' | 'Uppercase_Letter';
689
+ type $mol_unicode_category_script = 'Adlam' | 'Ahom' | 'Anatolian_Hieroglyphs' | 'Arabic' | 'Armenian' | 'Avestan' | 'Balinese' | 'Bamum' | 'Bassa_Vah' | 'Batak' | 'Bengali' | 'Bhaiksuki' | 'Bopomofo' | 'Brahmi' | 'Braille' | 'Buginese' | 'Buhid' | 'Canadian_Aboriginal' | 'Carian' | 'Caucasian_Albanian' | 'Chakma' | 'Cham' | 'Chorasmian' | 'Cherokee' | 'Common' | 'Coptic' | 'Cuneiform' | 'Cypriot' | 'Cyrillic' | 'Deseret' | 'Devanagari' | 'Dives_Akuru' | 'Dogra' | 'Duployan' | 'Egyptian_Hieroglyphs' | 'Elbasan' | 'Elymaic' | 'Ethiopic' | 'Georgian' | 'Glagolitic' | 'Gothic' | 'Grantha' | 'Greek' | 'Gujarati' | 'Gunjala_Gondi' | 'Gurmukhi' | 'Han' | 'Hangul' | 'Hanifi_Rohingya' | 'Hanunoo' | 'Hatran' | 'Hebrew' | 'Hiragana' | 'Imperial_Aramaic' | 'Inherited' | 'Inscriptional_Pahlavi' | 'Inscriptional_Parthian' | 'Javanese' | 'Kaithi' | 'Kannada' | 'Katakana' | 'Kayah_Li' | 'Kharoshthi' | 'Khitan_Small_Script' | 'Khmer' | 'Khojki' | 'Khudawadi' | 'Lao' | 'Latin' | 'Lepcha' | 'Limbu' | 'Linear_A' | 'Linear_B' | 'Lisu' | 'Lycian' | 'Lydian' | 'Mahajani' | 'Makasar' | 'Malayalam' | 'Mandaic' | 'Manichaean' | 'Marchen' | 'Medefaidrin' | 'Masaram_Gondi' | 'Meetei_Mayek' | 'Mende_Kikakui' | 'Meroitic_Cursive' | 'Meroitic_Hieroglyphs' | 'Miao' | 'Modi' | 'Mongolian' | 'Mro' | 'Multani' | 'Myanmar' | 'Nabataean' | 'Nandinagari' | 'New_Tai_Lue' | 'Newa' | 'Nko' | 'Nushu' | 'Nyiakeng_Puachue_Hmong' | 'Ogham' | 'Ol_Chiki' | 'Old_Hungarian' | 'Old_Italic' | 'Old_North_Arabian' | 'Old_Permic' | 'Old_Persian' | 'Old_Sogdian' | 'Old_South_Arabian' | 'Old_Turkic' | 'Oriya' | 'Osage' | 'Osmanya' | 'Pahawh_Hmong' | 'Palmyrene' | 'Pau_Cin_Hau' | 'Phags_Pa' | 'Phoenician' | 'Psalter_Pahlavi' | 'Rejang' | 'Runic' | 'Samaritan' | 'Saurashtra' | 'Sharada' | 'Shavian' | 'Siddham' | 'SignWriting' | 'Sinhala' | 'Sogdian' | 'Sora_Sompeng' | 'Soyombo' | 'Sundanese' | 'Syloti_Nagri' | 'Syriac' | 'Tagalog' | 'Tagbanwa' | 'Tai_Le' | 'Tai_Tham' | 'Tai_Viet' | 'Takri' | 'Tamil' | 'Tangut' | 'Telugu' | 'Thaana' | 'Thai' | 'Tibetan' | 'Tifinagh' | 'Tirhuta' | 'Ugaritic' | 'Vai' | 'Wancho' | 'Warang_Citi' | 'Yezidi' | 'Yi' | 'Zanabazar_Square';
690
+ }
691
+
692
+ interface String {
693
+ match<RE extends RegExp>(regexp: RE): ReturnType<RE[typeof Symbol.match]>;
694
+ matchAll<RE extends RegExp>(regexp: RE): ReturnType<RE[typeof Symbol.matchAll]>;
695
+ }
696
+ declare namespace $ {
697
+ type Groups_to_params<T> = {
698
+ [P in keyof T]?: T[P] | boolean | undefined;
699
+ };
700
+ export type $mol_regexp_source = number | string | RegExp | {
701
+ [key in string]: $mol_regexp_source;
702
+ } | readonly [$mol_regexp_source, ...$mol_regexp_source[]];
703
+ export type $mol_regexp_groups<Source extends $mol_regexp_source> = Source extends number ? {} : Source extends string ? {} : Source extends $mol_regexp_source[] ? $mol_type_merge<$mol_type_intersect<{
704
+ [key in Extract<keyof Source, number>]: $mol_regexp_groups<Source[key]>;
705
+ }[Extract<keyof Source, number>]>> : Source extends RegExp ? Record<string, string> extends NonNullable<NonNullable<ReturnType<Source['exec']>>['groups']> ? {} : NonNullable<NonNullable<ReturnType<Source['exec']>>['groups']> : Source extends {
706
+ readonly [key in string]: $mol_regexp_source;
707
+ } ? $mol_type_merge<$mol_type_intersect<{
708
+ [key in keyof Source]: $mol_type_merge<$mol_type_override<{
709
+ readonly [k in Extract<keyof Source, string>]: string;
710
+ }, {
711
+ readonly [k in key]: Source[key] extends string ? Source[key] : string;
712
+ }> & $mol_regexp_groups<Source[key]>>;
713
+ }[keyof Source]>> : never;
714
+ export class $mol_regexp<Groups extends Record<string, string>> extends RegExp {
715
+ readonly groups: (Extract<keyof Groups, string>)[];
716
+ constructor(source: string, flags?: string, groups?: (Extract<keyof Groups, string>)[]);
717
+ [Symbol.matchAll](str: string): IterableIterator<$mol_type_override<RegExpExecArray, {
718
+ groups?: {
719
+ [key in keyof Groups]: string;
720
+ };
721
+ }>>;
722
+ [Symbol.match](str: string): null | string[];
723
+ [Symbol.split](str: string): string[];
724
+ test(str: string): boolean;
725
+ exec(str: string): $mol_type_override<RegExpExecArray, {
726
+ groups?: {
727
+ [key in keyof Groups]: string;
728
+ };
729
+ }> | null;
730
+ generate(params: Groups_to_params<Groups>): string | null;
731
+ static repeat<Source extends $mol_regexp_source>(source: Source, min?: number, max?: number): $mol_regexp<$mol_regexp_groups<Source>>;
732
+ static repeat_greedy<Source extends $mol_regexp_source>(source: Source, min?: number, max?: number): $mol_regexp<$mol_regexp_groups<Source>>;
733
+ static optional<Source extends $mol_regexp_source>(source: Source): $mol_regexp<$mol_regexp_groups<Source>>;
734
+ static force_after(source: $mol_regexp_source): $mol_regexp<Record<string, string>>;
735
+ static forbid_after(source: $mol_regexp_source): $mol_regexp<Record<string, string>>;
736
+ static from<Source extends $mol_regexp_source>(source: Source, { ignoreCase, multiline }?: Partial<Pick<RegExp, 'ignoreCase' | 'multiline'>>): $mol_regexp<$mol_regexp_groups<Source>>;
737
+ static unicode_only(...category: $mol_unicode_category): $mol_regexp<Record<string, string>>;
738
+ static unicode_except(...category: $mol_unicode_category): $mol_regexp<Record<string, string>>;
739
+ static char_range(from: number, to: number): $mol_regexp<{}>;
740
+ static char_only(...allowed: readonly [$mol_regexp_source, ...$mol_regexp_source[]]): $mol_regexp<{}>;
741
+ static char_except(...forbidden: readonly [$mol_regexp_source, ...$mol_regexp_source[]]): $mol_regexp<{}>;
742
+ static decimal_only: $mol_regexp<{}>;
743
+ static decimal_except: $mol_regexp<{}>;
744
+ static latin_only: $mol_regexp<{}>;
745
+ static latin_except: $mol_regexp<{}>;
746
+ static space_only: $mol_regexp<{}>;
747
+ static space_except: $mol_regexp<{}>;
748
+ static word_break_only: $mol_regexp<{}>;
749
+ static word_break_except: $mol_regexp<{}>;
750
+ static tab: $mol_regexp<{}>;
751
+ static slash_back: $mol_regexp<{}>;
752
+ static nul: $mol_regexp<{}>;
753
+ static char_any: $mol_regexp<{}>;
754
+ static begin: $mol_regexp<{}>;
755
+ static end: $mol_regexp<{}>;
756
+ static or: $mol_regexp<{}>;
757
+ static line_end: $mol_regexp<{
758
+ readonly win_end: string;
759
+ readonly mac_end: string;
760
+ }>;
761
+ }
762
+ export {};
763
+ }
764
+
765
+ declare namespace $ {
766
+ function $mol_view_tree2_prop_split(this: $, src: $mol_tree2): {
767
+ src: $mol_tree2;
768
+ name: $mol_tree2;
769
+ key: $mol_tree2 | undefined;
770
+ next: $mol_tree2 | undefined;
771
+ };
772
+ }
773
+
774
+ declare namespace $ {
775
+ type $mol_view_tree2_prop = ReturnType<typeof $mol_view_tree2_prop_split>;
776
+ function $mol_view_tree2_prop_name(this: $, prop: $mol_tree2): string;
777
+ function $mol_view_tree2_prop_key(this: $, prop: $mol_tree2): string | undefined;
778
+ function $mol_view_tree2_prop_next(this: $, prop: $mol_tree2): string | undefined;
779
+ }
780
+
781
+ declare namespace $ {
782
+ function $mol_view_tree2_prop_quote(name: $mol_tree2): $mol_tree2;
783
+ }
784
+
785
+ declare namespace $ {
786
+ let $mol_view_tree2_prop_signature: $mol_regexp<{
787
+ readonly name: string;
788
+ readonly key: string;
789
+ readonly next: string;
790
+ }>;
791
+ }
792
+
793
+ declare namespace $ {
794
+ function $mol_tree2_text_to_string(this: $, text: $mol_tree2): string;
795
+ }
796
+
797
+ declare namespace $ {
798
+ function $mol_view_tree2_bind_both_parts(this: $, operator: $mol_tree2): {
799
+ owner_parts: {
800
+ src: $mol_tree2;
801
+ name: $mol_tree2;
802
+ key: $mol_tree2 | undefined;
803
+ next: $mol_tree2 | undefined;
804
+ };
805
+ default_value: $mol_tree2 | undefined;
806
+ };
807
+ }
808
+
809
+ declare namespace $ {
810
+ function $mol_view_tree2_bind_left_parts(this: $, operator: $mol_tree2, having_parts?: $mol_view_tree2_prop): {
811
+ default_value: $mol_tree2 | undefined;
812
+ owner_call_parts: {
813
+ src: $mol_tree2;
814
+ name: $mol_tree2;
815
+ key: $mol_tree2 | undefined;
816
+ next: $mol_tree2 | undefined;
817
+ };
818
+ owner_parts: {
819
+ src: $mol_tree2;
820
+ name: $mol_tree2;
821
+ key: $mol_tree2 | undefined;
822
+ next: $mol_tree2 | undefined;
823
+ };
824
+ };
825
+ }
826
+
827
+ declare namespace $ {
828
+ function $mol_view_tree2_bind_right_parts(this: $, operator: $mol_tree2, having_parts: $mol_view_tree2_prop, factory: $mol_view_tree2_prop): {
829
+ owner_parts: {
830
+ src: $mol_tree2;
831
+ name: $mol_tree2;
832
+ key: $mol_tree2 | undefined;
833
+ next: $mol_tree2 | undefined;
834
+ };
835
+ };
836
+ }
837
+
838
+ declare namespace $ {
839
+ function $mol_view_tree2_ts_bind_both(this: $, operator: $mol_tree2, context: $mol_view_tree2_context): $mol_tree2[];
840
+ }
841
+
842
+ declare namespace $ {
843
+ function $mol_view_tree2_ts_bind_left(this: $, operator: $mol_tree2, context: $mol_view_tree2_context, having_parts?: $mol_view_tree2_prop): $mol_tree2[];
844
+ }
845
+
846
+ declare namespace $ {
847
+ function $mol_view_tree2_ts_bind_right(this: $, operator: $mol_tree2, having_parts: $mol_view_tree2_prop, factory: $mol_view_tree2_prop, context: $mol_view_tree2_context): undefined;
848
+ }
849
+
850
+ declare namespace $ {
851
+ var $mol_dom_context: typeof globalThis;
852
+ }
853
+
854
+ declare namespace $ {
855
+ }
856
+
857
+ declare namespace $ {
858
+ class $mol_state_local<Value> extends $mol_object {
859
+ static 'native()': Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;
860
+ static native(): Storage | {
861
+ getItem(key: string): any;
862
+ setItem(key: string, value: string): void;
863
+ removeItem(key: string): void;
864
+ };
865
+ static changes(next?: StorageEvent): StorageEvent | undefined;
866
+ static value<Value>(key: string, next?: Value | null): Value | null;
867
+ prefix(): string;
868
+ value(key: string, next?: Value): Value | null;
869
+ }
870
+ }
871
+
872
+ declare namespace $ {
873
+ interface $mol_locale_dict {
874
+ [key: string]: string;
875
+ }
876
+ class $mol_locale extends $mol_object {
877
+ static lang_default(): string;
878
+ static lang(next?: string): string;
879
+ static source(lang: string): any;
880
+ static texts(lang: string, next?: $mol_locale_dict): $mol_locale_dict;
881
+ static text(key: string): string;
882
+ static warn(key: string): null;
883
+ }
884
+ }
885
+
886
+ declare namespace $ {
887
+ function $mol_view_tree2_value_type(this: $, val: $mol_tree2): "string" | "object" | "number" | "get" | "null" | "locale" | "bool" | "dict" | "bind" | "put" | "list";
888
+ }
889
+
890
+ declare namespace $ {
891
+ function $mol_view_tree2_value(this: $, value: $mol_tree2): $mol_tree2;
892
+ }
893
+
894
+ declare namespace $ {
895
+ function $mol_view_tree2_ts_class(this: $, klass: $mol_tree2, locales: $mol_view_tree2_locales): $mol_tree2;
896
+ }
897
+
898
+ declare namespace $ {
899
+ function $mol_view_tree2_ts_comment(this: $, item: $mol_tree2): $mol_tree2[];
900
+ function $mol_view_tree2_ts_comment_doc(this: $, item: $mol_tree2): $mol_tree2[];
901
+ }
902
+
903
+ declare namespace $ {
904
+ function $mol_view_tree2_ts_module(this: $, tree2_module: $mol_tree2, locales: $mol_view_tree2_locales): $mol_tree2;
905
+ }
906
+
907
+ declare namespace $ {
908
+ function $mol_view_tree2_ts_compile(this: $, tree2_module: $mol_tree2): {
909
+ script: string;
910
+ locales: $mol_view_tree2_locales;
911
+ };
912
+ }
913
+
914
+ declare namespace $ {
915
+ function $mol_view_tree2_ts_function_declaration({ name, key, next }: Pick<$mol_view_tree2_prop, 'name' | 'key' | 'next'>, types?: boolean): $mol_tree2;
916
+ function $mol_view_tree2_ts_function_call({ name, key, next }: Pick<$mol_view_tree2_prop, 'name' | 'key' | 'next'>): $mol_tree2;
917
+ }
918
+
919
+ declare namespace $ {
920
+ function $mol_view_tree2_ts_spread(this: $, spread_prop: $mol_tree2): $mol_tree2;
921
+ class $mol_view_tree2_ts_spread_factory extends $mol_object2 {
922
+ protected prop_parts?: {
923
+ src: $mol_tree2;
924
+ name: $mol_tree2;
925
+ key: $mol_tree2 | undefined;
926
+ next: $mol_tree2 | undefined;
927
+ } | undefined;
928
+ protected super_spread: $mol_tree2 | undefined;
929
+ constructor($: $, prop_parts?: {
930
+ src: $mol_tree2;
931
+ name: $mol_tree2;
932
+ key: $mol_tree2 | undefined;
933
+ next: $mol_tree2 | undefined;
934
+ } | undefined);
935
+ create(prop: $mol_tree2): $mol_tree2;
936
+ }
937
+ }
938
+
939
+ declare namespace $ {
940
+ function $mol_view_tree2_ts_locale(operator: $mol_tree2, context: $mol_view_tree2_context): $mol_tree2[];
941
+ }
942
+
943
+ declare namespace $ {
944
+ function $mol_view_tree2_ts_value(this: $, src: $mol_tree2): $mol_tree2[];
945
+ }
946
+
947
+ declare namespace $ {
948
+ function $mol_view_tree2_ts_dictionary(this: $, dictionary: $mol_tree2, dictionary_context: $mol_view_tree2_context, super_method?: $mol_view_tree2_prop): $mol_tree2[];
949
+ }
950
+
951
+ declare namespace $ {
952
+ function $mol_view_tree2_ts_factory(this: $, klass: $mol_tree2, factory: $mol_view_tree2_prop, factory_context: $mol_view_tree2_context): $mol_tree2;
953
+ }
954
+
955
+ declare namespace $ {
956
+ class $mol_graph<Node, Edge> {
957
+ nodes: Set<Node>;
958
+ edges_out: Map<Node, Map<Node, Edge>>;
959
+ edges_in: Map<Node, Map<Node, Edge>>;
960
+ link_out(from: Node, to: Node, edge: Edge): void;
961
+ link_in(to: Node, from: Node, edge: Edge): void;
962
+ edge_out(from: Node, to: Node): NonNullable<Edge> | null;
963
+ edge_in(to: Node, from: Node): NonNullable<Edge> | null;
964
+ link(from: Node, to: Node, edge: Edge): void;
965
+ unlink(from: Node, to: Node): void;
966
+ acyclic(get_weight: (edge: Edge) => number): void;
967
+ get sorted(): Set<Node>;
968
+ }
969
+ }
970
+
971
+ declare namespace $ {
972
+ const sourcemap_codec: typeof import("sourcemap-codec");
973
+ type SourceMapLine = ReturnType<typeof sourcemap_codec.decode>[0];
974
+ export interface $mol_sourcemap_raw {
975
+ version: number;
976
+ sources: string[];
977
+ names: string[];
978
+ sourceRoot?: string;
979
+ sourcesContent?: (string | null)[];
980
+ mappings: string | SourceMapLine[];
981
+ file: string;
982
+ }
983
+ export class $mol_sourcemap_builder {
984
+ readonly file: string;
985
+ readonly separator: string;
986
+ version: number;
987
+ protected sourceRoot: string;
988
+ protected separator_count: number;
989
+ constructor(file: string, separator?: string);
990
+ protected chunks: string[];
991
+ protected segment_lines: SourceMapLine[];
992
+ protected sources: string[];
993
+ protected source_indexes: Map<string, number>;
994
+ protected names: string[];
995
+ protected name_indexes: Map<string, number>;
996
+ protected sourceContent: (null | string)[];
997
+ get content(): string;
998
+ get sourcemap(): $mol_sourcemap_raw;
999
+ toJSON(): $mol_sourcemap_raw;
1000
+ toString(): string;
1001
+ protected add_chunk(content: string): void;
1002
+ protected add_content(content: string, file?: string): void;
1003
+ add(content: string, file?: string, raw?: $mol_sourcemap_raw | string): void;
1004
+ }
1005
+ export {};
1006
+ }
1007
+
1008
+ declare namespace $ {
1009
+ function $mol_base64_encode(src: string | Uint8Array): string;
1010
+ }
1011
+
1012
+ declare namespace $ {
1013
+ function $mol_base64_encode_node(str: string | Uint8Array): string;
1014
+ }
1015
+
1016
+ declare namespace $ {
1017
+ let $mol_action: typeof $mol_wire_method;
1018
+ }
1019
+
1020
+ declare namespace $ {
1021
+ function $mol_diff_path<Item>(...paths: Item[][]): {
1022
+ prefix: Item[];
1023
+ suffix: Item[][];
1024
+ };
1025
+ }
1026
+
1027
+ declare namespace $ {
1028
+ class $mol_error_mix extends Error {
1029
+ errors: Error[];
1030
+ constructor(message: string, ...errors: Error[]);
1031
+ toJSON(): string;
1032
+ }
1033
+ }
1034
+
1035
+ declare namespace $ {
1036
+ function $mol_view_tree2_ts_array_body(this: $, operator: $mol_tree2, parent_context: $mol_view_tree2_context, super_method?: $mol_view_tree2_prop): $mol_tree2;
1037
+ }
1038
+
1039
+ declare namespace $ {
1040
+ function $mol_view_tree2_ts_array(this: $, operator: $mol_tree2, context: $mol_view_tree2_context, super_method?: $mol_view_tree2_prop | undefined): $mol_tree2[];
1041
+ }
1042
+
1043
+ declare namespace $ {
1044
+ function $mol_view_tree2_ts_method_body(this: $, having_parts: $mol_view_tree2_prop, parent_context: $mol_view_tree2_context): undefined;
1045
+ }
1046
+
1047
+ declare namespace $ {
1048
+ function $mol_view_tree2_ts_method(this: $, owner_parts: $mol_view_tree2_prop, body: $mol_tree2, types?: boolean): $mol_tree2[];
1049
+ }
1050
+
1051
+ declare namespace $ {
1052
+ function $mol_build_start(this: $, paths: string[]): void;
1053
+ class $mol_build extends $mol_object {
1054
+ static root(path: string): $mol_build;
1055
+ static relative(path: string): $mol_build;
1056
+ server(): $mol_build_server;
1057
+ root(): $mol_file;
1058
+ metaTreeTranspile(path: string): $mol_file[];
1059
+ viewTreeTranspile(path: string): $mol_file[];
1060
+ cssTranspile(path: string): $mol_file[];
1061
+ mods({ path, exclude }: {
1062
+ path: string;
1063
+ exclude?: string[];
1064
+ }): $mol_file[];
1065
+ sources({ path, exclude }: {
1066
+ path: string;
1067
+ exclude?: string[];
1068
+ }): $mol_file[];
1069
+ sourcesSorted({ path, exclude }: {
1070
+ path: string;
1071
+ exclude?: string[];
1072
+ }): $mol_file[];
1073
+ sourcesAll({ path, exclude }: {
1074
+ path: string;
1075
+ exclude?: string[];
1076
+ }): $mol_file[];
1077
+ tsOptions(): import("typescript").CompilerOptions;
1078
+ tsSource({ path, target }: {
1079
+ path: string;
1080
+ target: number;
1081
+ }): import("typescript").SourceFile;
1082
+ tsPaths({ path, exclude, bundle }: {
1083
+ path: string;
1084
+ bundle: string;
1085
+ exclude: string[];
1086
+ }): string[];
1087
+ tsHost({ path, exclude, bundle }: {
1088
+ path: string;
1089
+ bundle: string;
1090
+ exclude: string[];
1091
+ }): import("typescript").CompilerHost;
1092
+ tsTranspiler({ path, exclude, bundle }: {
1093
+ path: string;
1094
+ bundle: string;
1095
+ exclude: string[];
1096
+ }): import("typescript").Program;
1097
+ tsTranspile({ path, exclude, bundle }: {
1098
+ path: string;
1099
+ bundle: string;
1100
+ exclude: string[];
1101
+ }): import("typescript").EmitResult;
1102
+ tsService({ path, exclude, bundle }: {
1103
+ path: string;
1104
+ bundle: string;
1105
+ exclude: string[];
1106
+ }): {
1107
+ recheck: () => void;
1108
+ destructor: () => void;
1109
+ } | null;
1110
+ js_error(path: string, next?: Error | null): Error | null;
1111
+ js_content(path: string): {
1112
+ text: string;
1113
+ map: $mol_sourcemap_raw | undefined;
1114
+ };
1115
+ sourcesJS({ path, exclude }: {
1116
+ path: string;
1117
+ exclude: string[];
1118
+ }): $mol_file[];
1119
+ sourcesDTS({ path, exclude }: {
1120
+ path: string;
1121
+ exclude?: string[];
1122
+ }): $mol_file[];
1123
+ sourcesCSS({ path, exclude }: {
1124
+ path: string;
1125
+ exclude?: string[];
1126
+ }): $mol_file[];
1127
+ static dependors: {
1128
+ [index: string]: undefined | ((source: $mol_file) => {
1129
+ [index: string]: number;
1130
+ });
1131
+ };
1132
+ srcDeps(path: string): {
1133
+ [index: string]: number;
1134
+ };
1135
+ modDeps({ path, exclude }: {
1136
+ path: string;
1137
+ exclude?: string[];
1138
+ }): {
1139
+ [index: string]: number;
1140
+ };
1141
+ dependencies({ path, exclude }: {
1142
+ path: string;
1143
+ exclude?: string[];
1144
+ }): {
1145
+ [index: string]: number;
1146
+ };
1147
+ modEnsure(path: string): boolean;
1148
+ modMeta(path: string): $mol_tree;
1149
+ graph({ path, exclude }: {
1150
+ path: string;
1151
+ exclude?: string[];
1152
+ }): $mol_graph<string, {
1153
+ priority: number;
1154
+ }>;
1155
+ bundleAllWeb({ path }: {
1156
+ path: string;
1157
+ }): null;
1158
+ bundleAllWebAudit({ path }: {
1159
+ path: string;
1160
+ }): void;
1161
+ bundleAllNode({ path }: {
1162
+ path: string;
1163
+ }): null;
1164
+ bundleAllNodeAudit({ path }: {
1165
+ path: string;
1166
+ }): void;
1167
+ bundleAll({ path }: {
1168
+ path: string;
1169
+ }): null;
1170
+ bundle({ path, bundle }: {
1171
+ path: string;
1172
+ bundle?: string;
1173
+ }): $mol_file[];
1174
+ logBundle(target: $mol_file, duration: number): void;
1175
+ bundleJS({ path, exclude, bundle, moduleTarget }: {
1176
+ path: string;
1177
+ exclude: string[];
1178
+ bundle: string;
1179
+ moduleTarget?: string;
1180
+ }): $mol_file[];
1181
+ bundleAuditJS({ path, exclude, bundle }: {
1182
+ path: string;
1183
+ exclude: string[];
1184
+ bundle: string;
1185
+ }): $mol_file[];
1186
+ bundleTestJS({ path, exclude, bundle }: {
1187
+ path: string;
1188
+ exclude: string[];
1189
+ bundle: string;
1190
+ }): $mol_file[];
1191
+ bundleTestHtml({ path }: {
1192
+ path: string;
1193
+ }): $mol_file[];
1194
+ bundleDTS({ path, exclude, bundle }: {
1195
+ path: string;
1196
+ exclude?: string[];
1197
+ bundle: string;
1198
+ }): $mol_file[];
1199
+ bundleViewTree({ path, exclude, bundle }: {
1200
+ path: string;
1201
+ exclude?: string[];
1202
+ bundle: string;
1203
+ }): $mol_file[];
1204
+ nodeDeps({ path, exclude }: {
1205
+ path: string;
1206
+ exclude: string[];
1207
+ }): string[];
1208
+ bundleReadmeMd({ path, exclude }: {
1209
+ path: string;
1210
+ exclude: string[];
1211
+ }): $mol_file[];
1212
+ bundlePackageJSON({ path, exclude }: {
1213
+ path: string;
1214
+ exclude: string[];
1215
+ }): $mol_file[];
1216
+ bundleIndexHtml({ path, exclude }: {
1217
+ path: string;
1218
+ exclude?: string[];
1219
+ }): $mol_file[];
1220
+ bundleFiles({ path, exclude }: {
1221
+ path: string;
1222
+ exclude?: string[];
1223
+ }): $mol_file[];
1224
+ bundleCordova({ path, exclude }: {
1225
+ path: string;
1226
+ exclude?: string[];
1227
+ }): $mol_file[];
1228
+ bundleCSS({ path, exclude, bundle }: {
1229
+ path: string;
1230
+ exclude?: string[];
1231
+ bundle: string;
1232
+ }): $mol_file[];
1233
+ bundleLocale({ path, exclude, bundle }: {
1234
+ path: string;
1235
+ exclude?: string[];
1236
+ bundle: string;
1237
+ }): $mol_file[];
1238
+ bundleDepsJSON({ path, exclude, bundle }: {
1239
+ path: string;
1240
+ exclude?: string[];
1241
+ bundle: string;
1242
+ }): $mol_file[];
1243
+ }
1244
+ }
1245
+
1246
+ /// <reference types="node" />
1247
+ /// <reference types="serve-static" />
1248
+ declare namespace $ {
1249
+ class $mol_server extends $mol_object {
1250
+ express(): import("express-serve-static-core").Express;
1251
+ http(): import("http").Server;
1252
+ connections: Set<import("ws")>;
1253
+ socket(): import("ws").Server<import("ws").WebSocket>;
1254
+ expressHandlers(): any[];
1255
+ expressCompressor(): unknown;
1256
+ expressCors(): unknown;
1257
+ expressBodier(): import("connect").NextHandleFunction;
1258
+ expressFiler(): import("serve-static").RequestHandler<import("express").Response<any, Record<string, any>>>;
1259
+ expressDirector(): unknown;
1260
+ expressIndex(): (req: typeof $node.express.request, res: typeof $node.express.response, next: () => void) => void;
1261
+ expressGenerator(): (req: any, res: any, next: () => void) => void;
1262
+ bodyLimit(): string;
1263
+ cacheTime(): number;
1264
+ port(): number;
1265
+ rootPublic(): string;
1266
+ }
1267
+ }
1268
+
1269
+ declare namespace $ {
1270
+ function $mol_wire_solid(): void;
1271
+ }
1272
+
1273
+ declare namespace $ {
1274
+ function $mol_wire_sync<Host extends object>(obj: Host): (Host extends (...args: infer Args) => infer Res ? Res extends Promise<infer Res2> ? (...args: Args) => Res2 : Host : {}) & { [key in keyof Host]: Host[key] extends (...args: infer Args_1) => Promise<infer Res_1> ? (...args: Args_1) => Res_1 : Host[key]; };
1275
+ }
1276
+
1277
+ /// <reference types="node" />
1278
+ declare namespace $ {
1279
+ class $mol_browser extends $mol_object2 {
1280
+ static window(): {
1281
+ _targets: Map<string, import("puppeteer").Target>;
1282
+ process: () => import("child_process").ChildProcess | null;
1283
+ createIncognitoBrowserContext: (options?: import("puppeteer").BrowserContextOptions | undefined) => import("puppeteer").BrowserContext;
1284
+ browserContexts: () => import("puppeteer").BrowserContext[];
1285
+ defaultBrowserContext: () => import("puppeteer").BrowserContext;
1286
+ _disposeContext: (contextId?: string | undefined) => void;
1287
+ wsEndpoint: () => string;
1288
+ newPage: () => import("puppeteer").Page;
1289
+ _createPageInContext: (contextId?: string | undefined) => import("puppeteer").Page;
1290
+ targets: () => import("puppeteer").Target[];
1291
+ target: () => import("puppeteer").Target;
1292
+ waitForTarget: (predicate: (x: import("puppeteer").Target) => boolean | Promise<boolean>, options?: import("puppeteer").WaitForTargetOptions | undefined) => import("puppeteer").Target;
1293
+ pages: () => import("puppeteer").Page[];
1294
+ version: () => string;
1295
+ userAgent: () => string;
1296
+ close: () => void;
1297
+ disconnect: () => void;
1298
+ isConnected: () => boolean;
1299
+ on: (event: import("puppeteer").EventType, handler: import("puppeteer").Handler<any>) => import("puppeteer").EventEmitter;
1300
+ off: (event: import("puppeteer").EventType, handler: import("puppeteer").Handler<any>) => import("puppeteer").EventEmitter;
1301
+ removeListener: (event: import("puppeteer").EventType, handler: import("puppeteer").Handler<any>) => import("puppeteer").EventEmitter;
1302
+ addListener: (event: import("puppeteer").EventType, handler: import("puppeteer").Handler<any>) => import("puppeteer").EventEmitter;
1303
+ emit: (event: import("puppeteer").EventType, eventData?: unknown) => boolean;
1304
+ once: (event: import("puppeteer").EventType, handler: import("puppeteer").Handler<any>) => import("puppeteer").EventEmitter;
1305
+ listenerCount: (event: import("puppeteer").EventType) => number;
1306
+ removeAllListeners: (event?: import("puppeteer").EventType | undefined) => import("puppeteer").EventEmitter;
1307
+ };
1308
+ static html(uri: string): string;
1309
+ }
1310
+ }
1311
+
1312
+ declare namespace $ {
1313
+ class $mol_build_server extends $mol_server {
1314
+ static trace: boolean;
1315
+ expressGenerator(): (...args: any[]) => Promise<any> | undefined;
1316
+ handleRequest(req: typeof $node.express.request, res: typeof $node.express.response, next: () => any): Promise<any> | undefined;
1317
+ build(): $mol_build;
1318
+ generate(url: string): $mol_file[];
1319
+ expressIndex(): (req: typeof $node.express.request, res: typeof $node.express.response, next: () => void) => void | import("express").Response<any, Record<string, any>>;
1320
+ port(): number;
1321
+ lines(next?: Map<import("ws"), string>): Map<import("ws"), string>;
1322
+ socket(): import("ws").Server<import("ws").WebSocket>;
1323
+ start(): import("ws").Server<import("ws").WebSocket>;
1324
+ notify(line: InstanceType<$node['ws']>, path: string): boolean;
1325
+ }
1326
+ }
1
1327
 
2
1328
  export = $;