mol_dump_lib 0.0.1 → 0.0.3

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/web.d.ts CHANGED
@@ -13,4 +13,1863 @@ declare namespace $ {
13
13
  export {};
14
14
  }
15
15
 
16
+ declare namespace $ {
17
+ const $mol_ambient_ref: unique symbol;
18
+ type $mol_ambient_context = $;
19
+ function $mol_ambient(this: $ | void, overrides: Partial<$>): $;
20
+ }
21
+
22
+ declare namespace $ {
23
+ function $mol_delegate<Value extends object>(proto: Value, target: () => Value): Value;
24
+ }
25
+
26
+ declare namespace $ {
27
+ const $mol_owning_map: WeakMap<any, any>;
28
+ function $mol_owning_allow<Having>(having: Having): having is Having & {
29
+ destructor(): void;
30
+ };
31
+ function $mol_owning_get<Having, Owner extends object>(having: Having, Owner?: {
32
+ new (): Owner;
33
+ }): Owner | null;
34
+ function $mol_owning_check<Owner, Having>(owner: Owner, having: Having): having is Having & {
35
+ destructor(): void;
36
+ };
37
+ function $mol_owning_catch<Owner, Having>(owner: Owner, having: Having): boolean;
38
+ }
39
+
40
+ declare namespace $ {
41
+ function $mol_fail(error: any): never;
42
+ }
43
+
44
+ declare namespace $ {
45
+ function $mol_fail_hidden(error: any): never;
46
+ }
47
+
48
+ declare namespace $ {
49
+ type $mol_type_writable<T> = {
50
+ -readonly [P in keyof T]: T[P];
51
+ };
52
+ }
53
+
54
+ declare namespace $ {
55
+ class $mol_object2 {
56
+ static $: typeof $$;
57
+ [Symbol.toStringTag]: string;
58
+ [$mol_ambient_ref]: typeof $$;
59
+ get $(): $;
60
+ set $(next: $);
61
+ static create<Instance>(this: new (init?: (instance: any) => void) => Instance, init?: (instance: $mol_type_writable<Instance>) => void): Instance;
62
+ static [Symbol.toPrimitive](): string;
63
+ static toString(): string;
64
+ destructor(): void;
65
+ toString(): string;
66
+ toJSON(): any;
67
+ }
68
+ }
69
+
70
+ declare namespace $ {
71
+ namespace $$ { }
72
+ const $mol_object_field: unique symbol;
73
+ class $mol_object extends $mol_object2 {
74
+ static make<Instance>(this: {
75
+ new (): Instance;
76
+ }, config: Partial<Instance>): Instance;
77
+ }
78
+ }
79
+
80
+ declare namespace $ {
81
+ enum $mol_wire_cursor {
82
+ stale = -1,
83
+ doubt = -2,
84
+ fresh = -3,
85
+ final = -4
86
+ }
87
+ }
88
+
89
+ declare namespace $ {
90
+ class $mol_wire_pub extends Object {
91
+ data: unknown[];
92
+ static get [Symbol.species](): ArrayConstructor;
93
+ protected sub_from: number;
94
+ get sub_list(): readonly $mol_wire_sub[];
95
+ get sub_empty(): boolean;
96
+ sub_on(sub: $mol_wire_pub, pub_pos: number): number;
97
+ sub_off(sub_pos: number): void;
98
+ reap(): void;
99
+ promote(): void;
100
+ fresh(): void;
101
+ complete(): void;
102
+ get incompleted(): boolean;
103
+ emit(quant?: $mol_wire_cursor): void;
104
+ peer_move(from_pos: number, to_pos: number): void;
105
+ peer_repos(peer_pos: number, self_pos: number): void;
106
+ }
107
+ }
108
+
109
+ declare namespace $ {
110
+ interface $mol_wire_sub extends $mol_wire_pub {
111
+ temp: boolean;
112
+ track_on(): $mol_wire_sub | null;
113
+ track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
114
+ pub_off(pub_pos: number): void;
115
+ track_cut(sub: $mol_wire_pub | null): void;
116
+ track_off(sub: $mol_wire_pub | null): void;
117
+ absorb(quant: $mol_wire_cursor): void;
118
+ destructor(): void;
119
+ }
120
+ }
121
+
122
+ declare namespace $ {
123
+ let $mol_wire_auto_sub: $mol_wire_sub | null;
124
+ function $mol_wire_auto(next?: $mol_wire_sub | null): $mol_wire_sub | null;
125
+ const $mol_wire_affected: (number | $mol_wire_sub)[];
126
+ }
127
+
128
+ declare namespace $ {
129
+ function $mol_dev_format_register(config: {
130
+ header: (val: any, config: any) => any;
131
+ hasBody: (val: any, config: any) => false;
132
+ } | {
133
+ header: (val: any, config: any) => any;
134
+ hasBody: (val: any, config: any) => boolean;
135
+ body: (val: any, config: any) => any;
136
+ }): void;
137
+ let $mol_dev_format_head: symbol;
138
+ let $mol_dev_format_body: symbol;
139
+ function $mol_dev_format_native(obj: any): any;
140
+ function $mol_dev_format_auto(obj: any): any;
141
+ function $mol_dev_format_element(element: string, style: object, ...content: any[]): any[];
142
+ function $mol_dev_format_span(style: object, ...content: any[]): any[];
143
+ let $mol_dev_format_div: (style: object, ...content: any[]) => any[];
144
+ let $mol_dev_format_ol: (style: object, ...content: any[]) => any[];
145
+ let $mol_dev_format_li: (style: object, ...content: any[]) => any[];
146
+ let $mol_dev_format_table: (style: object, ...content: any[]) => any[];
147
+ let $mol_dev_format_tr: (style: object, ...content: any[]) => any[];
148
+ let $mol_dev_format_td: (style: object, ...content: any[]) => any[];
149
+ let $mol_dev_format_accent: (...args: any[]) => any[];
150
+ let $mol_dev_format_strong: (...args: any[]) => any[];
151
+ let $mol_dev_format_string: (...args: any[]) => any[];
152
+ let $mol_dev_format_shade: (...args: any[]) => any[];
153
+ let $mol_dev_format_indent: (...args: any[]) => any[];
154
+ }
155
+
156
+ declare namespace $ {
157
+ class $mol_wire_pub_sub extends $mol_wire_pub implements $mol_wire_sub {
158
+ protected pub_from: number;
159
+ protected cursor: $mol_wire_cursor;
160
+ get temp(): boolean;
161
+ get pub_list(): $mol_wire_pub[];
162
+ track_on(): $mol_wire_sub | null;
163
+ promote(): void;
164
+ track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
165
+ track_off(sub: $mol_wire_sub | null): void;
166
+ pub_off(sub_pos: number): void;
167
+ destructor(): void;
168
+ track_cut(): void;
169
+ complete(): void;
170
+ complete_pubs(): void;
171
+ absorb(quant?: $mol_wire_cursor): void;
172
+ get pub_empty(): boolean;
173
+ }
174
+ }
175
+
176
+ declare namespace $ {
177
+ class $mol_after_frame extends $mol_object2 {
178
+ task: () => void;
179
+ static _promise: Promise<void> | null;
180
+ static get promise(): Promise<void>;
181
+ cancelled: boolean;
182
+ promise: Promise<void>;
183
+ constructor(task: () => void);
184
+ destructor(): void;
185
+ }
186
+ }
187
+
188
+ declare namespace $ {
189
+ function $mol_promise_like(val: any): val is Promise<any>;
190
+ }
191
+
192
+ declare namespace $ {
193
+ abstract class $mol_wire_fiber<Host, Args extends readonly unknown[], Result> extends $mol_wire_pub_sub {
194
+ readonly task: (this: Host, ...args: Args) => Result;
195
+ readonly host?: Host | undefined;
196
+ static warm: boolean;
197
+ static planning: Set<$mol_wire_fiber<any, any, any>>;
198
+ static reaping: Set<$mol_wire_fiber<any, any, any>>;
199
+ static plan_task: $mol_after_frame | null;
200
+ static plan(): void;
201
+ static sync(): void;
202
+ [Symbol.toStringTag]: string;
203
+ cache: Result | Error | Promise<Result | Error>;
204
+ get args(): Args;
205
+ result(): Result | undefined;
206
+ get incompleted(): boolean;
207
+ field(): string;
208
+ constructor(id: string, task: (this: Host, ...args: Args) => Result, host?: Host | undefined, args?: Args);
209
+ plan(): void;
210
+ reap(): void;
211
+ toString(): string;
212
+ toJSON(): string;
213
+ get $(): any;
214
+ emit(quant?: $mol_wire_cursor): void;
215
+ fresh(): void;
216
+ refresh(): void;
217
+ abstract put(next: Result | Error | Promise<Result | Error>): Result | Error | Promise<Result | Error>;
218
+ sync(): Awaited<Result>;
219
+ async(): Promise<Result>;
220
+ }
221
+ }
222
+
223
+ declare namespace $ {
224
+ function $mol_func_name(this: $, func: Function): string;
225
+ function $mol_func_name_from<Target extends Function>(target: Target, source: Function): Target;
226
+ }
227
+
228
+ declare namespace $ {
229
+ function $mol_guid(length?: number, exists?: (id: string) => boolean): string;
230
+ }
231
+
232
+ declare namespace $ {
233
+ const $mol_key_store: WeakMap<object, string>;
234
+ function $mol_key<Value>(value: Value): string;
235
+ }
236
+
237
+ declare namespace $ {
238
+ let $mol_compare_deep_cache: WeakMap<any, WeakMap<any, boolean>>;
239
+ function $mol_compare_deep<Value>(left: Value, right: Value): boolean;
240
+ }
241
+
242
+ declare namespace $ {
243
+ class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
244
+ static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, Args, Result>;
245
+ get temp(): boolean;
246
+ complete(): void;
247
+ put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
248
+ }
249
+ }
250
+
251
+ declare namespace $ {
252
+ function $mol_wire_method<Host extends object, Args extends readonly any[]>(host: Host, field: PropertyKey, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
253
+ value: (this: Host, ...args: Args) => any;
254
+ enumerable?: boolean | undefined;
255
+ configurable?: boolean | undefined;
256
+ writable?: boolean | undefined;
257
+ get?: (() => (...args: Args) => any) | undefined;
258
+ set?: ((value: (...args: Args) => any) => void) | undefined;
259
+ };
260
+ }
261
+
262
+ declare namespace $ {
263
+ type $mol_type_tail<Tuple extends readonly any[]> = ((...tail: Tuple) => any) extends ((head: any, ...tail: infer Tail) => any) ? Tail : never;
264
+ }
265
+
266
+ declare namespace $ {
267
+ type $mol_type_foot<Tuple extends readonly any[]> = Tuple['length'] extends 0 ? never : Tuple[$mol_type_tail<Tuple>['length']];
268
+ }
269
+
270
+ declare namespace $ {
271
+ function $mol_fail_catch(error: unknown): boolean;
272
+ }
273
+
274
+ declare namespace $ {
275
+ function $mol_fail_log(error: unknown): boolean;
276
+ }
277
+
278
+ declare namespace $ {
279
+ class $mol_wire_atom<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
280
+ static solo<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result): $mol_wire_atom<Host, Args, Result>;
281
+ static plex<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result, key: Args[0]): $mol_wire_atom<Host, Args, Result>;
282
+ static watching: Set<$mol_wire_atom<any, any, any>>;
283
+ static watcher: $mol_after_frame | null;
284
+ static watch(): void;
285
+ watch(): void;
286
+ resync(args: Args): Error | Result | Promise<Error | Result>;
287
+ once(): Awaited<Result>;
288
+ channel(): ((next?: $mol_type_foot<Args>) => Awaited<Result>) & {
289
+ atom: $mol_wire_atom<Host, Args, Result>;
290
+ };
291
+ destructor(): void;
292
+ put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
293
+ }
294
+ }
295
+
296
+ declare namespace $ {
297
+ export function $mol_wire_solo<Args extends any[]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): TypedPropertyDescriptor<(...args: First_optional<Args>) => any>;
298
+ type First_optional<Args extends any[]> = Args extends [] ? [] : [Args[0] | undefined, ...$mol_type_tail<Args>];
299
+ export {};
300
+ }
301
+
302
+ declare namespace $ {
303
+ function $mol_wire_plex<Args extends [any, ...any[]]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
304
+ value: (this: typeof host, ...args: Args) => any;
305
+ enumerable?: boolean | undefined;
306
+ configurable?: boolean | undefined;
307
+ writable?: boolean | undefined;
308
+ get?: (() => (...args: Args) => any) | undefined;
309
+ set?: ((value: (...args: Args) => any) => void) | undefined;
310
+ };
311
+ }
312
+
313
+ declare namespace $ {
314
+ let $mol_mem: typeof $mol_wire_solo;
315
+ let $mol_mem_key: typeof $mol_wire_plex;
316
+ }
317
+
318
+ declare namespace $ {
319
+ class $mol_window extends $mol_object {
320
+ static size(): {
321
+ width: number;
322
+ height: number;
323
+ };
324
+ static resizes(next?: Event): Event | undefined;
325
+ }
326
+ }
327
+
328
+ declare namespace $ {
329
+ var $mol_dom_context: typeof globalThis;
330
+ }
331
+
332
+ declare namespace $ {
333
+ }
334
+
335
+ declare namespace $ {
336
+ class $mol_after_tick extends $mol_object2 {
337
+ task: () => void;
338
+ promise: any;
339
+ cancelled: boolean;
340
+ constructor(task: () => void);
341
+ destructor(): void;
342
+ }
343
+ }
344
+
345
+ declare namespace $ {
346
+ class $mol_view_selection extends $mol_object {
347
+ static focused(next?: Element[], notify?: 'notify'): Element[];
348
+ }
349
+ }
350
+
351
+ declare namespace $ {
352
+ function $mol_maybe<Value>(value: Value | null | undefined): Value[];
353
+ }
354
+
355
+ declare namespace $ {
356
+ }
357
+
358
+ declare namespace $ {
359
+ class $mol_wrapper extends $mol_object2 {
360
+ static wrap: (task: (...ags: any[]) => any) => (...ags: any[]) => any;
361
+ static run<Result>(task: () => Result): Result;
362
+ static func<Args extends any[], Result, Host = void>(func: (this: Host, ...args: Args) => Result): (this: Host, ...args: Args) => Result;
363
+ static get class(): <Class extends new (...args: any[]) => any>(Class: Class) => Class;
364
+ static get method(): (obj: object, name: PropertyKey, descr: PropertyDescriptor) => PropertyDescriptor;
365
+ static get field(): <Host, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr: TypedPropertyDescriptor<Result>) => TypedPropertyDescriptor<Result>;
366
+ }
367
+ }
368
+
369
+ declare namespace $ {
370
+ class $mol_memo extends $mol_wrapper {
371
+ static wrap<This extends object, Value>(task: (this: This, next?: Value) => Value): (this: This, next?: Value) => Value | undefined;
372
+ }
373
+ }
374
+
375
+ declare namespace $ {
376
+ function $mol_dom_qname(name: string): string;
377
+ }
378
+
379
+ declare namespace $ {
380
+ function $mol_wire_probe<Value>(task: () => Value, def?: Value): Value | undefined;
381
+ }
382
+
383
+ declare namespace $ {
384
+ function $mol_wire_watch(): void;
385
+ }
386
+
387
+ declare namespace $ {
388
+ function $mol_wire_solid(): void;
389
+ }
390
+
391
+ declare namespace $ {
392
+ function $mol_const<Value>(value: Value): {
393
+ (): Value;
394
+ '()': Value;
395
+ };
396
+ }
397
+
398
+ declare namespace $ {
399
+ function $mol_dom_render_attributes(el: Element, attrs: {
400
+ [key: string]: string | number | boolean | null;
401
+ }): void;
402
+ }
403
+
404
+ declare namespace $ {
405
+ 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]; };
406
+ }
407
+
408
+ declare namespace $ {
409
+ function $mol_dom_render_events(el: Element, events: {
410
+ [key: string]: (event: Event) => any;
411
+ }, passive?: boolean): void;
412
+ }
413
+
414
+ declare namespace $ {
415
+ function $mol_dom_render_styles(el: Element, styles: {
416
+ [key: string]: string | number;
417
+ }): void;
418
+ }
419
+
420
+ declare namespace $ {
421
+ function $mol_dom_render_children(el: Element | DocumentFragment, childNodes: NodeList | Array<Node | string | null>): void;
422
+ }
423
+
424
+ declare namespace $ {
425
+ function $mol_dom_render_fields(el: Element, fields: {
426
+ [key: string]: any;
427
+ }): void;
428
+ }
429
+
430
+ declare namespace $ {
431
+ type $mol_type_keys_extract<Input, Upper> = {
432
+ [Field in keyof Input]: unknown extends Input[Field] ? never : Input[Field] extends never ? never : Input[Field] extends Upper ? Field : never;
433
+ }[keyof Input];
434
+ }
435
+
436
+ declare namespace $ {
437
+ type $mol_type_pick<Input, Upper> = Pick<Input, $mol_type_keys_extract<Input, Upper>>;
438
+ }
439
+
440
+ declare namespace $ {
441
+ function $mol_style_attach(id: string, text: string): HTMLStyleElement | null;
442
+ }
443
+
444
+ declare namespace $ {
445
+ class $mol_decor<Value> {
446
+ readonly value: Value;
447
+ constructor(value: Value);
448
+ prefix(): string;
449
+ valueOf(): Value;
450
+ postfix(): string;
451
+ toString(): string;
452
+ }
453
+ }
454
+
455
+ declare namespace $ {
456
+ type $mol_style_unit_length = '%' | 'px' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'cap' | 'ch' | 'em' | 'rem' | 'ex' | 'ic' | 'lh' | 'rlh' | 'vh' | 'vw' | 'vi' | 'vb' | 'vmin' | 'vmax';
457
+ type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn';
458
+ type $mol_style_unit_time = 's' | 'ms';
459
+ type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time;
460
+ class $mol_style_unit<Literal extends $mol_style_unit_any> extends $mol_decor<number> {
461
+ readonly literal: Literal;
462
+ constructor(value: number, literal: Literal);
463
+ postfix(): Literal;
464
+ static per(value: number): `${number}%`;
465
+ static px(value: number): `${number}px`;
466
+ static mm(value: number): `${number}mm`;
467
+ static cm(value: number): `${number}cm`;
468
+ static Q(value: number): `${number}Q`;
469
+ static in(value: number): `${number}in`;
470
+ static pc(value: number): `${number}pc`;
471
+ static pt(value: number): `${number}pt`;
472
+ static cap(value: number): `${number}cap`;
473
+ static ch(value: number): `${number}ch`;
474
+ static em(value: number): `${number}em`;
475
+ static rem(value: number): `${number}rem`;
476
+ static ex(value: number): `${number}ex`;
477
+ static ic(value: number): `${number}ic`;
478
+ static lh(value: number): `${number}lh`;
479
+ static rlh(value: number): `${number}rlh`;
480
+ static vh(value: number): `${number}vh`;
481
+ static vw(value: number): `${number}vw`;
482
+ static vi(value: number): `${number}vi`;
483
+ static vb(value: number): `${number}vb`;
484
+ static vmin(value: number): `${number}vmin`;
485
+ static vmax(value: number): `${number}vmax`;
486
+ static deg(value: number): `${number}deg`;
487
+ static rad(value: number): `${number}rad`;
488
+ static grad(value: number): `${number}grad`;
489
+ static turn(value: number): `${number}turn`;
490
+ static s(value: number): `${number}s`;
491
+ static ms(value: number): `${number}ms`;
492
+ }
493
+ }
494
+
495
+ declare namespace $ {
496
+ type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'url' | 'scale' | 'cubic-bezier' | 'linear' | 'steps' | $mol_style_func_filter;
497
+ type $mol_style_func_filter = 'blur' | 'brightness' | 'contrast' | 'drop-shadow' | 'grayscale' | 'hue-rotate' | 'invert' | 'opacity' | 'sepia' | 'saturate';
498
+ class $mol_style_func<Name extends $mol_style_func_name, Value = unknown> extends $mol_decor<Value> {
499
+ readonly name: Name;
500
+ constructor(name: Name, value: Value);
501
+ prefix(): string;
502
+ postfix(): string;
503
+ static calc<Value>(value: Value): $mol_style_func<"calc", Value>;
504
+ static vary<Name extends string, Value extends string>(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>;
505
+ static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
506
+ static hsla(hue: number, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | `${number}%`)[]>;
507
+ static clamp(min: $mol_style_unit<any>, mid: $mol_style_unit<any>, max: $mol_style_unit<any>): $mol_style_func<"clamp", $mol_style_unit<any>[]>;
508
+ static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
509
+ static scale(zoom: number): $mol_style_func<"scale", number[]>;
510
+ static linear(...breakpoints: Array<number | [number, number | $mol_style_unit<'%'>]>): $mol_style_func<"linear", string[]>;
511
+ static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>;
512
+ static steps(value: number, step_position: 'jump-start' | 'jump-end' | 'jump-none' | 'jump-both' | 'start' | 'end'): $mol_style_func<"steps", (number | "end" | "start" | "jump-start" | "jump-end" | "jump-none" | "jump-both")[]>;
513
+ static blur(value?: $mol_style_unit<$mol_style_unit_length>): $mol_style_func<"blur", string | $mol_style_unit<$mol_style_unit_length>>;
514
+ static brightness(value?: number | $mol_style_unit<'%'>): $mol_style_func<"brightness", string | number | $mol_style_unit<"%">>;
515
+ static contrast(value?: number | $mol_style_unit<'%'>): $mol_style_func<"contrast", string | number | $mol_style_unit<"%">>;
516
+ static drop_shadow(color: $mol_style_properties_color, x_offset: $mol_style_unit<$mol_style_unit_length>, y_offset: $mol_style_unit<$mol_style_unit_length>, blur_radius?: $mol_style_unit<$mol_style_unit_length>): $mol_style_func<"drop-shadow", ($mol_style_unit<$mol_style_unit_length> | $mol_style_properties_color)[]>;
517
+ static grayscale(value?: number | $mol_style_unit<'%'>): $mol_style_func<"grayscale", string | number | $mol_style_unit<"%">>;
518
+ static hue_rotate(value?: 0 | $mol_style_unit<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0 | $mol_style_unit<$mol_style_unit_angle>>;
519
+ static invert(value?: number | $mol_style_unit<'%'>): $mol_style_func<"invert", string | number | $mol_style_unit<"%">>;
520
+ static opacity(value?: number | $mol_style_unit<'%'>): $mol_style_func<"opacity", string | number | $mol_style_unit<"%">>;
521
+ static sepia(value?: number | $mol_style_unit<'%'>): $mol_style_func<"sepia", string | number | $mol_style_unit<"%">>;
522
+ static saturate(value?: number | $mol_style_unit<'%'>): $mol_style_func<"saturate", string | number | $mol_style_unit<"%">>;
523
+ }
524
+ }
525
+
526
+ declare namespace $ {
527
+ type $mol_type_override<Base, Over> = Omit<Base, keyof Over> & Over;
528
+ }
529
+
530
+ declare namespace $ {
531
+ export type $mol_style_properties = Partial<$mol_type_override<CSSStyleDeclaration, Overrides>>;
532
+ type Common = 'inherit' | 'initial' | 'unset' | 'revert' | 'revert-layer' | $mol_style_func<'var'>;
533
+ export type $mol_style_properties_color = 'aliceblue' | 'antiquewhite' | 'aqua' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'black' | 'blanchedalmond' | 'blue' | 'blueviolet' | 'brown' | 'burlywood' | 'cadetblue' | 'chartreuse' | 'chocolate' | 'coral' | 'cornflowerblue' | 'cornsilk' | 'crimson' | 'cyan' | 'darkblue' | 'darkcyan' | 'darkgoldenrod' | 'darkgray' | 'darkgreen' | 'darkgrey' | 'darkkhaki' | 'darkmagenta' | 'darkolivegreen' | 'darkorange' | 'darkorchid' | 'darkred' | 'darksalmon' | 'darkseagreen' | 'darkslateblue' | 'darkslategrey' | 'darkturquoise' | 'darkviolet' | 'deeppink' | 'deepskyblue' | 'dimgray' | 'dimgrey' | 'dodgerblue' | 'firebrick' | 'floralwhite' | 'forestgreen' | 'fuchsia' | 'gainsboro' | 'ghostwhite' | 'gold' | 'goldenrod' | 'gray' | 'green' | 'greenyellow' | 'grey' | 'honeydew' | 'hotpink' | 'indianred' | 'indigo' | 'ivory' | 'khaki' | 'lavender' | 'lavenderblush' | 'lawngreen' | 'lemonchiffon' | 'lightblue' | 'lightcoral' | 'lightcyan' | 'lightgoldenrodyellow' | 'lightgray' | 'lightgreen' | 'lightgrey' | 'lightpink' | 'lightsalmon' | 'lightseagreen' | 'lightskyblue' | 'lightslategray' | 'lightslategrey' | 'lightsteelblue' | 'lightyellow' | 'lime' | 'limegreen' | 'linen' | 'magenta' | 'maroon' | 'mediumaquamarine' | 'mediumblue' | 'mediumorchid' | 'mediumpurple' | 'mediumseagreen' | 'mediumslateblue' | 'mediumspringgreen' | 'mediumturquoise' | 'mediumvioletred' | 'midnightblue' | 'mintcream' | 'mistyrose' | 'moccasin' | 'navajowhite' | 'navy' | 'oldlace' | 'olive' | 'olivedrab' | 'orange' | 'orangered' | 'orchid' | 'palegoldenrod' | 'palegreen' | 'paleturquoise' | 'palevioletred' | 'papayawhip' | 'peachpuff' | 'peru' | 'pink' | 'plum' | 'powderblue' | 'purple' | 'rebeccapurple' | 'red' | 'rosybrown' | 'royalblue' | 'saddlebrown' | 'salmon' | 'sandybrown' | 'seagreen' | 'seashell' | 'sienna' | 'silver' | 'skyblue' | 'slateblue' | 'slategray' | 'slategrey' | 'snow' | 'springgreen' | 'steelblue' | 'tan' | 'teal' | 'thistle' | 'tomato' | 'turquoise' | 'violet' | 'wheat' | 'white' | 'whitesmoke' | 'yellow' | 'yellowgreen' | 'transparent' | 'currentcolor' | $mol_style_func<'hsla' | 'rgba' | 'var'> | `#${string}`;
534
+ type Length = 0 | `${number}${$mol_style_unit_length}` | $mol_style_func<'calc' | 'var' | 'clamp'>;
535
+ type Size = 'auto' | 'max-content' | 'min-content' | 'fit-content' | Length | Common;
536
+ type Directions<Value> = Value | readonly [Value, Value] | {
537
+ top?: Value;
538
+ right?: Value;
539
+ bottom?: Value;
540
+ left?: Value;
541
+ };
542
+ type Single_animation_composition = 'replace' | 'add' | 'accumulate';
543
+ type Single_animation_direction = 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
544
+ type Single_animation_fill_mode = 'none' | 'forwards' | 'backwards' | 'both';
545
+ type Single_animation_iteration_count = 'infinite' | number;
546
+ type Single_animation_play_state = 'running' | 'paused';
547
+ type Easing_function = Linear_easing_function | Cubic_bezier_easing_function | Step_easing_function;
548
+ type Linear_easing_function = 'linear' | $mol_style_func<'linear'>;
549
+ type Cubic_bezier_easing_function = 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | $mol_style_func<'cubic-bezier'>;
550
+ type Step_easing_function = 'step-start' | 'step-end' | $mol_style_func<'steps'>;
551
+ type Compat_auto = 'searchfield' | 'textarea' | 'push-button' | 'slider-horizontal' | 'checkbox' | 'radio' | 'menulist' | 'listbox' | 'meter' | 'progress-bar' | 'button';
552
+ type Compat_special = 'textfield' | 'menulist-button';
553
+ type Mix_blend_mode = Blend_mode | 'plus-darker' | 'plus-lighter';
554
+ type Blend_mode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity';
555
+ type Box = 'border-box' | 'padding-box' | 'content-box';
556
+ type Baseline_position = 'baseline' | `${'first' | 'last'} baseline`;
557
+ type Content_distribution = 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
558
+ type Self_position = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end';
559
+ type Content_position = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end';
560
+ type Span_align = 'none' | 'start' | 'end' | 'center' | $mol_style_func<'var'>;
561
+ type Snap_axis = 'x' | 'y' | 'block' | 'inline' | 'both' | $mol_style_func<'var'>;
562
+ type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto' | 'overlay' | Common;
563
+ type Overflow_position = 'unsafe' | 'safe';
564
+ type ContainRule = 'size' | 'layout' | 'style' | 'paint' | $mol_style_func<'var'>;
565
+ type Repeat = 'repeat-x' | 'repeat-y' | 'repeat' | 'space' | 'round' | 'no-repeat' | $mol_style_func<'var'>;
566
+ type BG_size = Length | 'auto' | 'contain' | 'cover';
567
+ interface Overrides {
568
+ accentColor?: $mol_style_properties_color | Common;
569
+ align?: {
570
+ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
571
+ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
572
+ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
573
+ };
574
+ justify?: {
575
+ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
576
+ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
577
+ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
578
+ };
579
+ all?: Common;
580
+ animation?: {
581
+ composition?: Single_animation_composition | Single_animation_composition[][] | Common;
582
+ delay?: $mol_style_unit<$mol_style_unit_time> | $mol_style_unit<$mol_style_unit_time>[][] | Common;
583
+ direction?: Single_animation_direction | Single_animation_direction[][] | Common;
584
+ duration?: $mol_style_unit<$mol_style_unit_time> | $mol_style_unit<$mol_style_unit_time>[][] | Common;
585
+ fillMode?: Single_animation_fill_mode | Single_animation_fill_mode[][] | Common;
586
+ iterationCount?: Single_animation_iteration_count | Single_animation_iteration_count[][] | Common;
587
+ name?: 'none' | string & {} | ('none' | string & {})[][] | Common;
588
+ playState?: Single_animation_play_state | Single_animation_play_state[][] | Common;
589
+ timingFunction?: Easing_function | Easing_function[][] | Common;
590
+ };
591
+ appearance?: 'none' | 'auto' | Compat_auto | Compat_special | Common;
592
+ aspectRatio?: 'auto' | number | `${number} / ${number}`;
593
+ backdropFilter: $mol_style_func<$mol_style_func_filter> | $mol_style_func<'url'> | ($mol_style_func<$mol_style_func_filter> | $mol_style_func<'url'>)[][] | 'none' | Common;
594
+ backfaceVisibility: 'visible' | 'hidden' | Common;
595
+ justifyContent?: 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'normal' | 'stretch' | 'center' | Common;
596
+ gap?: Length;
597
+ background?: 'none' | {
598
+ attachment?: 'scroll' | 'fixed' | 'local' | ('scroll' | 'fixed' | 'local')[][] | Common;
599
+ blendMode?: Mix_blend_mode | Mix_blend_mode[][] | Common;
600
+ clip?: Box | Box[][] | Common;
601
+ color?: $mol_style_properties_color | Common;
602
+ image?: readonly (readonly [$mol_style_func<'url'> | string & {}])[] | 'none' | Common;
603
+ repeat?: Repeat | [Repeat, Repeat] | Common;
604
+ position?: 'left' | 'right' | 'top' | 'bottom' | 'center' | Common;
605
+ size?: (BG_size | [BG_size, BG_size])[];
606
+ };
607
+ box?: {
608
+ shadow?: readonly {
609
+ inset?: boolean;
610
+ x: Length;
611
+ y: Length;
612
+ blur: Length;
613
+ spread: Length;
614
+ color: $mol_style_properties_color;
615
+ }[] | 'none' | Common;
616
+ };
617
+ font?: {
618
+ style?: 'normal' | 'italic' | Common;
619
+ weight?: 'normal' | 'bold' | 'lighter' | 'bolder' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | Common;
620
+ size?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'smaller' | 'larger' | Length | Common;
621
+ family?: 'serif' | 'sans-serif' | 'monospace' | 'cursive' | 'fantasy' | 'system-ui' | 'ui-serif' | 'ui-sans-serif' | 'ui-monospace' | 'ui-rounded' | 'emoji' | 'math' | 'fangsong' | Common;
622
+ };
623
+ color?: $mol_style_properties_color | Common;
624
+ display?: 'block' | 'inline' | 'run-in' | 'list-item' | 'none' | 'flow' | 'flow-root' | 'table' | 'flex' | 'grid' | 'contents' | 'table-row-group' | 'table-header-group' | 'table-footer-group' | 'table-column-group' | 'table-row' | 'table-cell' | 'table-column' | 'table-caption' | 'inline-block' | 'inline-table' | 'inline-flex' | 'inline-grid' | 'ruby' | 'ruby-base' | 'ruby-text' | 'ruby-base-container' | 'ruby-text-container' | Common;
625
+ overflow?: Overflow | {
626
+ x?: Overflow | Common;
627
+ y?: Overflow | Common;
628
+ anchor?: 'auto' | 'none' | Common;
629
+ };
630
+ contain?: 'none' | 'strict' | 'content' | ContainRule | readonly ContainRule[] | Common;
631
+ whiteSpace?: 'normal' | 'nowrap' | 'break-spaces' | 'pre' | 'pre-wrap' | 'pre-line' | Common;
632
+ webkitOverflowScrolling?: 'auto' | 'touch' | Common;
633
+ scrollbar?: {
634
+ color?: readonly [$mol_style_properties_color, $mol_style_properties_color] | 'auto' | Common;
635
+ width?: 'auto' | 'thin' | 'none' | Common;
636
+ };
637
+ scroll?: {
638
+ snap?: {
639
+ type: 'none' | Snap_axis | readonly [Snap_axis, 'mandatory' | 'proximity'] | Common;
640
+ stop: 'normal' | 'always' | Common;
641
+ align: Span_align | readonly [Span_align, Span_align] | Common;
642
+ };
643
+ padding?: Directions<Length | 'auto'>;
644
+ };
645
+ width?: Size;
646
+ minWidth?: Size;
647
+ maxWidth?: Size;
648
+ height?: Size;
649
+ minHeight?: Size;
650
+ maxHeight?: Size;
651
+ margin?: Directions<Length | 'auto'>;
652
+ padding?: Directions<Length | 'auto'>;
653
+ position?: 'static' | 'relative' | 'absolute' | 'sticky' | 'fixed' | Common;
654
+ top?: Length | 'auto' | Common;
655
+ right?: Length | 'auto' | Common;
656
+ bottom?: Length | 'auto' | Common;
657
+ left?: Length | 'auto' | Common;
658
+ border?: Directions<{
659
+ radius?: Length | [Length, Length];
660
+ style?: 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | Common;
661
+ color?: $mol_style_properties_color | Common;
662
+ width?: Length | Common;
663
+ }>;
664
+ flex?: 'none' | 'auto' | {
665
+ grow?: number | Common;
666
+ shrink?: number | Common;
667
+ basis?: Size | Common;
668
+ direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | Common;
669
+ wrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | Common;
670
+ };
671
+ zIndex: number | Common;
672
+ opacity: number | Common;
673
+ }
674
+ export {};
675
+ }
676
+
677
+ declare namespace $ {
678
+ const $mol_theme: {
679
+ back: $mol_style_func<"var", string[] | "--mol_theme_back">;
680
+ hover: $mol_style_func<"var", string[] | "--mol_theme_hover">;
681
+ card: $mol_style_func<"var", string[] | "--mol_theme_card">;
682
+ current: $mol_style_func<"var", string[] | "--mol_theme_current">;
683
+ special: $mol_style_func<"var", string[] | "--mol_theme_special">;
684
+ text: $mol_style_func<"var", string[] | "--mol_theme_text">;
685
+ control: $mol_style_func<"var", string[] | "--mol_theme_control">;
686
+ shade: $mol_style_func<"var", string[] | "--mol_theme_shade">;
687
+ line: $mol_style_func<"var", string[] | "--mol_theme_line">;
688
+ focus: $mol_style_func<"var", string[] | "--mol_theme_focus">;
689
+ field: $mol_style_func<"var", string[] | "--mol_theme_field">;
690
+ image: $mol_style_func<"var", string[] | "--mol_theme_image">;
691
+ };
692
+ }
693
+
694
+ declare namespace $ {
695
+ }
696
+
697
+ declare namespace $ {
698
+ let $mol_gap: {
699
+ readonly block: $mol_style_func<"var", string[] | "--mol_gap_block">;
700
+ readonly text: $mol_style_func<"var", string[] | "--mol_gap_text">;
701
+ readonly round: $mol_style_func<"var", string[] | "--mol_gap_round">;
702
+ readonly space: $mol_style_func<"var", string[] | "--mol_gap_space">;
703
+ readonly blur: $mol_style_func<"var", string[] | "--mol_gap_blur">;
704
+ };
705
+ }
706
+
707
+ declare namespace $ {
708
+ }
709
+
710
+ declare namespace $ {
711
+ type $mol_view_content = $mol_view | Node | string | number | boolean;
712
+ function $mol_view_visible_width(): number;
713
+ function $mol_view_visible_height(): number;
714
+ function $mol_view_state_key(suffix: string): string;
715
+ class $mol_view extends $mol_object {
716
+ static Root<This extends typeof $mol_view>(this: This, id: number): InstanceType<This>;
717
+ autorun(): void;
718
+ static autobind(): void;
719
+ title(): string;
720
+ focused(next?: boolean): boolean;
721
+ state_key(suffix?: string): string;
722
+ dom_name(): string;
723
+ dom_name_space(): string;
724
+ sub(): readonly (string | number | boolean | $mol_view | Node)[];
725
+ sub_visible(): readonly (string | number | boolean | $mol_view | Node)[];
726
+ minimal_width(): number;
727
+ maximal_width(): number;
728
+ minimal_height(): number;
729
+ static watchers: Set<$mol_view>;
730
+ view_rect(): {
731
+ width: number;
732
+ height: number;
733
+ left: number;
734
+ right: number;
735
+ top: number;
736
+ bottom: number;
737
+ } | null;
738
+ dom_id(): string;
739
+ dom_node(next?: Element): Element;
740
+ dom_final(): Element | undefined;
741
+ dom_tree(next?: Element): Element;
742
+ dom_node_actual(): Element;
743
+ auto(): any;
744
+ render(): void;
745
+ static view_classes(): (typeof $mol_view)[];
746
+ static _view_names?: Map<string, string[]>;
747
+ static view_names(suffix: string): string[];
748
+ view_names_owned(): string[];
749
+ view_names(): Set<string>;
750
+ attr_static(): {
751
+ [key: string]: string | number | boolean | null;
752
+ };
753
+ attr(): {};
754
+ style_size(): {
755
+ [key: string]: string | number;
756
+ };
757
+ style(): {
758
+ [key: string]: string | number;
759
+ };
760
+ field(): {
761
+ [key: string]: any;
762
+ };
763
+ event(): {
764
+ [key: string]: (event: Event) => void;
765
+ };
766
+ plugins(): readonly $mol_view[];
767
+ view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>;
768
+ force_render(path: Set<$mol_view>): void;
769
+ ensure_visible(view: $mol_view, align?: ScrollLogicalPosition): void;
770
+ bring(): void;
771
+ }
772
+ type $mol_view_all = $mol_type_pick<$, typeof $mol_view>;
773
+ }
774
+
775
+ declare namespace $ {
776
+ }
777
+
778
+ interface Window {
779
+ cordova: any;
780
+ }
781
+ declare namespace $ {
782
+ }
783
+
784
+ declare namespace $ {
785
+ class $mol_plugin extends $mol_view {
786
+ dom_node(next?: Element): Element;
787
+ attr_static(): {
788
+ [key: string]: string | number | boolean;
789
+ };
790
+ event(): {
791
+ [key: string]: (event: Event) => void;
792
+ };
793
+ render(): void;
794
+ }
795
+ }
796
+
797
+ declare namespace $ {
798
+ function $mol_view_component(View: typeof $mol_view): void;
799
+ }
800
+
801
+ declare namespace $ {
802
+ class $mol_stack extends $mol_view {
803
+ }
804
+ }
805
+
806
+ declare namespace $ {
807
+ }
808
+
809
+ declare namespace $ {
810
+ class $mol_paragraph extends $mol_view {
811
+ line_height(): number;
812
+ letter_width(): number;
813
+ width_limit(): number;
814
+ row_width(): number;
815
+ sub(): readonly any[];
816
+ }
817
+ }
818
+
819
+ declare namespace $.$$ {
820
+ class $mol_paragraph extends $.$mol_paragraph {
821
+ maximal_width(): number;
822
+ width_limit(): number;
823
+ minimal_width(): number;
824
+ row_width(): number;
825
+ minimal_height(): number;
826
+ }
827
+ }
828
+
829
+ declare namespace $ {
830
+ }
831
+
832
+ declare namespace $ {
833
+ class $mol_dimmer extends $mol_paragraph {
834
+ haystack(): string;
835
+ needle(): string;
836
+ sub(): readonly $mol_view_content[];
837
+ Low(id: any): $$.$mol_paragraph;
838
+ High(id: any): $$.$mol_paragraph;
839
+ parts(): readonly $mol_view_content[];
840
+ string(id: any): string;
841
+ }
842
+ }
843
+
844
+ declare namespace $ {
845
+ type $mol_type_equals<A, B> = (<X>() => X extends A ? 1 : 2) extends (<X>() => X extends B ? 1 : 2) ? unknown : never;
846
+ }
847
+
848
+ declare namespace $ {
849
+ 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 : {
850
+ [Key in keyof Intersection]: $mol_type_merge<Intersection[Key]>;
851
+ } : Intersection : Intersection;
852
+ type $mol_type_merge_object<Intersection> = {
853
+ [Key in keyof Intersection]: Intersection[Key];
854
+ };
855
+ }
856
+
857
+ declare namespace $ {
858
+ type $mol_type_intersect<Union> = (Union extends any ? (_: Union) => void : never) extends ((_: infer Intersection) => void) ? Intersection : never;
859
+ }
860
+
861
+ declare namespace $ {
862
+ 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];
863
+ 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';
864
+ 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';
865
+ 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';
866
+ }
867
+
868
+ interface String {
869
+ match<RE extends RegExp>(regexp: RE): ReturnType<RE[typeof Symbol.match]>;
870
+ matchAll<RE extends RegExp>(regexp: RE): ReturnType<RE[typeof Symbol.matchAll]>;
871
+ }
872
+ declare namespace $ {
873
+ type Groups_to_params<T> = {
874
+ [P in keyof T]?: T[P] | boolean | undefined;
875
+ };
876
+ export type $mol_regexp_source = number | string | RegExp | {
877
+ [key in string]: $mol_regexp_source;
878
+ } | readonly [$mol_regexp_source, ...$mol_regexp_source[]];
879
+ 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<{
880
+ [key in Extract<keyof Source, number>]: $mol_regexp_groups<Source[key]>;
881
+ }[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 {
882
+ readonly [key in string]: $mol_regexp_source;
883
+ } ? $mol_type_merge<$mol_type_intersect<{
884
+ [key in keyof Source]: $mol_type_merge<$mol_type_override<{
885
+ readonly [k in Extract<keyof Source, string>]: string;
886
+ }, {
887
+ readonly [k in key]: Source[key] extends string ? Source[key] : string;
888
+ }> & $mol_regexp_groups<Source[key]>>;
889
+ }[keyof Source]>> : never;
890
+ export class $mol_regexp<Groups extends Record<string, string>> extends RegExp {
891
+ readonly groups: (Extract<keyof Groups, string>)[];
892
+ constructor(source: string, flags?: string, groups?: (Extract<keyof Groups, string>)[]);
893
+ [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray & $mol_type_override<RegExpMatchArray, {
894
+ groups?: {
895
+ [key in keyof Groups]: string;
896
+ };
897
+ }>>;
898
+ [Symbol.match](str: string): null | RegExpMatchArray;
899
+ [Symbol.split](str: string): string[];
900
+ test(str: string): boolean;
901
+ exec(str: string): RegExpExecArray & $mol_type_override<RegExpExecArray, {
902
+ groups?: {
903
+ [key in keyof Groups]: string;
904
+ };
905
+ }> | null;
906
+ generate(params: Groups_to_params<Groups>): string | null;
907
+ get native(): RegExp;
908
+ static repeat<Source extends $mol_regexp_source>(source: Source, min?: number, max?: number): $mol_regexp<$mol_regexp_groups<Source>>;
909
+ static repeat_greedy<Source extends $mol_regexp_source>(source: Source, min?: number, max?: number): $mol_regexp<$mol_regexp_groups<Source>>;
910
+ static vary<Sources extends readonly $mol_regexp_source[]>(sources: Sources): $mol_regexp<$mol_regexp_groups<Sources[number]>>;
911
+ static optional<Source extends $mol_regexp_source>(source: Source): $mol_regexp<$mol_regexp_groups<Source>>;
912
+ static force_after(source: $mol_regexp_source): $mol_regexp<Record<string, string>>;
913
+ static forbid_after(source: $mol_regexp_source): $mol_regexp<Record<string, string>>;
914
+ static from<Source extends $mol_regexp_source>(source: Source, { ignoreCase, multiline }?: Partial<Pick<RegExp, 'ignoreCase' | 'multiline'>>): $mol_regexp<$mol_regexp_groups<Source>>;
915
+ static unicode_only(...category: $mol_unicode_category): $mol_regexp<Record<string, string>>;
916
+ static unicode_except(...category: $mol_unicode_category): $mol_regexp<Record<string, string>>;
917
+ static char_range(from: number, to: number): $mol_regexp<{}>;
918
+ static char_only(...allowed: readonly [$mol_regexp_source, ...$mol_regexp_source[]]): $mol_regexp<{}>;
919
+ static char_except(...forbidden: readonly [$mol_regexp_source, ...$mol_regexp_source[]]): $mol_regexp<{}>;
920
+ static decimal_only: $mol_regexp<{}>;
921
+ static decimal_except: $mol_regexp<{}>;
922
+ static latin_only: $mol_regexp<{}>;
923
+ static latin_except: $mol_regexp<{}>;
924
+ static space_only: $mol_regexp<{}>;
925
+ static space_except: $mol_regexp<{}>;
926
+ static word_break_only: $mol_regexp<{}>;
927
+ static word_break_except: $mol_regexp<{}>;
928
+ static tab: $mol_regexp<{}>;
929
+ static slash_back: $mol_regexp<{}>;
930
+ static nul: $mol_regexp<{}>;
931
+ static char_any: $mol_regexp<{}>;
932
+ static begin: $mol_regexp<{}>;
933
+ static end: $mol_regexp<{}>;
934
+ static or: $mol_regexp<{}>;
935
+ static line_end: $mol_regexp<{
936
+ readonly win_end: string;
937
+ readonly mac_end: string;
938
+ }>;
939
+ }
940
+ export {};
941
+ }
942
+
943
+ declare namespace $.$$ {
944
+ class $mol_dimmer extends $.$mol_dimmer {
945
+ parts(): any[];
946
+ strings(): string[];
947
+ string(index: number): string;
948
+ view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>;
949
+ }
950
+ }
951
+
952
+ declare namespace $ {
953
+ }
954
+
955
+ declare namespace $ {
956
+ class $mol_text_code_token extends $mol_dimmer {
957
+ attr(): Record<string, any>;
958
+ type(): string;
959
+ }
960
+ class $mol_text_code_token_link extends $mol_text_code_token {
961
+ dom_name(): string;
962
+ type(): string;
963
+ attr(): Record<string, any>;
964
+ uri(): string;
965
+ }
966
+ }
967
+
968
+ declare namespace $ {
969
+ type $mol_style_pseudo_class = ':active' | ':any' | ':any-link' | ':checked' | ':default' | ':defined' | ':dir(rtl)' | ':dir(ltr)' | ':disabled' | ':empty' | ':enabled' | ':first' | ':first-child' | ':first-of-type' | ':fullscreen' | ':focus' | ':focus-visible' | ':focus-within' | ':hover' | ':indeterminate' | ':in-range' | ':invalid' | ':last-child' | ':last-of-type' | ':left' | ':link' | ':not()' | ':nth-child(even)' | ':nth-child(odd)' | ':nth-last-child(even)' | ':nth-last-child(odd)' | ':nth-of-type(even)' | ':nth-of-type(odd)' | ':nth-last-of-type(even)' | ':nth-last-of-type(odd)' | ':only-child' | ':only-of-type' | ':optional' | ':out-of-range' | ':placeholder-shown' | ':read-only' | ':read-write' | ':required' | ':right' | ':root' | ':scope' | ':target' | ':valid' | ':visited';
970
+ }
971
+
972
+ declare namespace $ {
973
+ type $mol_style_pseudo_element = '::after' | '::before' | '::cue' | '::first-letter' | '::first-line' | '::selection' | '::slotted' | '::backdrop' | '::placeholder' | '::marker' | '::spelling-error' | '::grammar-error' | '::-webkit-calendar-picker-indicator' | '::-webkit-color-swatch' | '::-webkit-color-swatch-wrapper' | '::-webkit-details-marker' | '::-webkit-file-upload-button' | '::-webkit-image-inner-element' | '::-webkit-inner-spin-button' | '::-webkit-input-placeholder' | '::-webkit-input-speech-button' | '::-webkit-keygen-select' | '::-webkit-media-controls-panel' | '::-webkit-media-controls-timeline-container' | '::-webkit-media-slider-container' | '::-webkit-meter-bar' | '::-webkit-meter-even-less-good-value' | '::-webkit-meter-optimum-value' | '::-webkit-meter-suboptimal-value' | '::-webkit-progress-bar' | '::-webkit-progress-value' | '::-webkit-resizer' | '::-webkit-resizer:window-inactive' | '::-webkit-scrollbar' | '::-webkit-scrollbar-button' | '::-webkit-scrollbar-button:disabled' | '::-webkit-scrollbar-button:double-button:horizontal:end:decrement' | '::-webkit-scrollbar-button:double-button:horizontal:end:increment' | '::-webkit-scrollbar-button:double-button:horizontal:end:increment:corner-present' | '::-webkit-scrollbar-button:double-button:horizontal:start:decrement' | '::-webkit-scrollbar-button:double-button:horizontal:start:increment' | '::-webkit-scrollbar-button:double-button:vertical:end:decrement' | '::-webkit-scrollbar-button:double-button:vertical:end:increment' | '::-webkit-scrollbar-button:double-button:vertical:end:increment:corner-present' | '::-webkit-scrollbar-button:double-button:vertical:start:decrement' | '::-webkit-scrollbar-button:double-button:vertical:start:increment' | '::-webkit-scrollbar-button:end' | '::-webkit-scrollbar-button:end:decrement' | '::-webkit-scrollbar-button:end:increment' | '::-webkit-scrollbar-button:horizontal' | '::-webkit-scrollbar-button:horizontal:decrement' | '::-webkit-scrollbar-button:horizontal:decrement:active' | '::-webkit-scrollbar-button:horizontal:decrement:hover' | '::-webkit-scrollbar-button:horizontal:decrement:window-inactive' | '::-webkit-scrollbar-button:horizontal:end' | '::-webkit-scrollbar-button:horizontal:end:decrement' | '::-webkit-scrollbar-button:horizontal:end:increment' | '::-webkit-scrollbar-button:horizontal:end:increment:corner-present' | '::-webkit-scrollbar-button:horizontal:increment' | '::-webkit-scrollbar-button:horizontal:increment:active' | '::-webkit-scrollbar-button:horizontal:increment:hover' | '::-webkit-scrollbar-button:horizontal:increment:window-inactive' | '::-webkit-scrollbar-button:horizontal:start' | '::-webkit-scrollbar-button:horizontal:start:decrement' | '::-webkit-scrollbar-button:horizontal:start:increment' | '::-webkit-scrollbar-button:start' | '::-webkit-scrollbar-button:start:decrement' | '::-webkit-scrollbar-button:start:increment' | '::-webkit-scrollbar-button:vertical' | '::-webkit-scrollbar-button:vertical:decrement' | '::-webkit-scrollbar-button:vertical:decrement:active' | '::-webkit-scrollbar-button:vertical:decrement:hover' | '::-webkit-scrollbar-button:vertical:decrement:window-inactive' | '::-webkit-scrollbar-button:vertical:end' | '::-webkit-scrollbar-button:vertical:end:decrement' | '::-webkit-scrollbar-button:vertical:end:increment' | '::-webkit-scrollbar-button:vertical:end:increment:corner-present' | '::-webkit-scrollbar-button:vertical:increment' | '::-webkit-scrollbar-button:vertical:increment:active' | '::-webkit-scrollbar-button:vertical:increment:hover' | '::-webkit-scrollbar-button:vertical:increment:window-inactive' | '::-webkit-scrollbar-button:vertical:start' | '::-webkit-scrollbar-button:vertical:start:decrement' | '::-webkit-scrollbar-button:vertical:start:increment' | '::-webkit-scrollbar-corner' | '::-webkit-scrollbar-corner:window-inactive' | '::-webkit-scrollbar-thumb' | '::-webkit-scrollbar-thumb:horizontal' | '::-webkit-scrollbar-thumb:horizontal:active' | '::-webkit-scrollbar-thumb:horizontal:hover' | '::-webkit-scrollbar-thumb:horizontal:window-inactive' | '::-webkit-scrollbar-thumb:vertical' | '::-webkit-scrollbar-thumb:vertical:active' | '::-webkit-scrollbar-thumb:vertical:hover' | '::-webkit-scrollbar-thumb:vertical:window-inactive' | '::-webkit-scrollbar-track' | '::-webkit-scrollbar-track-piece' | '::-webkit-scrollbar-track-piece:disabled' | '::-webkit-scrollbar-track-piece:end' | '::-webkit-scrollbar-track-piece:horizontal:decrement' | '::-webkit-scrollbar-track-piece:horizontal:decrement:active' | '::-webkit-scrollbar-track-piece:horizontal:decrement:hover' | '::-webkit-scrollbar-track-piece:horizontal:end' | '::-webkit-scrollbar-track-piece:horizontal:end:corner-present' | '::-webkit-scrollbar-track-piece:horizontal:end:double-button' | '::-webkit-scrollbar-track-piece:horizontal:end:no-button' | '::-webkit-scrollbar-track-piece:horizontal:end:no-button:corner-present' | '::-webkit-scrollbar-track-piece:horizontal:end:single-button' | '::-webkit-scrollbar-track-piece:horizontal:increment' | '::-webkit-scrollbar-track-piece:horizontal:increment:active' | '::-webkit-scrollbar-track-piece:horizontal:increment:hover' | '::-webkit-scrollbar-track-piece:horizontal:start' | '::-webkit-scrollbar-track-piece:horizontal:start:double-button' | '::-webkit-scrollbar-track-piece:horizontal:start:no-button' | '::-webkit-scrollbar-track-piece:horizontal:start:single-button' | '::-webkit-scrollbar-track-piece:start' | '::-webkit-scrollbar-track-piece:vertical:decrement' | '::-webkit-scrollbar-track-piece:vertical:decrement:active' | '::-webkit-scrollbar-track-piece:vertical:decrement:hover' | '::-webkit-scrollbar-track-piece:vertical:end' | '::-webkit-scrollbar-track-piece:vertical:end:corner-present' | '::-webkit-scrollbar-track-piece:vertical:end:double-button' | '::-webkit-scrollbar-track-piece:vertical:end:no-button' | '::-webkit-scrollbar-track-piece:vertical:end:no-button:corner-present' | '::-webkit-scrollbar-track-piece:vertical:end:single-button' | '::-webkit-scrollbar-track-piece:vertical:increment' | '::-webkit-scrollbar-track-piece:vertical:increment:active' | '::-webkit-scrollbar-track-piece:vertical:increment:hover' | '::-webkit-scrollbar-track-piece:vertical:start' | '::-webkit-scrollbar-track-piece:vertical:start:double-button' | '::-webkit-scrollbar-track-piece:vertical:start:no-button' | '::-webkit-scrollbar-track-piece:vertical:start:single-button' | '::-webkit-scrollbar-track:disabled' | '::-webkit-scrollbar-track:horizontal' | '::-webkit-scrollbar-track:horizontal:disabled' | '::-webkit-scrollbar-track:horizontal:disabled:corner-present' | '::-webkit-scrollbar-track:vertical:disabled' | '::-webkit-scrollbar-track:vertical:disabled:corner-present' | '::-webkit-scrollbar:horizontal' | '::-webkit-scrollbar:horizontal:corner-present' | '::-webkit-scrollbar:horizontal:window-inactive' | '::-webkit-scrollbar:vertical' | '::-webkit-scrollbar:vertical:corner-present' | '::-webkit-scrollbar:vertical:window-inactive' | '::-webkit-search-cancel-button' | '::-webkit-search-decoration' | '::-webkit-search-results-button' | '::-webkit-search-results-decoration' | '::-webkit-slider-container' | '::-webkit-slider-runnable-track' | '::-webkit-slider-thumb' | '::-webkit-slider-thumb:disabled' | '::-webkit-slider-thumb:hover' | '::-webkit-textfield-decoration-container' | '::-webkit-validation-bubble' | '::-webkit-validation-bubble-arrow' | '::-webkit-validation-bubble-arrow-clipper' | '::-webkit-validation-bubble-heading' | '::-webkit-validation-bubble-message' | '::-webkit-validation-bubble-text-block';
974
+ }
975
+
976
+ declare namespace $ {
977
+ type $mol_type_error<Message, Info = {}> = Message & {
978
+ $mol_type_error: Info;
979
+ };
980
+ }
981
+
982
+ declare namespace $ {
983
+ type Attrs<View extends $mol_view, Config, Attrs = ReturnType<View['attr']>> = {
984
+ [name in keyof Attrs]?: {
985
+ [val in keyof Config[Extract<name, keyof Config>]]: $mol_style_guard<View, Config[Extract<name, keyof Config>][val]>;
986
+ };
987
+ };
988
+ type Medias<View extends $mol_view, Config> = {
989
+ [query in keyof Config]: $mol_style_guard<View, Config[query]>;
990
+ };
991
+ type Keys<View extends $mol_view> = '>' | '@' | keyof $mol_style_properties | $mol_style_pseudo_element | $mol_style_pseudo_class | $mol_type_keys_extract<View, () => $mol_view> | `$${string}`;
992
+ export type $mol_style_guard<View extends $mol_view, Config> = {
993
+ [key in Keys<View>]?: unknown;
994
+ } & {
995
+ [key in keyof Config]: key extends keyof $mol_style_properties ? $mol_style_properties[key] : key extends '>' | $mol_style_pseudo_class | $mol_style_pseudo_element ? $mol_style_guard<View, Config[key]> : key extends '@' ? Attrs<View, Config[key]> : key extends '@media' ? Medias<View, Config[key]> : key extends `--${string}` ? any : key extends keyof $ ? $mol_style_guard<InstanceType<Extract<$[key], typeof $mol_view>>, Config[key]> : key extends keyof View ? View[key] extends (id?: any) => infer Sub ? Sub extends $mol_view ? $mol_style_guard<Sub, Config[key]> : $mol_type_error<'Property returns non $mol_view', {
996
+ Returns: Sub;
997
+ }> : $mol_type_error<'Field is not a Property'> : key extends `$${string}` ? $mol_type_error<'Unknown View Class'> : $mol_type_error<'Unknown CSS Property'>;
998
+ };
999
+ export {};
1000
+ }
1001
+
1002
+ declare namespace $ {
1003
+ function $mol_style_sheet<Component extends $mol_view, Config extends $mol_style_guard<Component, Config>>(Component: new () => Component, config0: Config): string;
1004
+ }
1005
+
1006
+ declare namespace $ {
1007
+ function $mol_style_define<Component extends $mol_view, Config extends $mol_style_guard<Component, Config>>(Component: new () => Component, config: Config): HTMLStyleElement | null;
1008
+ }
1009
+
1010
+ declare namespace $.$$ {
1011
+ }
1012
+
1013
+ declare namespace $ {
1014
+ class $mol_text_code_row extends $mol_paragraph {
1015
+ text(): string;
1016
+ minimal_height(): number;
1017
+ numb_showed(): boolean;
1018
+ syntax(): any;
1019
+ uri_resolve(id: any): string;
1020
+ Numb(): $mol_view;
1021
+ Token(id: any): $mol_text_code_token;
1022
+ Token_link(id: any): $mol_text_code_token_link;
1023
+ find_pos(id: any): any;
1024
+ numb(): number;
1025
+ token_type(id: any): string;
1026
+ token_text(id: any): string;
1027
+ highlight(): string;
1028
+ token_uri(id: any): string;
1029
+ }
1030
+ }
1031
+
1032
+ declare namespace $ {
1033
+ class $mol_syntax2<Lexems extends {
1034
+ [name: string]: RegExp;
1035
+ }> {
1036
+ lexems: Lexems;
1037
+ constructor(lexems: Lexems);
1038
+ rules: {
1039
+ regExp: RegExp;
1040
+ name: string;
1041
+ size: number;
1042
+ }[];
1043
+ regexp: RegExp;
1044
+ tokenize(text: string, handle: (name: string, found: string, chunks: string[], offset: number) => void): void;
1045
+ parse(text: string, handlers: {
1046
+ [key in keyof Lexems | '']: (found: string, chunks: string[], offset: number) => void;
1047
+ }): void;
1048
+ }
1049
+ }
1050
+
1051
+ declare namespace $ {
1052
+ var $mol_syntax2_md_flow: $mol_syntax2<{
1053
+ quote: RegExp;
1054
+ header: RegExp;
1055
+ list: RegExp;
1056
+ code: RegExp;
1057
+ 'code-indent': RegExp;
1058
+ table: RegExp;
1059
+ grid: RegExp;
1060
+ cut: RegExp;
1061
+ block: RegExp;
1062
+ }>;
1063
+ var $mol_syntax2_md_line: $mol_syntax2<{
1064
+ strong: RegExp;
1065
+ emphasis: RegExp;
1066
+ code: RegExp;
1067
+ insert: RegExp;
1068
+ delete: RegExp;
1069
+ embed: RegExp;
1070
+ link: RegExp;
1071
+ 'image-link': RegExp;
1072
+ 'text-link': RegExp;
1073
+ 'text-link-http': RegExp;
1074
+ }>;
1075
+ const $mol_syntax2_md_code: $mol_syntax2<{
1076
+ 'code-indent': RegExp;
1077
+ 'code-docs': RegExp;
1078
+ 'code-comment-block': RegExp;
1079
+ 'code-link': RegExp;
1080
+ 'code-comment-inline': RegExp;
1081
+ 'code-string': RegExp;
1082
+ 'code-number': RegExp;
1083
+ 'code-call': RegExp;
1084
+ 'code-sexpr': RegExp;
1085
+ 'code-field': RegExp;
1086
+ 'code-keyword': RegExp;
1087
+ 'code-global': RegExp;
1088
+ 'code-word': RegExp;
1089
+ 'code-decorator': RegExp;
1090
+ 'code-tag': RegExp;
1091
+ 'code-punctuation': RegExp;
1092
+ }>;
1093
+ }
1094
+
1095
+ declare namespace $.$$ {
1096
+ class $mol_text_code_row extends $.$mol_text_code_row {
1097
+ maximal_width(): number;
1098
+ syntax(): $mol_syntax2<{
1099
+ 'code-indent': RegExp;
1100
+ 'code-docs': RegExp;
1101
+ 'code-comment-block': RegExp;
1102
+ 'code-link': RegExp;
1103
+ 'code-comment-inline': RegExp;
1104
+ 'code-string': RegExp;
1105
+ 'code-number': RegExp;
1106
+ 'code-call': RegExp;
1107
+ 'code-sexpr': RegExp;
1108
+ 'code-field': RegExp;
1109
+ 'code-keyword': RegExp;
1110
+ 'code-global': RegExp;
1111
+ 'code-word': RegExp;
1112
+ 'code-decorator': RegExp;
1113
+ 'code-tag': RegExp;
1114
+ 'code-punctuation': RegExp;
1115
+ }>;
1116
+ tokens(path: number[]): readonly {
1117
+ name: string;
1118
+ found: string;
1119
+ chunks: string[];
1120
+ }[];
1121
+ sub(): $mol_view[];
1122
+ row_content(path: number[]): $mol_text_code_token[];
1123
+ Token(path: number[]): $mol_text_code_token;
1124
+ token_type(path: number[]): string;
1125
+ token_content(path: number[]): (string | $mol_text_code_token)[];
1126
+ token_text(path: number[]): string;
1127
+ token_uri(path: number[]): string;
1128
+ view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>;
1129
+ find_pos(offset: number): {
1130
+ token: $mol_text_code_token;
1131
+ offset: number;
1132
+ } | null;
1133
+ find_token_pos([offset, ...path]: number[]): {
1134
+ token: $mol_text_code_token;
1135
+ offset: number;
1136
+ } | null;
1137
+ }
1138
+ }
1139
+
1140
+ declare namespace $.$$ {
1141
+ }
1142
+
1143
+ declare namespace $ {
1144
+ class $mol_list extends $mol_view {
1145
+ render_visible_only(): boolean;
1146
+ render_over(): number;
1147
+ sub(): readonly $mol_view[];
1148
+ Empty(): $mol_view;
1149
+ Gap_before(): $mol_view;
1150
+ Gap_after(): $mol_view;
1151
+ view_window(): readonly any[];
1152
+ rows(): readonly $mol_view[];
1153
+ gap_before(): number;
1154
+ gap_after(): number;
1155
+ }
1156
+ }
1157
+
1158
+ declare namespace $ {
1159
+ function $mol_support_css_overflow_anchor(this: $): boolean;
1160
+ }
1161
+
1162
+ declare namespace $ {
1163
+ class $mol_dom_listener extends $mol_object {
1164
+ _node: any;
1165
+ _event: string;
1166
+ _handler: (event: any) => any;
1167
+ _config: boolean | {
1168
+ passive: boolean;
1169
+ };
1170
+ constructor(_node: any, _event: string, _handler: (event: any) => any, _config?: boolean | {
1171
+ passive: boolean;
1172
+ });
1173
+ destructor(): void;
1174
+ }
1175
+ }
1176
+
1177
+ declare namespace $ {
1178
+ class $mol_print extends $mol_object {
1179
+ static before(): $mol_dom_listener;
1180
+ static after(): $mol_dom_listener;
1181
+ static active(next?: boolean): boolean;
1182
+ }
1183
+ }
1184
+
1185
+ declare namespace $ {
1186
+ let $mol_mem_cached: typeof $mol_wire_probe;
1187
+ }
1188
+
1189
+ declare namespace $.$$ {
1190
+ class $mol_list extends $.$mol_list {
1191
+ sub(): readonly $mol_view[];
1192
+ render_visible_only(): boolean;
1193
+ view_window(next?: [number, number]): [number, number];
1194
+ gap_before(): number;
1195
+ gap_after(): number;
1196
+ sub_visible(): $mol_view[];
1197
+ minimal_height(): number;
1198
+ force_render(path: Set<$mol_view>): void;
1199
+ }
1200
+ }
1201
+
1202
+ declare namespace $ {
1203
+ }
1204
+
1205
+ declare namespace $ {
1206
+ class $mol_speck extends $mol_view {
1207
+ attr(): Record<string, any>;
1208
+ style(): Record<string, any>;
1209
+ sub(): readonly any[];
1210
+ theme(): string;
1211
+ value(): any;
1212
+ }
1213
+ }
1214
+
1215
+ declare namespace $ {
1216
+ let $mol_layer: {
1217
+ readonly hover: $mol_style_func<"var", string[] | "--mol_layer_hover">;
1218
+ readonly focus: $mol_style_func<"var", string[] | "--mol_layer_focus">;
1219
+ readonly speck: $mol_style_func<"var", string[] | "--mol_layer_speck">;
1220
+ readonly float: $mol_style_func<"var", string[] | "--mol_layer_float">;
1221
+ readonly popup: $mol_style_func<"var", string[] | "--mol_layer_popup">;
1222
+ };
1223
+ }
1224
+
1225
+ declare namespace $ {
1226
+ }
1227
+
1228
+ declare namespace $ {
1229
+ }
1230
+
1231
+ declare namespace $ {
1232
+ class $mol_button extends $mol_view {
1233
+ enabled(): boolean;
1234
+ click(event?: any): any;
1235
+ event_click(event?: any): any;
1236
+ event(): Record<string, any>;
1237
+ attr(): Record<string, any>;
1238
+ sub(): readonly $mol_view_content[];
1239
+ Speck(): $mol_speck;
1240
+ event_activate(event?: any): any;
1241
+ clicks(event?: any): any;
1242
+ event_key_press(event?: any): any;
1243
+ disabled(): boolean;
1244
+ tab_index(): number;
1245
+ hint(): string;
1246
+ hint_safe(): string;
1247
+ error(): string;
1248
+ }
1249
+ }
1250
+
1251
+ declare namespace $ {
1252
+ enum $mol_keyboard_code {
1253
+ backspace = 8,
1254
+ tab = 9,
1255
+ enter = 13,
1256
+ shift = 16,
1257
+ ctrl = 17,
1258
+ alt = 18,
1259
+ pause = 19,
1260
+ capsLock = 20,
1261
+ escape = 27,
1262
+ space = 32,
1263
+ pageUp = 33,
1264
+ pageDown = 34,
1265
+ end = 35,
1266
+ home = 36,
1267
+ left = 37,
1268
+ up = 38,
1269
+ right = 39,
1270
+ down = 40,
1271
+ insert = 45,
1272
+ delete = 46,
1273
+ key0 = 48,
1274
+ key1 = 49,
1275
+ key2 = 50,
1276
+ key3 = 51,
1277
+ key4 = 52,
1278
+ key5 = 53,
1279
+ key6 = 54,
1280
+ key7 = 55,
1281
+ key8 = 56,
1282
+ key9 = 57,
1283
+ A = 65,
1284
+ B = 66,
1285
+ C = 67,
1286
+ D = 68,
1287
+ E = 69,
1288
+ F = 70,
1289
+ G = 71,
1290
+ H = 72,
1291
+ I = 73,
1292
+ J = 74,
1293
+ K = 75,
1294
+ L = 76,
1295
+ M = 77,
1296
+ N = 78,
1297
+ O = 79,
1298
+ P = 80,
1299
+ Q = 81,
1300
+ R = 82,
1301
+ S = 83,
1302
+ T = 84,
1303
+ U = 85,
1304
+ V = 86,
1305
+ W = 87,
1306
+ X = 88,
1307
+ Y = 89,
1308
+ Z = 90,
1309
+ metaLeft = 91,
1310
+ metaRight = 92,
1311
+ select = 93,
1312
+ numpad0 = 96,
1313
+ numpad1 = 97,
1314
+ numpad2 = 98,
1315
+ numpad3 = 99,
1316
+ numpad4 = 100,
1317
+ numpad5 = 101,
1318
+ numpad6 = 102,
1319
+ numpad7 = 103,
1320
+ numpad8 = 104,
1321
+ numpad9 = 105,
1322
+ multiply = 106,
1323
+ add = 107,
1324
+ subtract = 109,
1325
+ decimal = 110,
1326
+ divide = 111,
1327
+ F1 = 112,
1328
+ F2 = 113,
1329
+ F3 = 114,
1330
+ F4 = 115,
1331
+ F5 = 116,
1332
+ F6 = 117,
1333
+ F7 = 118,
1334
+ F8 = 119,
1335
+ F9 = 120,
1336
+ F10 = 121,
1337
+ F11 = 122,
1338
+ F12 = 123,
1339
+ numLock = 144,
1340
+ scrollLock = 145,
1341
+ semicolon = 186,
1342
+ equals = 187,
1343
+ comma = 188,
1344
+ dash = 189,
1345
+ period = 190,
1346
+ forwardSlash = 191,
1347
+ graveAccent = 192,
1348
+ bracketOpen = 219,
1349
+ slashBack = 220,
1350
+ slashBackLeft = 226,
1351
+ bracketClose = 221,
1352
+ quoteSingle = 222
1353
+ }
1354
+ }
1355
+
1356
+ declare namespace $.$$ {
1357
+ class $mol_button extends $.$mol_button {
1358
+ status(next?: any[]): any[];
1359
+ disabled(): boolean;
1360
+ event_activate(next: Event): void;
1361
+ event_key_press(event: KeyboardEvent): void;
1362
+ tab_index(): number;
1363
+ error(): string;
1364
+ hint_safe(): string;
1365
+ sub_visible(): ($mol_view_content | $mol_speck)[];
1366
+ }
1367
+ }
1368
+
1369
+ declare namespace $ {
1370
+ }
1371
+
1372
+ declare namespace $ {
1373
+ class $mol_button_typed extends $mol_button {
1374
+ minimal_height(): number;
1375
+ minimal_width(): number;
1376
+ }
1377
+ }
1378
+
1379
+ declare namespace $ {
1380
+ }
1381
+
1382
+ declare namespace $ {
1383
+ class $mol_button_minor extends $mol_button_typed {
1384
+ }
1385
+ }
1386
+
1387
+ declare namespace $ {
1388
+ }
1389
+
1390
+ declare var $node: any;
1391
+
1392
+ declare namespace $ {
1393
+ type $mol_blob = Blob;
1394
+ let $mol_blob: {
1395
+ new (blobParts?: readonly BlobPart[], options?: BlobPropertyBag): Blob;
1396
+ prototype: Blob;
1397
+ };
1398
+ }
1399
+
1400
+ declare namespace $ {
1401
+ class $mol_svg extends $mol_view {
1402
+ dom_name(): string;
1403
+ dom_name_space(): string;
1404
+ font_size(): number;
1405
+ font_family(): string;
1406
+ style_size(): Record<string, any>;
1407
+ }
1408
+ }
1409
+
1410
+ declare namespace $ {
1411
+ class $mol_after_timeout extends $mol_object2 {
1412
+ delay: number;
1413
+ task: () => void;
1414
+ id: any;
1415
+ constructor(delay: number, task: () => void);
1416
+ destructor(): void;
1417
+ }
1418
+ }
1419
+
1420
+ declare namespace $ {
1421
+ class $mol_state_time extends $mol_object {
1422
+ static task(precision: number, reset?: null): $mol_after_timeout | $mol_after_frame;
1423
+ static now(precision: number): number;
1424
+ }
1425
+ }
1426
+
1427
+ declare namespace $.$$ {
1428
+ class $mol_svg extends $.$mol_svg {
1429
+ computed_style(): Record<string, any>;
1430
+ font_size(): number;
1431
+ font_family(): any;
1432
+ }
1433
+ }
1434
+
1435
+ declare namespace $ {
1436
+ class $mol_svg_root extends $mol_svg {
1437
+ dom_name(): string;
1438
+ attr(): Record<string, any>;
1439
+ view_box(): string;
1440
+ aspect(): string;
1441
+ }
1442
+ }
1443
+
1444
+ declare namespace $ {
1445
+ }
1446
+
1447
+ declare namespace $ {
1448
+ class $mol_svg_path extends $mol_svg {
1449
+ dom_name(): string;
1450
+ attr(): Record<string, any>;
1451
+ geometry(): string;
1452
+ }
1453
+ }
1454
+
1455
+ declare namespace $ {
1456
+ class $mol_icon extends $mol_svg_root {
1457
+ view_box(): string;
1458
+ minimal_width(): number;
1459
+ minimal_height(): number;
1460
+ sub(): readonly any[];
1461
+ path(): string;
1462
+ Path(): $mol_svg_path;
1463
+ }
1464
+ }
1465
+
1466
+ declare namespace $ {
1467
+ }
1468
+
1469
+ declare namespace $ {
1470
+ class $mol_icon_clipboard extends $mol_icon {
1471
+ path(): string;
1472
+ }
1473
+ }
1474
+
1475
+ declare namespace $ {
1476
+ class $mol_icon_clipboard_outline extends $mol_icon {
1477
+ path(): string;
1478
+ }
1479
+ }
1480
+
1481
+ declare namespace $ {
1482
+ class $mol_button_copy extends $mol_button_minor {
1483
+ blobs(): readonly Blob[];
1484
+ data(): Record<string, any>;
1485
+ sub(): readonly any[];
1486
+ text(): string;
1487
+ text_blob(next?: any): Blob;
1488
+ html(): string;
1489
+ html_blob(next?: any): Blob;
1490
+ Icon(): $mol_icon_clipboard_outline;
1491
+ title(): string;
1492
+ }
1493
+ }
1494
+
1495
+ declare namespace $ {
1496
+ function $mol_html_encode(text: string): string;
1497
+ }
1498
+
1499
+ declare namespace $ {
1500
+ 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]; };
1501
+ }
1502
+
1503
+ declare namespace $.$$ {
1504
+ class $mol_button_copy extends $.$mol_button_copy {
1505
+ data(): {
1506
+ [k: string]: Blob;
1507
+ };
1508
+ html(): string;
1509
+ attachments(): ClipboardItem[];
1510
+ click(event?: Event): void;
1511
+ }
1512
+ }
1513
+
1514
+ declare namespace $ {
1515
+ class $mol_state_local<Value> extends $mol_object {
1516
+ static 'native()': Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;
1517
+ static native(): Storage | {
1518
+ getItem(key: string): any;
1519
+ setItem(key: string, value: string): void;
1520
+ removeItem(key: string): void;
1521
+ };
1522
+ static changes(next?: StorageEvent): StorageEvent | undefined;
1523
+ static value<Value>(key: string, next?: Value | null): Value | null;
1524
+ prefix(): string;
1525
+ value(key: string, next?: Value): Value | null;
1526
+ }
1527
+ }
1528
+
1529
+ declare namespace $ {
1530
+ }
1531
+
1532
+ declare namespace $ {
1533
+ type $mol_charset_encoding = 'utf8' | 'utf-16le' | 'utf-16be' | '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';
1534
+ }
1535
+
1536
+ declare namespace $ {
1537
+ function $mol_charset_decode(buffer: BufferSource, encoding?: $mol_charset_encoding): string;
1538
+ }
1539
+
1540
+ declare namespace $ {
1541
+ function $mol_charset_encode(value: string): Uint8Array;
1542
+ }
1543
+
1544
+ declare namespace $ {
1545
+ type $mol_file_type = 'file' | 'dir' | 'link';
1546
+ interface $mol_file_stat {
1547
+ type: $mol_file_type;
1548
+ size: number;
1549
+ atime: Date;
1550
+ mtime: Date;
1551
+ ctime: Date;
1552
+ }
1553
+ class $mol_file_not_found extends Error {
1554
+ }
1555
+ abstract class $mol_file extends $mol_object {
1556
+ static absolute(path: string): $mol_file;
1557
+ static relative(path: string): $mol_file;
1558
+ static base: string;
1559
+ path(): string;
1560
+ parent(): $mol_file;
1561
+ abstract stat(next?: $mol_file_stat | null, virt?: 'virt'): $mol_file_stat | null;
1562
+ reset(): void;
1563
+ version(): string;
1564
+ abstract ensure(): void;
1565
+ watcher(): {
1566
+ destructor(): void;
1567
+ };
1568
+ exists(next?: boolean): boolean;
1569
+ type(): "" | $mol_file_type;
1570
+ name(): string;
1571
+ ext(): string;
1572
+ abstract buffer(next?: Uint8Array): Uint8Array;
1573
+ text(next?: string, virt?: 'virt'): string;
1574
+ abstract sub(): $mol_file[];
1575
+ abstract resolve(path: string): $mol_file;
1576
+ abstract relate(base?: $mol_file): string;
1577
+ abstract append(next: Uint8Array | string): void;
1578
+ find(include?: RegExp, exclude?: RegExp): $mol_file[];
1579
+ size(): number;
1580
+ }
1581
+ }
1582
+
1583
+ declare namespace $ {
1584
+ let $mol_action: typeof $mol_wire_method;
1585
+ }
1586
+
1587
+ declare namespace $ {
1588
+ function $mol_dom_parse(text: string, type?: DOMParserSupportedType): Document;
1589
+ }
1590
+
1591
+ declare namespace $ {
1592
+ class $mol_fetch_response extends $mol_object2 {
1593
+ readonly native: Response;
1594
+ constructor(native: Response);
1595
+ status(): "success" | "unknown" | "inform" | "redirect" | "wrong" | "failed";
1596
+ code(): number;
1597
+ message(): string;
1598
+ headers(): Headers;
1599
+ mime(): string | null;
1600
+ stream(): ReadableStream<Uint8Array> | null;
1601
+ text(): string;
1602
+ json(): unknown;
1603
+ buffer(): ArrayBuffer;
1604
+ xml(): Document;
1605
+ xhtml(): Document;
1606
+ html(): Document;
1607
+ }
1608
+ class $mol_fetch extends $mol_object2 {
1609
+ static request(input: RequestInfo, init?: RequestInit): Promise<Response> & {
1610
+ destructor: () => void;
1611
+ };
1612
+ static response(input: RequestInfo, init?: RequestInit): $mol_fetch_response;
1613
+ static success(input: RequestInfo, init?: RequestInit): $mol_fetch_response;
1614
+ static stream(input: RequestInfo, init?: RequestInit): ReadableStream<Uint8Array> | null;
1615
+ static text(input: RequestInfo, init?: RequestInit): string;
1616
+ static json(input: RequestInfo, init?: RequestInit): unknown;
1617
+ static buffer(input: RequestInfo, init?: RequestInit): ArrayBuffer;
1618
+ static xml(input: RequestInfo, init?: RequestInit): Document;
1619
+ static xhtml(input: RequestInfo, init?: RequestInit): Document;
1620
+ static html(input: RequestInfo, init?: RequestInit): Document;
1621
+ }
1622
+ }
1623
+
1624
+ declare namespace $ {
1625
+ class $mol_file_web extends $mol_file {
1626
+ static absolute(path: string): $mol_file_web;
1627
+ static relative(path: string): $mol_file_web;
1628
+ static base: string;
1629
+ buffer(next?: Uint8Array): Uint8Array;
1630
+ stat(next?: $mol_file_stat, virt?: 'virt'): $mol_file_stat;
1631
+ resolve(path: string): $mol_file_web;
1632
+ ensure(): void;
1633
+ sub(): $mol_file[];
1634
+ relate(base?: $mol_file): string;
1635
+ append(next: Uint8Array | string): void;
1636
+ }
1637
+ }
1638
+
1639
+ declare namespace $ {
1640
+ function $mol_huggingface_run(this: $, space: string, method: string | number, ...data: readonly any[]): readonly any[];
1641
+ function $mol_huggingface_rest(space: string, method: string, ...data: readonly any[]): readonly any[];
1642
+ function $mol_huggingface_ws(space: string, fn_index: number, ...data: readonly any[]): Promise<readonly any[]> & {
1643
+ destructor: () => void;
1644
+ };
1645
+ }
1646
+
1647
+ declare namespace $ {
1648
+ function $hyoo_lingua_translate(this: $, lang: string, text: string): string;
1649
+ }
1650
+
1651
+ declare namespace $ {
1652
+ interface $mol_locale_dict {
1653
+ [key: string]: string;
1654
+ }
1655
+ class $mol_locale extends $mol_object {
1656
+ static lang_default(): string;
1657
+ static lang(next?: string): string;
1658
+ static source(lang: string): any;
1659
+ static texts(lang: string, next?: $mol_locale_dict): $mol_locale_dict;
1660
+ static text(key: string): string;
1661
+ static warn(key: string): null;
1662
+ }
1663
+ }
1664
+
1665
+ declare namespace $ {
1666
+ class $mol_text_code extends $mol_stack {
1667
+ attr(): Record<string, any>;
1668
+ text(): string;
1669
+ text_lines(): readonly string[];
1670
+ find_pos(id: any): any;
1671
+ uri_base(): string;
1672
+ sub(): readonly any[];
1673
+ sidebar_showed(): boolean;
1674
+ render_visible_only(): boolean;
1675
+ row_numb(id: any): number;
1676
+ row_text(id: any): string;
1677
+ syntax(): any;
1678
+ uri_resolve(id: any): string;
1679
+ highlight(): string;
1680
+ Row(id: any): $$.$mol_text_code_row;
1681
+ rows(): readonly any[];
1682
+ Rows(): $$.$mol_list;
1683
+ text_export(): string;
1684
+ Copy(): $$.$mol_button_copy;
1685
+ }
1686
+ }
1687
+
1688
+ declare namespace $.$$ {
1689
+ class $mol_text_code extends $.$mol_text_code {
1690
+ render_visible_only(): boolean;
1691
+ text_lines(): readonly string[];
1692
+ rows(): $mol_text_code_row[];
1693
+ row_text(index: number): string;
1694
+ row_numb(index: number): number;
1695
+ find_pos(offset: number): {
1696
+ token: $mol_text_code_token;
1697
+ offset: number;
1698
+ } | null;
1699
+ sub(): ($mol_list | $mol_button_copy)[];
1700
+ syntax(): $mol_syntax2<{
1701
+ 'code-indent': RegExp;
1702
+ 'code-docs': RegExp;
1703
+ 'code-comment-block': RegExp;
1704
+ 'code-link': RegExp;
1705
+ 'code-comment-inline': RegExp;
1706
+ 'code-string': RegExp;
1707
+ 'code-number': RegExp;
1708
+ 'code-call': RegExp;
1709
+ 'code-sexpr': RegExp;
1710
+ 'code-field': RegExp;
1711
+ 'code-keyword': RegExp;
1712
+ 'code-global': RegExp;
1713
+ 'code-word': RegExp;
1714
+ 'code-decorator': RegExp;
1715
+ 'code-tag': RegExp;
1716
+ 'code-punctuation': RegExp;
1717
+ }>;
1718
+ uri_base(): string;
1719
+ uri_resolve(uri: string): string;
1720
+ text_export(): string;
1721
+ }
1722
+ }
1723
+
1724
+ declare namespace $.$$ {
1725
+ }
1726
+
1727
+ declare namespace $ {
1728
+ class $mol_check extends $mol_button_minor {
1729
+ attr(): Record<string, any>;
1730
+ sub(): readonly $mol_view_content[];
1731
+ checked(next?: any): boolean;
1732
+ aria_checked(): string;
1733
+ aria_role(): string;
1734
+ Icon(): any;
1735
+ title(): string;
1736
+ Title(): $mol_view;
1737
+ label(): readonly any[];
1738
+ }
1739
+ }
1740
+
1741
+ declare namespace $ {
1742
+ }
1743
+
1744
+ declare namespace $.$$ {
1745
+ class $mol_check extends $.$mol_check {
1746
+ click(next?: Event): void;
1747
+ sub(): readonly $mol_view_content[];
1748
+ label(): readonly any[];
1749
+ aria_checked(): string;
1750
+ }
1751
+ }
1752
+
1753
+ declare namespace $ {
1754
+ class $mol_icon_chevron extends $mol_icon {
1755
+ path(): string;
1756
+ }
1757
+ }
1758
+
1759
+ declare namespace $ {
1760
+ class $mol_check_expand extends $mol_check {
1761
+ Icon(): $mol_icon_chevron;
1762
+ level(): number;
1763
+ style(): Record<string, any>;
1764
+ checked(next?: any): boolean;
1765
+ enabled(): boolean;
1766
+ level_style(): string;
1767
+ expanded(next?: any): boolean;
1768
+ expandable(): boolean;
1769
+ }
1770
+ }
1771
+
1772
+ declare namespace $.$$ {
1773
+ class $mol_check_expand extends $.$mol_check_expand {
1774
+ level_style(): string;
1775
+ expandable(): boolean;
1776
+ }
1777
+ }
1778
+
1779
+ declare namespace $ {
1780
+ }
1781
+
1782
+ declare namespace $ {
1783
+ class $mol_dump_list extends $mol_view {
1784
+ values(): readonly any[];
1785
+ sub(): readonly any[];
1786
+ dump_value(id: any): any;
1787
+ dump_expanded(id: any, next?: any): boolean;
1788
+ prototypes(): boolean;
1789
+ preview_show(): boolean;
1790
+ Dump(id: any): $$.$mol_dump_value;
1791
+ }
1792
+ }
1793
+
1794
+ declare namespace $.$$ {
1795
+ class $mol_dump_list extends $.$mol_dump_list {
1796
+ sub(): $mol_dump_value[];
1797
+ dump_value(index: number): any;
1798
+ expand_all(event?: Event, blacklist?: Set<unknown>): void;
1799
+ }
1800
+ }
1801
+
1802
+ declare namespace $ {
1803
+ }
1804
+
1805
+ declare namespace $ {
1806
+ class $mol_expander extends $mol_list {
1807
+ rows(): readonly any[];
1808
+ expanded(next?: any): boolean;
1809
+ expandable(): boolean;
1810
+ label(): readonly any[];
1811
+ Trigger(): $$.$mol_check_expand;
1812
+ Tools(): any;
1813
+ Label(): $mol_view;
1814
+ content(): readonly any[];
1815
+ Content(): $$.$mol_list;
1816
+ }
1817
+ }
1818
+
1819
+ declare namespace $.$$ {
1820
+ class $mol_expander extends $.$mol_expander {
1821
+ rows(): $mol_view[];
1822
+ expandable(): boolean;
1823
+ }
1824
+ }
1825
+
1826
+ declare namespace $ {
1827
+ }
1828
+
1829
+ declare namespace $ {
1830
+ class $mol_dump_value extends $mol_view {
1831
+ value(): any;
1832
+ preview_show(): boolean;
1833
+ sub(): readonly any[];
1834
+ simple(): string;
1835
+ Simple(): $$.$mol_text_code;
1836
+ expanded(next?: any): boolean;
1837
+ expandable(): boolean;
1838
+ expand_all(next?: any): any;
1839
+ expand_title(): string;
1840
+ Expand_title(): $$.$mol_text_code;
1841
+ Expand_head(): $$.$mol_check_expand;
1842
+ preview_dom(): any;
1843
+ preview(): any;
1844
+ Preview_dom(): $mol_view;
1845
+ Preview(): $mol_view;
1846
+ row_values(id: any): readonly any[];
1847
+ prototypes(): boolean;
1848
+ Row(id: any): $$.$mol_dump_list;
1849
+ expand_content(): readonly any[];
1850
+ Expand(): $$.$mol_expander;
1851
+ }
1852
+ }
1853
+
1854
+ declare namespace $ {
1855
+ function $mol_try<Result>(handler2: () => Result): Result | Error;
1856
+ }
1857
+
1858
+ declare namespace $.$$ {
1859
+ class $mol_dump_value extends $.$mol_dump_value {
1860
+ sub(): $mol_text_code[] | $mol_expander[];
1861
+ simple(): string;
1862
+ expand_title(): any;
1863
+ rows_values(): any[][];
1864
+ preview_dom(): Element | null;
1865
+ expand_content(): ($mol_view | $mol_dump_list)[];
1866
+ expandable(): boolean;
1867
+ row_values(index: number): any[];
1868
+ expand_all(event?: Event, blacklist?: Set<unknown>): void;
1869
+ }
1870
+ }
1871
+
1872
+ declare namespace $ {
1873
+ }
1874
+
16
1875
  export = $;