declare let _$_: { new (): {}; } & typeof globalThis; declare class $ extends _$_ { } declare namespace $ { export type $ = typeof $$; export class $$ extends $ { static $: $; } namespace $$ { type $$ = $; } export {}; } declare namespace $ { var $mol_dom_context: typeof globalThis; } declare namespace $ { function $node_internal_check(name: string): boolean; } declare namespace $ { function $mol_promise_like(val: any): val is Promise; } declare namespace $ { function $mol_fail(error: any): never; } declare namespace $ { function $mol_fail_hidden(error: any): never; } declare namespace $ { function $mol_fail_catch(error: unknown): boolean; } declare namespace $ { function $mol_try(handler: () => Result): Result | Error; } declare namespace $ { function $mol_fail_log(error: unknown): boolean; } declare namespace $ { function $node_autoinstall(this: typeof $, name: string): void; } interface $node { [key: string]: any; } declare var $node: $node; declare namespace $ { function $mol_func_name(this: $, func: Function): string; function $mol_func_name_from(target: Target, source: Function): Target; } declare namespace $ { class $mol_error_mix extends AggregateError { readonly cause: Cause; name: string; constructor(message: string, cause?: Cause, ...errors: readonly Error[]); static [Symbol.toPrimitive](): string; static toString(): string; static make(...params: ConstructorParameters): $mol_error_mix<{}>; } } declare namespace $ { const $mol_ambient_ref: unique symbol; /** @deprecated use $ instead */ type $mol_ambient_context = $; function $mol_ambient(this: $ | void, overrides: Partial<$>): $; } declare namespace $ { /** * Proxy that delegates all to lazy returned target. * * $mol_delegate( Array.prototype , ()=> fetch_array() ) */ function $mol_delegate(proto: Value, target: () => Value): Value; } declare namespace $ { const $mol_owning_map: WeakMap; function $mol_owning_allow(having: Having): having is Having & { destructor(): void; }; function $mol_owning_get(having: Having, Owner?: { new (): Owner; }): Owner | null; function $mol_owning_check(owner: Owner, having: Having): having is Having & { destructor(): void; }; function $mol_owning_catch(owner: Owner, having: Having): boolean; } declare namespace $ { type $mol_type_writable = { -readonly [P in keyof T]: T[P]; }; } declare namespace $ { const $mol_key_handle: unique symbol; const $mol_key_store: WeakMap; } declare namespace $ { class $mol_object2 { static $: $; [Symbol.toStringTag]: string; [$mol_ambient_ref]: $; get $(): $; set $(next: $); static create(this: new (init?: (instance: any) => void) => Instance, init?: (instance: $mol_type_writable) => void): Instance; static [Symbol.toPrimitive](): any; static toString(): any; static toJSON(): any; static [$mol_key_handle](): any; destructor(): void; static destructor(): void; [Symbol.dispose](): void; toString(): string; } } declare namespace $ { namespace $$ { } const $mol_object_field: unique symbol; class $mol_object extends $mol_object2 { static make(this: This, config: Partial>): InstanceType; } } declare namespace $ { function $mol_env(): Record; } declare namespace $ { } declare namespace $ { /** Generates unique identifier. */ function $mol_guid(length?: number, exists?: (id: string) => boolean): string; } declare namespace $ { /** Special status statuses. */ enum $mol_wire_cursor { /** Update required. */ stale = -1, /** Some of (transitive) pub update required. */ doubt = -2, /** Actual state but may be dropped. */ fresh = -3, /** State will never be changed. */ final = -4 } } declare namespace $ { /** * Collects subscribers in compact array. 28B */ class $mol_wire_pub extends Object { constructor(id?: string); [Symbol.toStringTag]: string; data: unknown[]; static get [Symbol.species](): ArrayConstructor; /** * Index of first subscriber. */ protected sub_from: number; /** * All current subscribers. */ get sub_list(): readonly $mol_wire_sub[]; /** * Has any subscribers or not. */ get sub_empty(): boolean; /** * Subscribe subscriber to this publisher events and return position of subscriber that required to unsubscribe. */ sub_on(sub: $mol_wire_pub, pub_pos: number): number; /** * Unsubscribe subscriber from this publisher events by subscriber position provided by `on(pub)`. */ sub_off(sub_pos: number): void; /** * Called when last sub was unsubscribed. **/ reap(): void; /** * Autowire this publisher with current subscriber. **/ promote(): void; /** * Enforce actualization. Should not throw errors. */ fresh(): void; /** * Allow to put data to caches in the subtree. */ complete(): void; get incompleted(): boolean; /** * Notify subscribers about self changes. */ emit(quant?: $mol_wire_cursor): void; /** * Moves peer from one position to another. Doesn't clear data at old position! */ peer_move(from_pos: number, to_pos: number): void; /** * Updates self position in the peer. */ peer_repos(peer_pos: number, self_pos: number): void; } } declare namespace $ { /** Generic subscriber interface */ interface $mol_wire_sub extends $mol_wire_pub { temp: boolean; pub_list: $mol_wire_pub[]; /** * Begin auto wire to publishers. * Returns previous auto subscriber that must me transfer to the `end`. */ track_on(): $mol_wire_sub | null; /** * Returns next auto wired publisher. It can be easely repormoted. * Or promotes next publisher to auto wire its togeter. * Must be used only between `track_on` and `track_off`. */ track_next(pub?: $mol_wire_pub): $mol_wire_pub | null; pub_off(pub_pos: number): void; /** * Unsubscribes from unpromoted publishers. */ track_cut(sub: $mol_wire_pub | null): void; /** * Ends auto wire to publishers. */ track_off(sub: $mol_wire_pub | null): void; /** * Receive notification about publisher changes. */ absorb(quant: $mol_wire_cursor, pos: number): void; /** * Unsubscribes from all publishers. */ destructor(): void; } } declare namespace $ { let $mol_wire_auto_sub: $mol_wire_sub | null; /** * When fulfilled, all publishers are promoted to this subscriber on access to its. */ function $mol_wire_auto(next?: $mol_wire_sub | null): $mol_wire_sub | null; /** * Affection queue. Used to prevent accidental stack overflow on emit. */ const $mol_wire_affected: ($mol_wire_sub | number)[]; } declare namespace $ { function $mol_dev_format_register(config: { header: (val: any, config: any) => any; hasBody: (val: any, config: any) => false; } | { header: (val: any, config: any) => any; hasBody: (val: any, config: any) => boolean; body: (val: any, config: any) => any; }): void; const $mol_dev_format_head: unique symbol; const $mol_dev_format_body: unique symbol; function $mol_dev_format_native(obj: any): any[]; function $mol_dev_format_auto(obj: any): any[]; function $mol_dev_format_element(element: string, style: object, ...content: any[]): any[]; let $mol_dev_format_span: (style: object, ...content: any[]) => any[]; let $mol_dev_format_div: (style: object, ...content: any[]) => any[]; let $mol_dev_format_ol: (style: object, ...content: any[]) => any[]; let $mol_dev_format_li: (style: object, ...content: any[]) => any[]; let $mol_dev_format_table: (style: object, ...content: any[]) => any[]; let $mol_dev_format_tr: (style: object, ...content: any[]) => any[]; let $mol_dev_format_td: (style: object, ...content: any[]) => any[]; let $mol_dev_format_accent: (...args: any[]) => any[]; let $mol_dev_format_strong: (...args: any[]) => any[]; let $mol_dev_format_string: (...args: any[]) => any[]; let $mol_dev_format_shade: (...args: any[]) => any[]; let $mol_dev_format_indent: (...args: any[]) => any[]; } declare namespace $ { /** * Publisher that can auto collect other publishers. 32B * * P1 P2 P3 P4 S1 S2 S3 * ^ ^ * pubs_from subs_from */ class $mol_wire_pub_sub extends $mol_wire_pub implements $mol_wire_sub { protected pub_from: number; protected cursor: $mol_wire_cursor; get temp(): boolean; get pub_list(): $mol_wire_pub[]; track_on(): $mol_wire_sub | null; promote(): void; track_next(pub?: $mol_wire_pub): $mol_wire_pub | null; track_off(sub: $mol_wire_sub | null): void; pub_off(sub_pos: number): void; destructor(): void; track_cut(): void; complete(): void; complete_pubs(): void; absorb(quant?: $mol_wire_cursor, pos?: number): void; [$mol_dev_format_head](): any[]; /** * Is subscribed to any publisher or not. */ get pub_empty(): boolean; } } declare namespace $ { class $mol_after_tick extends $mol_object2 { task: () => void; static promise: Promise | null; cancelled: boolean; constructor(task: () => void); destructor(): void; } } declare namespace $ { /** * Suspendable task with support both sync/async api. * * A1 A2 A3 A4 P1 P2 P3 P4 S1 S2 S3 * ^ ^ ^ * args_from pubs_from subs_from **/ abstract class $mol_wire_fiber extends $mol_wire_pub_sub { readonly task: (this: Host, ...args: Args) => Result; readonly host?: Host | undefined; static warm: boolean; static planning: Set<$mol_wire_fiber>; static reaping: Set<$mol_wire_fiber>; static plan_task: $mol_after_tick | null; static plan(): void; static sync(): void; cache: Result | Error | Promise; get args(): Args; result(): Result | undefined; get incompleted(): boolean; field(): string; constructor(id: string, task: (this: Host, ...args: Args) => Result, host?: Host | undefined, args?: Args); plan(): this; reap(): void; toString(): string; toJSON(): string; [$mol_dev_format_head](): any[]; [$mol_dev_format_body](): null; get $(): any; emit(quant?: $mol_wire_cursor): void; fresh(): this | undefined; refresh(): void; abstract put(next: Result | Error | Promise): Result | Error | Promise; /** * Synchronous execution. Throws Promise when waits async task (SuspenseAPI provider). * Should be called inside SuspenseAPI consumer (ie fiber). */ sync(): Awaited; /** * Asynchronous execution. * It's SuspenseAPI consumer. So SuspenseAPI providers can be called inside. */ async_raw(): Promise; async(): Promise & { destructor(): void; }; step(): Promise; destructor(): void; } } declare namespace $ { let $mol_compare_deep_cache: WeakMap>; /** * Deeply compares two values. Returns true if equal. * Define `Symbol.toPrimitive` to customize. */ function $mol_compare_deep(left: Value, right: Value): boolean; } declare namespace $ { /** Logger event data */ type $mol_log3_event = { [key in string]: unknown; } & { /** Time of event creation */ time?: string; /** Place of event creation */ place: unknown; /** Short description of event */ message: string; } & Fields; /** Logger function */ type $mol_log3_logger = (this: $, event: $mol_log3_event) => Res; /** Log begin of some task */ let $mol_log3_come: $mol_log3_logger<{}>; /** Log end of some task */ let $mol_log3_done: $mol_log3_logger<{}>; /** Log error */ let $mol_log3_fail: $mol_log3_logger<{}>; /** Log warning message */ let $mol_log3_warn: $mol_log3_logger<{ hint: string; }>; /** Log some generic event */ let $mol_log3_rise: $mol_log3_logger<{}>; /** Log begin of log group, returns func to close group */ let $mol_log3_area: $mol_log3_logger<{}, () => void>; /** Log begin of collapsed group only when some logged inside, returns func to close group */ function $mol_log3_area_lazy(this: $, event: $mol_log3_event<{}>): () => void; let $mol_log3_stack: (() => void)[]; } declare namespace $ { /** Position in any resource. */ class $mol_span extends $mol_object2 { readonly uri: string; readonly source: string; readonly row: number; readonly col: number; readonly length: number; constructor(uri: string, source: string, row: number, col: number, length: number); /** Span for begin of unknown resource */ static unknown: $mol_span; /** Makes new span for begin of resource. */ static begin(uri: string, source?: string): $mol_span; /** Makes new span for end of resource. */ static end(uri: string, source: string): $mol_span; /** Makes new span for entire resource. */ static entire(uri: string, source: string): $mol_span; toString(): string; toJSON(): { uri: string; row: number; col: number; length: number; }; /** Makes new error for this span. */ error(message: string, Class?: ErrorConstructor): Error; /** Makes new span for same uri. */ span(row: number, col: number, length: number): $mol_span; /** Makes new span after end of this. */ after(length?: number): $mol_span; /** Makes new span between begin and end. */ slice(begin: number, end?: number): $mol_span; } } declare namespace $ { /** Serializes tree to string in tree format. */ function $mol_tree2_to_string(this: $, tree: $mol_tree2): string; } declare namespace $ { function $mol_maybe(value: Value | null | undefined): Value[]; } declare namespace $ { /** Path by types in tree. */ type $mol_tree2_path = Array; /** Hask tool for processing node. */ type $mol_tree2_hack = (input: $mol_tree2, belt: $mol_tree2_belt, context: Context) => readonly $mol_tree2[]; /** Collection of hask tools for processing tree. */ type $mol_tree2_belt = Record>; /** * Abstract Syntax Tree with human readable serialization. * Avoid direct instantiation. Use static factories instead. * @see https://github.com/nin-jin/tree.d */ class $mol_tree2 extends Object { /** Type of structural node, `value` should be empty */ readonly type: string; /** Content of data node, `type` should be empty */ readonly value: string; /** Child nodes */ readonly kids: readonly $mol_tree2[]; /** Position in most far source resource */ readonly span: $mol_span; constructor( /** Type of structural node, `value` should be empty */ type: string, /** Content of data node, `type` should be empty */ value: string, /** Child nodes */ kids: readonly $mol_tree2[], /** Position in most far source resource */ span: $mol_span); /** Makes collection node. */ static list(kids: readonly $mol_tree2[], span?: $mol_span): $mol_tree2; /** Makes new derived collection node. */ list(kids: readonly $mol_tree2[]): $mol_tree2; /** Makes data node for any string. */ static data(value: string, kids?: readonly $mol_tree2[], span?: $mol_span): $mol_tree2; /** Makes new derived data node. */ data(value: string, kids?: readonly $mol_tree2[]): $mol_tree2; /** Makes struct node. */ static struct(type: string, kids?: readonly $mol_tree2[], span?: $mol_span): $mol_tree2; /** Makes new derived structural node. */ struct(type: string, kids?: readonly $mol_tree2[]): $mol_tree2; /** Makes new derived node with different kids id defined. */ clone(kids: readonly $mol_tree2[], span?: $mol_span): $mol_tree2; /** Returns multiline text content. */ text(): string; /** Parses tree format. */ /** @deprecated Use $mol_tree2_from_string */ static fromString(str: string, uri?: string): $mol_tree2; /** Serializes to tree format. */ toString(): string; /** Makes new tree with node overrided by path. */ insert(value: $mol_tree2 | null, ...path: $mol_tree2_path): $mol_tree2; /** Makes new tree with node overrided by path. */ update(value: readonly $mol_tree2[], ...path: $mol_tree2_path): readonly $mol_tree2[]; /** Query nodes by path. */ select(...path: $mol_tree2_path): $mol_tree2; /** Filter kids by path or value. */ filter(path: string[], value?: string): $mol_tree2; hack_self(belt: $mol_tree2_belt, context?: Context): readonly $mol_tree2[]; /** Transform tree through context with transformers */ hack(belt: $mol_tree2_belt, context?: Context): $mol_tree2[]; /** Makes Error with node coordinates. */ error(message: string, Class?: ErrorConstructor): Error; } class $mol_tree2_empty extends $mol_tree2 { constructor(); } } declare namespace $ { /** Syntax error with cordinates and source line snippet. */ class $mol_error_syntax extends SyntaxError { reason: string; line: string; span: $mol_span; constructor(reason: string, line: string, span: $mol_span); } } declare namespace $ { /** Parses tree format from string. */ function $mol_tree2_from_string(this: $, str: string, uri?: string): $mol_tree2; } declare namespace $ { function $mol_array_chunks(array: readonly Item[], rule: number | ((item: Item, index: number) => boolean)): Item[][]; } declare namespace $ { function $mol_tree2_from_json(json: any, span?: $mol_span): $mol_tree2; } declare namespace $ { /** Module for working with terminal. Text coloring when output in terminal */ class $mol_term_color { static reset: (str: string) => string; static bold: (str: string) => string; static italic: (str: string) => string; static underline: (str: string) => string; static inverse: (str: string) => string; static hidden: (str: string) => string; static strike: (str: string) => string; static gray: (str: string) => string; static red: (str: string) => string; static green: (str: string) => string; static yellow: (str: string) => string; static blue: (str: string) => string; static magenta: (str: string) => string; static cyan: (str: string) => string; static Gray: (str: string) => string; static Red: (str: string) => string; static Green: (str: string) => string; static Yellow: (str: string) => string; static Blue: (str: string) => string; static Magenta: (str: string) => string; static Cyan: (str: string) => string; static ansi(open: number, close: number): (str: string) => string; } } declare namespace $ { function $mol_log3_node_make(level: keyof Console, output: 'stdout' | 'stderr', type: string, color: (str: string) => string): (this: $, event: $mol_log3_event<{}>) => () => void; } declare namespace $ { /** One-shot fiber */ class $mol_wire_task extends $mol_wire_fiber { static getter(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task; get temp(): boolean; complete(): void; put(next: Result | Error | Promise): Error | Result | Promise; destructor(): void; } } declare namespace $ { /** * Convert asynchronous (promise-based) API to synchronous by wrapping function and method calls in a fiber. * @see https://mol.hyoo.ru/#!section=docs/=1fcpsq_1wh0h2 */ export function $mol_wire_sync(obj: Host): ObjectOrFunctionResultAwaited; type FunctionResultAwaited = Some extends (...args: infer Args) => infer Res ? (...args: Args) => Awaited : Some; type ConstructorResultAwaited = Some extends new (...args: infer Args) => infer Res ? new (...args: Args) => Res : {}; type MethodsResultAwaited = { [K in keyof Host]: FunctionResultAwaited; }; type ObjectOrFunctionResultAwaited = (Some extends (...args: any) => unknown ? FunctionResultAwaited : {}) & (Some extends Object ? MethodsResultAwaited & ConstructorResultAwaited : Some); export {}; } declare namespace $ { type $mol_run_error_context = { pid?: number; stdout: Buffer | string; stderr: Buffer | string; }; class $mol_run_error extends $mol_error_mix<{ timeout_kill?: boolean; pid?: number; signal?: NodeJS.Signals | null; status?: number | null; command: string; dir: string; }> { } const $mol_run_spawn: (...args: Parameters<(typeof $node)["child_process"]["spawn"]>) => import("node:child_process").ChildProcess; const $mol_run_spawn_sync: (...args: Parameters<(typeof $node)["child_process"]["spawnSync"]>) => import("node:child_process").SpawnSyncReturns; type $mol_run_options = { command: readonly string[] | string; dir: string; timeout?: number; env?: Record; }; class $mol_run extends $mol_object { static async_enabled(): boolean; static spawn(options: $mol_run_options): import("node:child_process").SpawnSyncReturns | $mol_run_error_context; static spawn_async({ dir, sync, timeout, command, env }: $mol_run_options & { sync?: boolean; }): import("node:child_process").SpawnSyncReturns | (Promise<$mol_run_error_context> & { destructor: () => void; }); static error_message(res?: $mol_run_error_context): string; } } declare namespace $ { } declare namespace $ { var $mol_dom: typeof globalThis; } declare namespace $ { function $mol_style_attach(id: string, text: string): HTMLStyleElement | null; } declare namespace $ { class $mol_promise extends Promise { done: (value: Result | PromiseLike) => void; fail: (reason?: any) => void; constructor(executor?: (done: (value: Result | PromiseLike) => void, fail: (reason?: any) => void) => void); } } declare namespace $ { class $mol_promise_blocker extends $mol_promise { static [Symbol.toStringTag]: string; } } declare namespace $ { class $mol_decor { readonly value: Value; constructor(value: Value); prefix(): string; valueOf(): Value; postfix(): string; toString(): string; } } declare namespace $ { 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'; type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn'; type $mol_style_unit_time = 's' | 'ms'; type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time; type $mol_style_unit_str = `${number}${Quanity}`; /** * CSS Units * @see https://mol.hyoo.ru/#!section=docs/=xwq9q5_f966fg */ class $mol_style_unit extends $mol_decor { readonly literal: Literal; constructor(value: number, literal: Literal); postfix(): Literal; static per(value: number): `${number}%`; static px(value: number): `${number}px`; static mm(value: number): `${number}mm`; static cm(value: number): `${number}cm`; static Q(value: number): `${number}Q`; static in(value: number): `${number}in`; static pc(value: number): `${number}pc`; static pt(value: number): `${number}pt`; static cap(value: number): `${number}cap`; static ch(value: number): `${number}ch`; static em(value: number): `${number}em`; static rem(value: number): `${number}rem`; static ex(value: number): `${number}ex`; static ic(value: number): `${number}ic`; static lh(value: number): `${number}lh`; static rlh(value: number): `${number}rlh`; static vh(value: number): `${number}vh`; static vw(value: number): `${number}vw`; static vi(value: number): `${number}vi`; static vb(value: number): `${number}vb`; static vmin(value: number): `${number}vmin`; static vmax(value: number): `${number}vmax`; static deg(value: number): `${number}deg`; static rad(value: number): `${number}rad`; static grad(value: number): `${number}grad`; static turn(value: number): `${number}turn`; static s(value: number): `${number}s`; static ms(value: number): `${number}ms`; } } declare namespace $ { type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'scale' | 'cubic-bezier' | 'linear' | 'steps' | $mol_style_func_image | $mol_style_func_filter; type $mol_style_func_image = 'url' | 'linear-gradient' | 'radial-gradient' | 'conic-gradient'; type $mol_style_func_filter = 'blur' | 'brightness' | 'contrast' | 'drop-shadow' | 'grayscale' | 'hue-rotate' | 'invert' | 'opacity' | 'sepia' | 'saturate'; /** * CSS Functions * @see https://mol.hyoo.ru/#!section=docs/=xwq9q5_f966fg */ class $mol_style_func extends $mol_decor { readonly name: Name; constructor(name: Name, value: Value); prefix(): string; postfix(): string; static linear_gradient(value: Value): $mol_style_func<"linear-gradient", Value>; static radial_gradient(value: Value): $mol_style_func<"radial-gradient", Value>; static calc(value: Value): $mol_style_func<"calc", Value>; static vary(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>; static url(href: Href): $mol_style_func<"url", string>; static hsla(hue: number | $mol_style_func<'var'>, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | `${number}%` | $mol_style_func<"var", unknown>)[]>; static clamp(min: $mol_style_unit_str, mid: $mol_style_unit_str, max: $mol_style_unit_str): $mol_style_func<"clamp", `${number}${any}`[]>; static rgba(red: number | $mol_style_func<'var'>, green: number | $mol_style_func<'var'>, blue: number | $mol_style_func<'var'>, alpha: number | $mol_style_func<'var'>): $mol_style_func<"rgba", (number | $mol_style_func<"var", unknown>)[]>; static scale(zoom: number): $mol_style_func<"scale", number[]>; static linear(...breakpoints: Array]>): $mol_style_func<"linear", string[]>; static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>; 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")[]>; static blur(value?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"blur", string>; static brightness(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"brightness", string | number>; static contrast(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"contrast", string | number>; static drop_shadow(color: $mol_style_properties_color, x_offset: $mol_style_unit_str<$mol_style_unit_length>, y_offset: $mol_style_unit_str<$mol_style_unit_length>, blur_radius?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"drop-shadow", readonly [$mol_style_properties_color, `${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax`, `${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax`, `${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax`] | readonly [$mol_style_properties_color, `${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax`, `${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax`]>; static grayscale(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"grayscale", string | number>; static hue_rotate(value?: 0 | $mol_style_unit_str<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0>; static invert(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"invert", string | number>; static opacity(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"opacity", string | number>; static sepia(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"sepia", string | number>; static saturate(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"saturate", string | number>; } } declare namespace $ { /** Replaces properties of `Base` record by properties from `Over`. */ type $mol_type_override = Omit & Over; } declare namespace $ { export type $mol_style_properties = Partial<$mol_type_override>; type Common = 'inherit' | 'initial' | 'unset' | 'revert' | 'revert-layer' | 'none' | $mol_style_func<'var'>; type Portion = `${number}${'%'}` | number; type Space = '' | ' '; type Var = `var(--${string})`; type Calc = `calc(${string})`; type Angle = number | `${number}${'deg' | 'turn'}` | Var | Calc | 'none'; 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}` | `hsl(${Space}${Angle} ${Portion} ${Portion}${'' | `${Space}/${Space}${Portion}`}${Space})`; type Length = 0 | `${number}${$mol_style_unit_length}` | $mol_style_func<'calc' | 'var' | 'clamp'>; type Size = 'auto' | 'max-content' | 'min-content' | 'fit-content' | Length | Common; type Sides = { top?: Value; right?: Value; bottom?: Value; left?: Value; blockStart?: Value; blockEnd?: Value; inlineStart?: Value; inlineEnd?: Value; }; type Directions = Value | readonly [Value, Value] | Sides; type Edges = { topLeft?: Value; topRight?: Value; bottomLeft?: Value; bottomRight?: Value; }; type Borders = Value | readonly [Value, Value] | (Sides & Edges); type Single_animation_composition = 'replace' | 'add' | 'accumulate'; type Single_animation_direction = 'normal' | 'reverse' | 'alternate' | 'alternate-reverse'; type Single_animation_fill_mode = 'none' | 'forwards' | 'backwards' | 'both'; type Single_animation_iteration_count = 'infinite' | number; type Single_animation_play_state = 'running' | 'paused'; type Easing_function = Linear_easing_function | Cubic_bezier_easing_function | Step_easing_function; type Linear_easing_function = 'linear' | $mol_style_func<'linear'>; type Cubic_bezier_easing_function = 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | $mol_style_func<'cubic-bezier'>; type Step_easing_function = 'step-start' | 'step-end' | $mol_style_func<'steps'>; type Compat_auto = 'searchfield' | 'textarea' | 'push-button' | 'slider-horizontal' | 'checkbox' | 'radio' | 'menulist' | 'listbox' | 'meter' | 'progress-bar' | 'button'; type Compat_special = 'textfield' | 'menulist-button'; type Mix_blend_mode = Blend_mode | 'plus-darker' | 'plus-lighter'; type Blend_mode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity'; type Box = 'border-box' | 'padding-box' | 'content-box'; type Baseline_position = 'baseline' | `${'first' | 'last'} baseline`; type Content_distribution = 'space-between' | 'space-around' | 'space-evenly' | 'stretch'; type Self_position = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end'; type Content_position = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end'; type Span_align = 'none' | 'start' | 'end' | 'center' | $mol_style_func<'var'>; type Snap_axis = 'x' | 'y' | 'block' | 'inline' | 'both' | $mol_style_func<'var'>; type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto' | 'overlay' | Common; type Overflow_position = 'unsafe' | 'safe'; type ContainRule = 'size' | 'layout' | 'style' | 'paint' | $mol_style_func<'var'>; type Repeat = 'repeat-x' | 'repeat-y' | 'repeat' | 'space' | 'round' | 'no-repeat' | $mol_style_func<'var'>; type BG_size = Length | 'auto' | 'contain' | 'cover'; interface Overrides { /** * Sets the accent color for user-interface controls generated by some elements. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */ accentColor?: $mol_style_properties_color | Common; align?: { /** * Distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content */ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common; /** * Sets the align-self value on all direct children as a group. * In Flexbox, it controls the alignment of items on the Cross Axis. * In Grid Layout, it controls the alignment of items on the Block Axis within their grid area. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items */ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common; /** * Overrides a grid or flex item's align-items value. * In Grid, it aligns the item inside the grid area. * In Flexbox, it aligns the item on the cross axis. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-self */ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common; }; justify?: { /** * Distribution of space between and around content items along the main-axis of a flex container, and the inline axis of a grid container. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content */ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common; /** * Sets the justify-self value on all direct children as a group. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items */ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common; /** * Way a box is justified inside its alignment container along the appropriate axis. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self */ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common; }; /** * resets all of an element's properties except unicode-bidi, direction, and CSS Custom Properties. * It can set properties to their initial or inherited values, or to the values specified in another cascade layer or stylesheet origin. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/all */ all?: Common; animation?: { /** * Specifies the composite operation to use when multiple animations affect the same property simultaneously. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-composition */ composition?: Single_animation_composition | Single_animation_composition[][] | Common; /** * Specifies the amount of time to wait from applying the animation to an element before beginning to perform the animation. * The animation can start later, immediately from its beginning, or immediately and partway through the animation. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-delay */ delay?: $mol_style_unit_str<$mol_style_unit_time> | $mol_style_unit_str<$mol_style_unit_time>[][] | Common; /** * Sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction */ direction?: Single_animation_direction | Single_animation_direction[][] | Common; /** * Sets the length of time that an animation takes to complete one cycle. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-duration */ duration?: $mol_style_unit_str<$mol_style_unit_time> | $mol_style_unit_str<$mol_style_unit_time>[][] | Common; /** * Sets how a CSS animation applies styles to its target before and after its execution. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-fill-mode */ fillMode?: Single_animation_fill_mode | Single_animation_fill_mode[][] | Common; /** * Sets the number of times an animation sequence should be played before stopping. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count */ iterationCount?: Single_animation_iteration_count | Single_animation_iteration_count[][] | Common; /** * Specifies the names of one or more keyframes at-rules that describe the animation to apply to an element. * Multiple keyframe at-rules are specified as a comma-separated list of names. * If the specified name does not match any keyframe at-rule, no properties are animated. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-name */ name?: 'none' | string & {} | ('none' | string & {})[][] | Common; /** * Sets whether an animation is running or paused. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-play-state */ playState?: Single_animation_play_state | Single_animation_play_state[][] | Common; /** * Sets how an animation progresses through the duration of each cycle. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timing-function */ timingFunction?: Easing_function | Easing_function[][] | Common; }; /** * Used to control native appearance of UI controls, that are based on operating system's theme. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/appearance */ appearance?: 'none' | 'auto' | Compat_auto | Compat_special | Common; /** * Sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio */ aspectRatio?: 'auto' | number | `${number} / ${number}`; /** * lets you apply graphical effects such as blurring or color shifting to the area behind an element. * Because it applies to everything behind the element, to see the effect you must make the element * or its background at least partially transparent. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter */ 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; /** * Sets whether the back face of an element is visible when turned towards the user. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/backface-visibility */ backfaceVisibility: 'visible' | 'hidden' | Common; /** * How the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a grid container. * @see https://developer.mozilla.org/ru/docs/Web/CSS/justify-content */ justifyContent?: 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'normal' | 'stretch' | 'center' | Common; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/gap */ gap?: Length | readonly [Length, Length] | Common; /** * All background style properties. * @see https://developer.mozilla.org/ru/docs/Web/CSS/background * */ background?: 'none' | { /** * Sets whether a background image's position is fixed within the viewport, or scrolls with its containing block. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-attachment */ attachment?: 'scroll' | 'fixed' | 'local' | ('scroll' | 'fixed' | 'local')[][] | Common; /** * Sets how an element's background images should blend with each other and with the element's background color. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-blend-mode */ blendMode?: Mix_blend_mode | Mix_blend_mode[][] | Common; /** * Sets whether an element's background extends underneath its border box, padding box, or content box. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip */ clip?: Box | Box[][] | Common; /** * Background color. * @see https://developer.mozilla.org/ru/docs/Web/CSS/background-color */ color?: $mol_style_properties_color | Common; /** * Background images. * @see https://developer.mozilla.org/ru/docs/Web/CSS/background-image */ image?: readonly (readonly [$mol_style_func<$mol_style_func_image> | string & {}])[] | 'none' | Common; /** * How background images are repeated. * @see https://developer.mozilla.org/ru/docs/Web/CSS/background-repeat */ repeat?: Repeat | [Repeat, Repeat] | Common; /** @see https://developer.mozilla.org/ru/docs/Web/CSS/background-position */ position?: 'left' | 'right' | 'top' | 'bottom' | 'center' | Common; /** @see https://developer.mozilla.org/ru/docs/Web/CSS/background-size */ size?: (BG_size | [BG_size] | [BG_size, BG_size])[]; }; /** @see https://developer.mozilla.org/ru/docs/Web/CSS/box-shadow */ box?: { /** * Shadow effects around an element's frame. * @see https://developer.mozilla.org/ru/docs/Web/CSS/box-shadow */ shadow?: readonly ([ ...[inset: 'inset'] | [], x: Length, y: Length, blur: Length, spread: Length, color: $mol_style_properties_color ] | { inset?: boolean; x: Length; y: Length; blur: Length; spread: Length; color: $mol_style_properties_color; })[] | 'none' | Common; }; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/rx */ rx?: Length | Common; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/ry */ ry?: Length | Common; /** @see https://developer.mozilla.org/ru/docs/Web/CSS/font */ font?: { /** * Whether a font should be styled. * @see https://developer.mozilla.org/ru/docs/Web/CSS/font-style */ style?: 'normal' | 'italic' | Common; /** * Weight (or boldness) of the font. * @see https://developer.mozilla.org/ru/docs/Web/CSS/font-weight */ weight?: 'normal' | 'bold' | 'lighter' | 'bolder' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | Common; /** * Size of the font. Changing the font size also updates the sizes of the font size-relative length units. * @see https://developer.mozilla.org/ru/docs/Web/CSS/font-size */ size?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'smaller' | 'larger' | Length | Common; /** * Prioritized list of one or more font family names and/or generic family names. * @see https://developer.mozilla.org/ru/docs/Web/CSS/font-family */ family?: string & {} | 'serif' | 'sans-serif' | 'monospace' | 'cursive' | 'fantasy' | 'system-ui' | 'ui-serif' | 'ui-sans-serif' | 'ui-monospace' | 'ui-rounded' | 'emoji' | 'math' | 'fangsong' | Common; }; /** * Foreground color value of text and text decorations, and sets the `currentcolor` value. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/color */ color?: $mol_style_properties_color | Common; /** * Whether an element is treated as a block or inline element and the layout used for its children, such as flow layout, grid or flex. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/display */ 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; /** * What to do when an element's content is too big to fit in its block formatting context. It is a shorthand for `overflowX` and `overflowY`. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/overflow */ overflow?: Overflow | { /** * What shows when content overflows a block-level element's left and right edges. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-x */ x?: Overflow | Common; /** * What shows when content overflows a block-level element's top and bottom edges. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-y */ y?: Overflow | Common; /** * A way to opt out of the browser's scroll anchoring behavior, which adjusts scroll position to minimize content shifts. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-anchor */ anchor?: 'auto' | 'none' | Common; }; /** * Indicate that an element and its contents are, as much as possible, independent of the rest of the document tree. This allows the browser to recalculate layout, style, paint, size, or any combination of them for a limited area of the DOM and not the entire page, leading to obvious performance benefits. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/contain */ contain?: 'none' | 'strict' | 'content' | ContainRule | readonly ContainRule[] | Common; /** * How white space inside an element is handled. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/white-space */ whiteSpace?: 'normal' | 'nowrap' | 'break-spaces' | 'pre' | 'pre-wrap' | 'pre-line' | Common; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-overflow-scrolling */ webkitOverflowScrolling?: 'auto' | 'touch' | Common; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color */ scrollbar?: { /** * Color of thumb and track of scrollbars. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color */ color?: readonly [$mol_style_properties_color, $mol_style_properties_color] | 'auto' | Common; /** * Maximum thickness of scrollbars. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-width */ width?: 'auto' | 'thin' | 'none' | Common; }; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior */ scroll?: { /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-align */ snap?: { /** * How strictly snap points are enforced on the scroll container in case there is one. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-type */ type: 'none' | Snap_axis | readonly [Snap_axis, 'mandatory' | 'proximity'] | Common; /** * Whether the scroll container is allowed to "pass over" possible snap positions. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-stop */ stop: 'normal' | 'always' | Common; /** * The box’s snap position as an alignment of its snap area (as the alignment subject) within its snap container’s snapport (as the alignment container). The two values specify the snapping alignment in the block axis and inline axis, respectively. If only one value is specified, the second value defaults to the same value. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-align */ align: Span_align | readonly [Span_align, Span_align] | Common; }; /** * Offsets for the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding */ padding?: Directions; }; /** * Element's width. By default, it sets the width of the content area, but if `boxSizing` is set to `border-box`, it sets the width of the border area. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/width */ width?: Size; /** * Minimum width of an element. It prevents the used value of the `width` property from becoming smaller than the value specified for `minWidth`. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-width */ minWidth?: Size; /** * Maximum width of an element. It prevents the used value of the `width` property from becoming larger than the value specified for `maxWidth`. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-width */ maxWidth?: Size; /** * Height of an element. By default, the property defines the height of the content area. If box-sizing is set to border-box, however, it instead determines the height of the border area. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/height */ height?: Size; /** * Minimum height of an element. It prevents the used value of the `height` property from becoming smaller than the value specified for `minHeight`. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-height */ minHeight?: Size; /** * Maximum height of an element. It prevents the used value of the `height` property from becoming larger than the value specified for `maxHeight`. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-height */ maxHeight?: Size; /** * Margin area on all four sides of an element. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/margin */ margin?: Directions; /** * Padding area on all four sides of an element. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/padding */ padding?: Directions; /** * How an element is positioned in a document. The `top`, `right`, `bottom`, and `left` properties determine the final location of positioned elements. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/position */ position?: 'static' | 'relative' | 'absolute' | 'sticky' | 'fixed' | Common; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/top */ top?: Length | 'auto' | Common; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/right */ right?: Length | 'auto' | Common; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/bottom */ bottom?: Length | 'auto' | Common; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/left */ left?: Length | 'auto' | Common; /** @see https://developer.mozilla.org/en-US/docs/Web/CSS/border */ border?: Borders<{ /** * Rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */ radius?: Length | [Length, Length]; /** * Line style for all four sides of an element's border. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */ style?: 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | Common; /** * Color of element's border. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-color */ color?: $mol_style_properties_color | Common; /** * Width of element's border. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-width */ width?: Length | Common; }>; /** * How a flex item will grow or shrink to fit the space available in its flex container. It is a shorthand for `flexGrow`, `flexShrink`, and `flexBasis`. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex */ flex?: 'none' | 'auto' | { /** * Growing weight of the flex item. Negative values are considered invalid. Defaults to 1 when omitted. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow */ grow?: number | Common; /** * Shrinking weight of the flex item. Negative values are considered invalid. Defaults to 1 when omitted. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink */ shrink?: number | Common; /** * Preferred size of the flex item. A value of 0 must have a unit to avoid being interpreted as a flexibility. Defaults to 0 when omitted. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis */ basis?: Size | Common; /** * How flex items are placed in the flex container defining the main axis and the direction (normal or reversed). * @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis */ direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | Common; /** * Whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction that lines are stacked. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap */ wrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | Common; }; container?: { name?: string; type?: Container_type | readonly Container_type[]; }; /** * Z-order of a positioned element and its descendants or flex items. Overlapping elements with a larger z-index cover those with a smaller one. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/z-index */ zIndex: number | Common; /** * Degree to which content behind an element is hidden, and is the opposite of transparency. * @see https://developer.mozilla.org/en-US/docs/Web/CSS/opacity */ opacity: number | Common; } type Container_type = 'normal' | 'size' | 'inline-size' | 'scroll-state' | 'anchored'; export {}; } declare namespace $ { /** Create record of CSS variables. */ function $mol_style_prop(prefix: string, keys: Keys): Record>; } declare namespace $ { /** * Theme css variables * @see https://mol.hyoo.ru/#!section=demos/demo=mol_textarea_demo */ const $mol_theme: Record<"image" | "line" | "text" | "focus" | "hue" | "back" | "hover" | "card" | "current" | "special" | "control" | "shade" | "field" | "spirit" | "hue_spread", $mol_style_func<"var", unknown>>; } declare namespace $ { } declare namespace $ { /** * Gap in CSS * @see https://page.hyoo.ru/#!=msdb74_bm7nsq */ let $mol_gap: Record<"text" | "blur" | "page" | "block" | "space" | "round" | "emoji", $mol_style_func<"var", unknown>>; } declare namespace $ { } declare namespace $ { function $mol_dom_render_children(el: Element | DocumentFragment, childNodes: NodeList | Array): void; } declare namespace $ { /** * Recursive `Partial`. * * let props : $mol_type_partial_deep< HTMLElement > = { style : { display : 'block' } } */ type $mol_type_partial_deep = Val extends object ? Val extends Function ? Val : { [field in keyof Val]?: $mol_type_partial_deep | undefined; } : Val; } declare namespace $ { let $mol_jsx_prefix: string; let $mol_jsx_crumbs: string; let $mol_jsx_booked: null | Set; let $mol_jsx_document: $mol_jsx.JSX.ElementClass['ownerDocument']; const $mol_jsx_frag = ""; /** * JSX adapter that makes DOM tree. * Generates global unique ids for every DOM-element by components tree with ids. * Ensures all local ids are unique. * Can reuse an existing nodes by GUIDs when used inside [`mol_jsx_attach`](https://github.com/hyoo-ru/mam_mol/tree/master/jsx/attach). */ function $mol_jsx>(Elem: string | ((props: Props, ...children: Children) => Element), props: Props, ...childNodes: Children): Element | DocumentFragment; namespace $mol_jsx.JSX { interface Element extends HTMLElement { class?: string; } interface ElementClass { attributes: {}; ownerDocument: Pick; childNodes: Array; valueOf(): Element; } type OrString = { [key in keyof Dict]: Dict[key] | string; }; /** Props for html elements */ type IntrinsicElements = { [key in keyof ElementTagNameMap]?: $.$mol_type_partial_deep>; }; /** Additional undeclared props */ interface IntrinsicAttributes { id?: string; xmlns?: string; } interface ElementAttributesProperty { attributes: {}; } interface ElementChildrenAttribute { } } } declare namespace $ { class $mol_window extends $mol_object { static size(): { width: number; height: number; }; } } declare namespace $ { /** Returns string key for any value. */ function $mol_key(value: Value): string; } declare namespace $ { class $mol_after_timeout extends $mol_object2 { delay: number; task: () => void; id: any; constructor(delay: number, task: () => void); destructor(): void; } } declare namespace $ { class $mol_after_frame extends $mol_after_timeout { task: () => void; constructor(task: () => void); } } declare namespace $ { /** * Decorates method to fiber to ensure it is executed only once inside other fiber. */ function $mol_wire_method(host: Host, field: PropertyKey, descr?: TypedPropertyDescriptor<(...args: Args) => any>): { value: (this: Host, ...args: Args) => any; enumerable?: boolean; configurable?: boolean; writable?: boolean; get?: (() => (...args: Args) => any) | undefined; set?: ((value: (...args: Args) => any) => void) | undefined; }; } declare namespace $ { /** * Returns `Tuple` without first element. * * $mol_type_tail<[ 1 , 2 , 3 ]> // [ 2, 3 ] */ type $mol_type_tail = ((...tail: Tuple) => any) extends ((head: any, ...tail: infer Tail) => any) ? Tail : never; } declare namespace $ { /** * Returns last element of `Tuple`. * * $mol_type_tail<[ 1 , 2 , 3 ]> // 3 */ type $mol_type_foot = Tuple['length'] extends 0 ? never : Tuple[$mol_type_tail['length']]; } declare namespace $ { /** Long-living fiber. */ class $mol_wire_atom extends $mol_wire_fiber { static solo(host: Host, task: (this: Host, ...args: Args) => Result): $mol_wire_atom; static plex(host: Host, task: (this: Host, ...args: Args) => Result, key: Args[0]): $mol_wire_atom; static watching: Set<$mol_wire_atom>; static watcher: $mol_after_frame | null; static watch(): void; watch(): void; /** * Update atom value through another temp fiber. */ resync(args: Args): Error | Result | Promise; once(): Awaited; channel(): ((next?: $mol_type_foot) => Awaited) & { atom: $mol_wire_atom; }; destructor(): void; put(next: Result | Error | Promise): Error | Result | Promise; } } declare namespace $ { /** Decorates solo object channel to [mol_wire_atom](../atom/atom.ts). */ export function $mol_wire_solo(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): TypedPropertyDescriptor<(...args: First_optional) => any>; type First_optional = Args extends [] ? [] : [Args[0] | undefined, ...$mol_type_tail]; export {}; } declare namespace $ { /** Reactive memoizing multiplexed property decorator. */ function $mol_wire_plex(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): { value: (this: typeof host, ...args: Args) => any; enumerable?: boolean; configurable?: boolean; writable?: boolean; get?: (() => (...args: Args) => any) | undefined; set?: ((value: (...args: Args) => any) => void) | undefined; }; } declare namespace $ { /** * Reactive memoizing solo property decorator from [mol_wire](../wire/README.md) * @example * '@' $mol_mem * name(next?: string) { * return next ?? 'default' * } * @see https://mol.hyoo.ru/#!section=docs/=qxmh6t_sinbmb */ let $mol_mem: typeof $mol_wire_solo; /** * Reactive memoizing multiplexed property decorator [mol_wire](../wire/README.md) * @example * '@' $mol_mem_key * name(id: number, next?: string) { * return next ?? 'default' * } * @see https://mol.hyoo.ru/#!section=docs/=qxmh6t_sinbmb */ let $mol_mem_key: typeof $mol_wire_plex; } declare namespace $ { function $mol_guard_defined(value: T): value is NonNullable; } declare namespace $ { class $mol_view_selection extends $mol_object { static focused(next?: Element[], notify?: 'notify'): Element[]; } } declare namespace $ { class $mol_wrapper extends $mol_object2 { static wrap: (task: (...ags: any[]) => any) => (...ags: any[]) => any; static run(task: () => Result): Result; static func(func: (this: Host, ...args: Args) => Result): (this: Host, ...args: Args) => Result; static get class(): any>(Class: Class) => Class; static get method(): (obj: object, name: PropertyKey, descr?: TypedPropertyDescriptor) => TypedPropertyDescriptor; static get field(): (obj: Host, name: Field, descr?: TypedPropertyDescriptor) => TypedPropertyDescriptor; } } declare namespace $ { class $mol_memo extends $mol_wrapper { static wrap(task: (this: This, next?: Value) => Value): (this: This, next?: Value) => Value | undefined; } } declare namespace $ { function $mol_dom_qname(name: string): string; } declare namespace $ { /** Run code without state changes */ function $mol_wire_probe(task: () => Value, def?: Value): Value | undefined; } declare namespace $ { /** * Real-time refresh current atom. * Don't use if possible. May reduce performance. */ function $mol_wire_watch(): void; } declare namespace $ { /** * Returns closure that returns constant value. * @example * const rnd = $mol_const( Math.random() ) */ function $mol_const(value: Value): { (): Value; '()': Value; }; } declare namespace $ { /** * Disable reaping of current subscriber */ function $mol_wire_solid(): void; } declare namespace $ { function $mol_dom_render_attributes(el: Element, attrs: { [key: string]: string | number | boolean | null; }): void; } declare namespace $ { function $mol_dom_render_events(el: Element, events: { [key: string]: (event: Event) => any; }, passive?: boolean): void; } declare namespace $ { function $mol_error_message(this: $, error: unknown): string; } declare namespace $ { function $mol_dom_render_styles(el: Element, styles: { [key: string]: string | number; }): void; } declare namespace $ { function $mol_dom_render_fields(el: Element, fields: { [key: string]: any; }): void; } declare namespace $ { /** Convert a pseudo-synchronous (Suspense API) API to an explicit asynchronous one (for integrating with external systems). */ export function $mol_wire_async(obj: Host): ObjectOrFunctionResultPromisify; type FunctionResultPromisify = Some extends (...args: infer Args) => infer Res ? Res extends PromiseLike ? Some : (...args: Args) => Promise : Some; type MethodsResultPromisify = { [K in keyof Host]: FunctionResultPromisify; }; type ObjectOrFunctionResultPromisify = (Some extends (...args: any) => unknown ? FunctionResultPromisify : {}) & (Some extends Object ? MethodsResultPromisify : Some); export {}; } declare namespace $ { /** * Extracts keys from `Input` which values extends `Upper` and extendable by `Lower`. * * type MathConstants = $mol_type_keys_extract< Math , number > // "E" | "PI" ... */ type $mol_type_keys_extract = { [Field in keyof Input]: unknown extends Input[Field] ? never : Input[Field] extends never ? never : Input[Field] extends Upper ? [ Lower ] extends [Input[Field]] ? Field : never : never; }[keyof Input]; } declare namespace $ { /** * Picks keys from `Input` which values extends `Upper`. * * type MathConstants = $mol_type_pick< Math , number > // { E , PI , ... } */ type $mol_type_pick = Pick>; } declare namespace $ { } /** @jsx $mol_jsx */ declare namespace $ { type $mol_view_content = $mol_view | Node | string | number | boolean | null; function $mol_view_visible_width(): number; function $mol_view_visible_height(): number; function $mol_view_state_key(suffix: string): string; /** * The base class for all visual components. It provides the infrastructure for reactive lazy rendering, handling exceptions. * @see https://mol.hyoo.ru/#!section=docs/=vv2nig_s5zr0f */ class $mol_view extends $mol_object { static Root(this: This, id: number): InstanceType; static roots(): $mol_view[]; static auto(): void; title(): string; hint(): string; focused(next?: boolean): boolean; state_key(suffix?: string): string; dom_name(): string; dom_name_space(): string; sub(): readonly $mol_view_content[]; sub_visible(): readonly $mol_view_content[]; minimal_width(): number; maximal_width(): number; minimal_height(): number; static watchers: Set<$mol_view>; view_rect(): { width: number; height: number; left: number; right: number; top: number; bottom: number; } | null; dom_id(): string; dom_node_external(next?: Element): Element; dom_node(next?: Element): Element; dom_final(): Element | undefined; dom_tree(next?: Element): Element; dom_node_actual(): Element; auto(): any; render(): void; static view_classes(): (typeof $mol_view)[]; static _view_names?: Map; static view_names(suffix: string): string[]; view_names_owned(): string[]; view_names(): Set; theme(next?: string | null): string | null | undefined; attr_static(): { [key: string]: string | number | boolean | null; }; attr(): {}; style(): { [key: string]: string | number; }; field(): { [key: string]: any; }; event(): { [key: string]: (event: Event) => void; }; event_async(): { [x: string]: (event: Event) => Promise; }; plugins(): readonly $mol_view[]; [$mol_dev_format_head](): any[]; /** Deep search view by predicate. */ view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>; /** Renders path of views to DOM. */ force_render(path: Set<$mol_view>): void; /** Renders view to DOM and scroll to it. */ ensure_visible(view: $mol_view, align?: ScrollLogicalPosition): void; bring(): void; destructor(): void; } type $mol_view_all = $mol_type_pick<$, typeof $mol_view>; } declare namespace $ { /** Plugin is component without its own DOM element, but instead uses the owner DOM element */ class $mol_plugin extends $mol_view { dom_node_external(next?: Element): Element; render(): void; } } declare namespace $ { function $mol_view_component(View: typeof $mol_view): { new (): { view: $mol_view; root?: $mol_wire_sub | null; connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(name: string, prev: string, next: string): void; toString(): string; accessKey: string; readonly accessKeyLabel: string; autocapitalize: string; autocorrect: boolean; dir: string; draggable: boolean; hidden: boolean | "until-found"; inert: boolean; innerText: string; lang: string; readonly offsetHeight: number; readonly offsetLeft: number; readonly offsetParent: Element | null; readonly offsetTop: number; readonly offsetWidth: number; outerText: string; popover: string | null; spellcheck: boolean; title: string; translate: boolean; writingSuggestions: string; attachInternals(): ElementInternals; click(): void; hidePopover(): void; showPopover(options?: ShowPopoverOptions): void; togglePopover(options?: TogglePopoverOptions | boolean): boolean; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; readonly attributes: NamedNodeMap; get classList(): DOMTokenList; set classList(value: string); className: string; readonly clientHeight: number; readonly clientLeft: number; readonly clientTop: number; readonly clientWidth: number; readonly currentCSSZoom: number; readonly customElementRegistry: CustomElementRegistry | null; id: string; innerHTML: string; readonly localName: string; readonly namespaceURI: string | null; onfullscreenchange: ((this: Element, ev: Event) => any) | null; onfullscreenerror: ((this: Element, ev: Event) => any) | null; outerHTML: string; readonly ownerDocument: Document; get part(): DOMTokenList; set part(value: string); readonly prefix: string | null; readonly scrollHeight: number; scrollLeft: number; scrollTop: number; readonly scrollWidth: number; readonly shadowRoot: ShadowRoot | null; slot: string; readonly tagName: string; attachShadow(init: ShadowRootInit): ShadowRoot; checkVisibility(options?: CheckVisibilityOptions): boolean; closest(selector: K): HTMLElementTagNameMap[K] | null; closest(selector: K): SVGElementTagNameMap[K] | null; closest(selector: K): MathMLElementTagNameMap[K] | null; closest(selectors: string): E | null; computedStyleMap(): StylePropertyMapReadOnly; getAttribute(qualifiedName: string): string | null; getAttributeNS(namespace: string | null, localName: string): string | null; getAttributeNames(): string[]; getAttributeNode(qualifiedName: string): Attr | null; getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; getBoundingClientRect(): DOMRect; getClientRects(): DOMRectList; getElementsByClassName(classNames: string): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; getHTML(options?: GetHTMLOptions): string; hasAttribute(qualifiedName: string): boolean; hasAttributeNS(namespace: string | null, localName: string): boolean; hasAttributes(): boolean; hasPointerCapture(pointerId: number): boolean; insertAdjacentElement(where: InsertPosition, element: Element): Element | null; insertAdjacentHTML(position: InsertPosition, string: string): void; insertAdjacentText(where: InsertPosition, data: string): void; matches(selectors: K): this is HTMLElementTagNameMap[K]; matches(selectors: K): this is SVGElementTagNameMap[K]; matches(selectors: K): this is MathMLElementTagNameMap[K]; matches(selectors: string): boolean; releasePointerCapture(pointerId: number): void; removeAttribute(qualifiedName: string): void; removeAttributeNS(namespace: string | null, localName: string): void; removeAttributeNode(attr: Attr): Attr; requestFullscreen(options?: FullscreenOptions): Promise; requestPointerLock(options?: PointerLockOptions): Promise; scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; setAttribute(qualifiedName: string, value: string): void; setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; setAttributeNode(attr: Attr): Attr | null; setAttributeNodeNS(attr: Attr): Attr | null; setHTMLUnsafe(html: string): void; setPointerCapture(pointerId: number): void; toggleAttribute(qualifiedName: string, force?: boolean): boolean; webkitMatchesSelector(selectors: string): boolean; get textContent(): string; set textContent(value: string | null); readonly baseURI: string; readonly childNodes: NodeListOf; readonly firstChild: ChildNode | null; readonly isConnected: boolean; readonly lastChild: ChildNode | null; readonly nextSibling: ChildNode | null; readonly nodeName: string; readonly nodeType: number; nodeValue: string | null; readonly parentElement: HTMLElement | null; readonly parentNode: ParentNode | null; readonly previousSibling: ChildNode | null; appendChild(node: T): T; cloneNode(subtree?: boolean): Node; compareDocumentPosition(other: Node): number; contains(other: Node | null): boolean; getRootNode(options?: GetRootNodeOptions): Node; hasChildNodes(): boolean; insertBefore(node: T, child: Node | null): T; isDefaultNamespace(namespace: string | null): boolean; isEqualNode(otherNode: Node | null): boolean; isSameNode(otherNode: Node | null): boolean; lookupNamespaceURI(prefix: string | null): string | null; lookupPrefix(namespace: string | null): string | null; normalize(): void; removeChild(child: T): T; replaceChild(node: Node, child: T): T; readonly ELEMENT_NODE: 1; readonly ATTRIBUTE_NODE: 2; readonly TEXT_NODE: 3; readonly CDATA_SECTION_NODE: 4; readonly ENTITY_REFERENCE_NODE: 5; readonly ENTITY_NODE: 6; readonly PROCESSING_INSTRUCTION_NODE: 7; readonly COMMENT_NODE: 8; readonly DOCUMENT_NODE: 9; readonly DOCUMENT_TYPE_NODE: 10; readonly DOCUMENT_FRAGMENT_NODE: 11; readonly NOTATION_NODE: 12; readonly DOCUMENT_POSITION_DISCONNECTED: 1; readonly DOCUMENT_POSITION_PRECEDING: 2; readonly DOCUMENT_POSITION_FOLLOWING: 4; readonly DOCUMENT_POSITION_CONTAINS: 8; readonly DOCUMENT_POSITION_CONTAINED_BY: 16; readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32; dispatchEvent(event: Event): boolean; ariaActiveDescendantElement: Element | null; ariaAtomic: string | null; ariaAutoComplete: string | null; ariaBrailleLabel: string | null; ariaBrailleRoleDescription: string | null; ariaBusy: string | null; ariaChecked: string | null; ariaColCount: string | null; ariaColIndex: string | null; ariaColIndexText: string | null; ariaColSpan: string | null; ariaControlsElements: ReadonlyArray | null; ariaCurrent: string | null; ariaDescribedByElements: ReadonlyArray | null; ariaDescription: string | null; ariaDetailsElements: ReadonlyArray | null; ariaDisabled: string | null; ariaErrorMessageElements: ReadonlyArray | null; ariaExpanded: string | null; ariaFlowToElements: ReadonlyArray | null; ariaHasPopup: string | null; ariaHidden: string | null; ariaInvalid: string | null; ariaKeyShortcuts: string | null; ariaLabel: string | null; ariaLabelledByElements: ReadonlyArray | null; ariaLevel: string | null; ariaLive: string | null; ariaModal: string | null; ariaMultiLine: string | null; ariaMultiSelectable: string | null; ariaOrientation: string | null; ariaOwnsElements: ReadonlyArray | null; ariaPlaceholder: string | null; ariaPosInSet: string | null; ariaPressed: string | null; ariaReadOnly: string | null; ariaRelevant: string | null; ariaRequired: string | null; ariaRoleDescription: string | null; ariaRowCount: string | null; ariaRowIndex: string | null; ariaRowIndexText: string | null; ariaRowSpan: string | null; ariaSelected: string | null; ariaSetSize: string | null; ariaSort: string | null; ariaValueMax: string | null; ariaValueMin: string | null; ariaValueNow: string | null; ariaValueText: string | null; role: string | null; animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; getAnimations(options?: GetAnimationsOptions): Animation[]; after(...nodes: (Node | string)[]): void; before(...nodes: (Node | string)[]): void; remove(): void; replaceWith(...nodes: (Node | string)[]): void; readonly nextElementSibling: Element | null; readonly previousElementSibling: Element | null; readonly childElementCount: number; readonly children: HTMLCollection; readonly firstElementChild: Element | null; readonly lastElementChild: Element | null; append(...nodes: (Node | string)[]): void; moveBefore(node: Node, child: Node | null): void; prepend(...nodes: (Node | string)[]): void; querySelector(selectors: K): HTMLElementTagNameMap[K] | null; querySelector(selectors: K): SVGElementTagNameMap[K] | null; querySelector(selectors: K): MathMLElementTagNameMap[K] | null; querySelector(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null; querySelector(selectors: string): E | null; querySelectorAll(selectors: K): NodeListOf; querySelectorAll(selectors: K): NodeListOf; querySelectorAll(selectors: K): NodeListOf; querySelectorAll(selectors: K): NodeListOf; querySelectorAll(selectors: string): NodeListOf; replaceChildren(...nodes: (Node | string)[]): void; readonly assignedSlot: HTMLSlotElement | null; readonly attributeStyleMap: StylePropertyMap; get style(): CSSStyleDeclaration; set style(cssText: string); contentEditable: string; enterKeyHint: string; inputMode: string; readonly isContentEditable: boolean; onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null; onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; onerror: OnErrorEventHandler; onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; autofocus: boolean; readonly dataset: DOMStringMap; nonce: string; tabIndex: number; blur(): void; focus(options?: FocusOptions): void; }; tag: string; observedAttributes: Set; } | undefined; } declare namespace $ { } declare namespace $ { export class $mol_stack extends $mol_view { } } //# sourceMappingURL=stack.view.tree.d.ts.map declare namespace $ { export class $mol_paragraph extends $mol_view { line_height( ): number letter_width( ): number width_limit( ): number row_width( ): number sub( ): readonly(any)[] } } //# sourceMappingURL=paragraph.view.tree.d.ts.map declare namespace $.$$ { class $mol_paragraph extends $.$mol_paragraph { maximal_width(): number; width_limit(): number; minimal_width(): number; row_width(): number; minimal_height(): number; } } declare namespace $ { } declare namespace $ { /** * Return `unknown` when `A` and `B` are the same type. `never` otherwise. * * $mol_type_equals< unknown , any > & number // true * $mol_type_equals< never , never > & number // false */ type $mol_type_equals = (() => X extends A ? 1 : 2) extends (() => X extends B ? 1 : 2) ? true : false; } declare namespace $ { /** * Reqursive converts intersection of records to record of intersections * * // { a : { x : 1 , y : 2 } } * $mol_type_merge< { a : { x : 1 } }&{ a : { y : 2 } } > */ type $mol_type_merge = Intersection extends (...a: any[]) => any ? Intersection : Intersection extends new (...a: any[]) => any ? Intersection : Intersection extends object ? $mol_type_merge_object extends Intersection ? true extends $mol_type_equals<{ [Key in keyof Intersection]: Intersection[Key]; }, Intersection> ? Intersection : { [Key in keyof Intersection]: $mol_type_merge; } : Intersection : Intersection; /** * Flat converts intersection of records to record of intersections * * // { a: 1, b: 2 } * $mol_type_merge< { a: 1 } & { b: 2 } > */ type $mol_type_merge_object = { [Key in keyof Intersection]: Intersection[Key]; }; } declare namespace $ { /** * Converts union of types to intersection of same types * * $mol_type_intersect< number | string > // number & string */ type $mol_type_intersect = (Union extends any ? (_: Union) => void : never) extends ((_: infer Intersection) => void) ? Intersection : never; } declare namespace $ { 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]; 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'; 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'; 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'; } interface String { match(regexp: RE): ReturnType; matchAll(regexp: RE): ReturnType; } declare namespace $ { type Groups_to_params = { [P in keyof T]?: T[P] | boolean | undefined; }; export type $mol_regexp_source = number | string | RegExp | { [key in string]: $mol_regexp_source; } | readonly [$mol_regexp_source, ...$mol_regexp_source[]]; export type $mol_regexp_groups = Source extends number ? {} : Source extends string ? {} : Source extends $mol_regexp_source[] ? $mol_type_merge<$mol_type_intersect<{ [key in Extract]: $mol_regexp_groups; }[Extract]>> : Source extends RegExp ? Record extends NonNullable>['groups']> ? {} : NonNullable>['groups']> : Source extends { readonly [key in string]: $mol_regexp_source; } ? $mol_type_merge<$mol_type_intersect<{ [key in keyof Source]: $mol_type_merge<$mol_type_override<{ readonly [k in Extract]: string; }, { readonly [k in key]: Source[key] extends string ? Source[key] : string; }> & $mol_regexp_groups>; }[keyof Source]>> : never; /** Type safe reguar expression builder */ export class $mol_regexp> extends RegExp { readonly groups: (Extract)[]; /** Prefer to use $mol_regexp.from */ constructor(source: string, flags?: string, groups?: (Extract)[]); [Symbol.matchAll](str: string): RegExpStringIterator>; /** Parses input and returns found capture groups or null */ [Symbol.match](str: string): null | RegExpMatchArray; /** Splits string by regexp edges */ [Symbol.split](str: string): string[]; test(str: string): boolean; exec(str: string): RegExpExecArray & $mol_type_override | null; generate(params: Groups_to_params): string | null; get native(): RegExp; /** Makes regexp that greedy repeats this pattern with delimiter */ static separated(chunk: Chunk, sep: Sep): $mol_regexp<[$mol_regexp<[[Chunk], Sep] extends infer T ? T extends [[Chunk], Sep] ? T extends $mol_regexp_source[] ? $mol_type_merge<$mol_type_intersect<{ [key in Extract]: $mol_regexp_groups; }[Extract]>> : T extends RegExp ? Record extends NonNullable>["groups"]> ? {} : NonNullable>["groups"]> : T extends { readonly [x: string]: $mol_regexp_source; } ? $mol_type_merge<$mol_type_intersect<{ [key_1 in keyof T]: $mol_type_merge]: string; }, key_1> & { readonly [k_1 in key_1]: T[key_1] extends string ? T[key_1] : string; } & $mol_regexp_groups>; }[keyof T]>> : never : never : never>, Chunk] extends infer T_1 ? T_1 extends [$mol_regexp<[[Chunk], Sep] extends infer T_2 ? T_2 extends [[Chunk], Sep] ? T_2 extends $mol_regexp_source[] ? $mol_type_merge<$mol_type_intersect<{ [key_4 in Extract]: $mol_regexp_groups; }[Extract]>> : T_2 extends RegExp ? Record extends NonNullable>["groups"]> ? {} : NonNullable>["groups"]> : T_2 extends { readonly [x: string]: $mol_regexp_source; } ? $mol_type_merge<$mol_type_intersect<{ [key_5 in keyof T_2]: $mol_type_merge]: string; }, key_5> & { readonly [k_1 in key_5]: T_2[key_5] extends string ? T_2[key_5] : string; } & $mol_regexp_groups>; }[keyof T_2]>> : never : never : never>, Chunk] ? T_1 extends $mol_regexp_source[] ? $mol_type_merge<$mol_type_intersect<{ [key_2 in Extract]: $mol_regexp_groups; }[Extract]>> : T_1 extends RegExp ? Record extends NonNullable>["groups"]> ? {} : NonNullable>["groups"]> : T_1 extends { readonly [x: string]: $mol_regexp_source; } ? $mol_type_merge<$mol_type_intersect<{ [key_3 in keyof T_1]: $mol_type_merge]: string; }, key_3> & { readonly [k_1 in key_3]: T_1[key_3] extends string ? T_1[key_3] : string; } & $mol_regexp_groups>; }[keyof T_1]>> : never : never : never>; /** Makes regexp that non-greedy repeats this pattern from min to max count */ static repeat(source: Source, min?: number, max?: number): $mol_regexp<$mol_regexp_groups>; /** Makes regexp that greedy repeats this pattern from min to max count */ static repeat_greedy(source: Source, min?: number, max?: number): $mol_regexp<$mol_regexp_groups>; /** Makes regexp that match any of options */ static vary(sources: Sources, flags?: string): $mol_regexp<$mol_regexp_groups>; /** Makes regexp that allow absent of this pattern */ static optional(source: Source): $mol_regexp<$mol_regexp_groups>; /** Makes regexp that look ahead for pattern */ static force_after(source: $mol_regexp_source): $mol_regexp>; /** Makes regexp that look ahead for pattern */ static forbid_after(source: $mol_regexp_source): $mol_regexp>; /** Converts some js values to regexp */ static from(source: Source, { ignoreCase, multiline }?: Partial>): $mol_regexp<$mol_regexp_groups>; /** Makes regexp which includes only unicode category */ static unicode_only(...category: $mol_unicode_category): $mol_regexp>; /** Makes regexp which excludes unicode category */ static unicode_except(...category: $mol_unicode_category): $mol_regexp>; static char_range(from: number, to: number): $mol_regexp<{}>; static char_only(...allowed: readonly [$mol_regexp_source, ...$mol_regexp_source[]]): $mol_regexp<{}>; static char_except(...forbidden: readonly [$mol_regexp_source, ...$mol_regexp_source[]]): $mol_regexp<{}>; static decimal_only: $mol_regexp<{}>; static decimal_except: $mol_regexp<{}>; static latin_only: $mol_regexp<{}>; static latin_except: $mol_regexp<{}>; static space_only: $mol_regexp<{}>; static space_except: $mol_regexp<{}>; static word_break_only: $mol_regexp<{}>; static word_break_except: $mol_regexp<{}>; static tab: $mol_regexp<{}>; static slash_back: $mol_regexp<{}>; static nul: $mol_regexp<{}>; static char_any: $mol_regexp<{}>; static begin: $mol_regexp<{}>; static end: $mol_regexp<{}>; static or: $mol_regexp<{}>; static line_end: $mol_regexp<{ readonly win_end: string; readonly mac_end: string; }>; } export {}; } declare namespace $ { /** * Fails if `Actual` type is not subtype of `Expected`. */ type $mol_type_enforce = Actual; } declare namespace $ { type $mol_paragraph__sub_mol_dimmer_1 = $mol_type_enforce< readonly(any)[] , ReturnType< $mol_paragraph['sub'] > > type $mol_paragraph__sub_mol_dimmer_2 = $mol_type_enforce< readonly(any)[] , ReturnType< $mol_paragraph['sub'] > > export class $mol_dimmer extends $mol_paragraph { parts( ): readonly($mol_view_content)[] string( id: any): string haystack( ): string needle( ): string sub( ): ReturnType< $mol_dimmer['parts'] > Low( id: any): $mol_paragraph High( id: any): $mol_paragraph } } //# sourceMappingURL=dimmer.view.tree.d.ts.map declare namespace $.$$ { /** * Output text with dimmed mismatched substrings. * @see https://mol.hyoo.ru/#!section=demos/demo=mol_dimmer_demo */ class $mol_dimmer extends $.$mol_dimmer { parts(): any[]; strings(): string[]; string(index: number): string; view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>; } } declare namespace $ { } declare namespace $ { 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(${string})` | `:nth-child(${string})` | `:nth-last-child(${string})` | `:nth-of-type(${string})` | `:nth-last-of-type(${string})` | ':only-child' | ':only-of-type' | ':optional' | ':out-of-range' | ':placeholder-shown' | ':read-only' | ':read-write' | ':required' | ':right' | ':root' | ':scope' | ':target' | ':valid' | ':visited'; } declare namespace $ { 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'; } declare namespace $ { /** Returns error type, that don't match to normal value. */ type $mol_type_error = Message & { $mol_type_error: Info; }; } declare namespace $ { type Attrs> = { [name in keyof Attrs]?: { [val in keyof Config[Extract]]: $mol_style_guard][val]>; }; }; type Medias = { [query in keyof Config]: $mol_style_guard; }; type Keys = '>' | '@' | keyof $mol_style_properties | $mol_style_pseudo_element | $mol_style_pseudo_class | $mol_type_keys_extract $mol_view> | `$${string}`; export type $mol_style_guard = { [key in Keys]?: unknown; } & $mol_style_properties & { [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 : key extends '@' ? Attrs : key extends ('@media' | '@container') ? Medias : key extends '@starting-style' ? $mol_style_guard : key extends `[${string}]` ? { [val in keyof Config[key]]: $mol_style_guard; } : key extends `--${string}` ? any : key extends keyof $ ? $mol_style_guard>, Config[key]> : key extends keyof View ? View[key] extends (id?: any) => infer Sub ? Sub extends $mol_view ? $mol_style_guard : $mol_type_error<'Property returns non $mol_view', { Returns: Sub; }> : $mol_type_error<'Field is not a Property'> : key extends `$${string}` ? $mol_type_error<'Unknown View Class'> : $mol_type_error<'Unknown CSS Property'>; }; export {}; } declare namespace $ { function $mol_style_sheet>(Component: new () => Component, config0: Config): string; } declare namespace $ { /** * CSS in TS. * Statically typed CSS style sheets. Following samples show which CSS code are generated from TS code. * @see https://mol.hyoo.ru/#!section=docs/=xwq9q5_f966fg */ function $mol_style_define>(Component: new () => Component, config: Config): HTMLStyleElement | null; } declare namespace $ { export class $mol_text_code_token extends $mol_dimmer { type( ): string attr( ): ({ 'mol_text_code_token_type': ReturnType< $mol_text_code_token['type'] >, }) & ReturnType< $mol_dimmer['attr'] > } export class $mol_text_code_token_link extends $mol_text_code_token { uri( ): string dom_name( ): string type( ): string attr( ): ({ 'href': ReturnType< $mol_text_code_token_link['uri'] >, 'target': string, }) & ReturnType< $mol_text_code_token['attr'] > } } //# sourceMappingURL=token.view.tree.d.ts.map declare namespace $.$$ { } declare namespace $ { /** Creates lexer by dictionary of lexems. Lexem that started first wins. Then lexem that declared earlier wins. Use regexp capture to take parts of token. */ class $mol_syntax2 { lexems: Lexems; constructor(lexems: Lexems); rules: Array<{ regExp: RegExp; name: string; size: number; }>; regexp: RegExp; tokenize(text: string, handle: (name: string, found: string, chunks: string[], offset: number) => void): void; parse(text: string, handlers: { [key in keyof Lexems | '']: (found: string, chunks: string[], offset: number) => void; }): void; } } declare namespace $ { var $mol_syntax2_md_flow: $mol_syntax2<{ quote: RegExp; spoiler: RegExp; header: RegExp; list: RegExp; code: RegExp; 'code-indent': RegExp; table: RegExp; grid: RegExp; cut: RegExp; block: RegExp; }>; var $mol_syntax2_md_line: $mol_syntax2<{ strong: RegExp; emphasis: RegExp; code: RegExp; insert: RegExp; delete: RegExp; embed: RegExp; link: RegExp; 'image-link': RegExp; 'text-link': RegExp; 'text-link-http': RegExp; }>; const $mol_syntax2_md_code: $mol_syntax2<{ 'code-indent': RegExp; 'code-docs': RegExp; 'code-comment-block': RegExp; 'code-link': RegExp; 'code-comment-inline': RegExp; 'code-string': RegExp; 'code-number': RegExp; 'code-call': RegExp; 'code-sexpr': RegExp; 'code-field': RegExp; 'code-keyword': RegExp; 'code-global': RegExp; 'code-word': RegExp; 'code-decorator': RegExp; 'code-tag': RegExp; 'code-punctuation': RegExp; }>; } declare namespace $ { type $mol_view__sub_mol_text_code_line_1 = $mol_type_enforce< readonly(any)[] , ReturnType< $mol_view['sub'] > > type $mol_text_code_token__type_mol_text_code_line_2 = $mol_type_enforce< ReturnType< $mol_text_code_line['token_type'] > , ReturnType< $mol_text_code_token['type'] > > type $mol_text_code_token__haystack_mol_text_code_line_3 = $mol_type_enforce< ReturnType< $mol_text_code_line['token_text'] > , ReturnType< $mol_text_code_token['haystack'] > > type $mol_text_code_token__needle_mol_text_code_line_4 = $mol_type_enforce< ReturnType< $mol_text_code_line['highlight'] > , ReturnType< $mol_text_code_token['needle'] > > type $mol_text_code_token_link__haystack_mol_text_code_line_5 = $mol_type_enforce< ReturnType< $mol_text_code_line['token_text'] > , ReturnType< $mol_text_code_token_link['haystack'] > > type $mol_text_code_token_link__needle_mol_text_code_line_6 = $mol_type_enforce< ReturnType< $mol_text_code_line['highlight'] > , ReturnType< $mol_text_code_token_link['needle'] > > type $mol_text_code_token_link__uri_mol_text_code_line_7 = $mol_type_enforce< ReturnType< $mol_text_code_line['token_uri'] > , ReturnType< $mol_text_code_token_link['uri'] > > export class $mol_text_code_line extends $mol_paragraph { numb( ): number token_type( id: any): string token_text( id: any): string highlight( ): string token_uri( id: any): string text( ): string minimal_height( ): number numb_showed( ): boolean syntax( ): any uri_resolve( id: any): string Numb( ): $mol_view Token( id: any): $mol_text_code_token Token_link( id: any): $mol_text_code_token_link find_pos( id: any): any } } //# sourceMappingURL=line.view.tree.d.ts.map declare namespace $.$$ { class $mol_text_code_line extends $.$mol_text_code_line { maximal_width(): number; syntax(): $mol_syntax2<{ 'code-indent': RegExp; 'code-docs': RegExp; 'code-comment-block': RegExp; 'code-link': RegExp; 'code-comment-inline': RegExp; 'code-string': RegExp; 'code-number': RegExp; 'code-call': RegExp; 'code-sexpr': RegExp; 'code-field': RegExp; 'code-keyword': RegExp; 'code-global': RegExp; 'code-word': RegExp; 'code-decorator': RegExp; 'code-tag': RegExp; 'code-punctuation': RegExp; }>; tokens(path: number[]): Readonly<{ name: string; found: string; chunks: string[]; }[]>; sub(): (string | $mol_view)[]; row_content(path: number[]): string[] | $mol_text_code_token[]; Token(path: number[]): $mol_text_code_token; token_type(path: number[]): string; token_content(path: number[]): (string | $mol_text_code_token)[]; token_text(path: number[]): string; token_uri(path: number[]): string; view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>; find_pos(offset: number): { token: $mol_text_code_token; offset: number; } | null; find_token_pos([offset, ...path]: number[]): { token: $mol_text_code_token; offset: number; } | null; } } declare namespace $.$$ { } declare namespace $ { let $mol_mem_cached: typeof $mol_wire_probe; } declare namespace $ { function $mol_support_css_overflow_anchor(this: $): boolean; } declare namespace $ { class $mol_dom_listener extends $mol_object { _node: any; _event: string; _handler: (event: any) => any; _config: boolean | { passive: boolean; }; constructor(_node: any, _event: string, _handler: (event: any) => any, _config?: boolean | { passive: boolean; }); destructor(): void; } } declare namespace $ { class $mol_print extends $mol_object { static before(): $mol_dom_listener; static after(): $mol_dom_listener; static active(next?: boolean): boolean; } } declare namespace $ { type $mol_view__style_mol_list_1 = $mol_type_enforce< ({ 'paddingTop': ReturnType< $mol_list['gap_before'] >, }) , ReturnType< $mol_view['style'] > > type $mol_view__style_mol_list_2 = $mol_type_enforce< ({ 'paddingTop': ReturnType< $mol_list['gap_after'] >, }) , ReturnType< $mol_view['style'] > > export class $mol_list extends $mol_view { gap_before( ): number Gap_before( ): $mol_view Empty( ): $mol_view gap_after( ): number Gap_after( ): $mol_view rows( ): readonly($mol_view)[] render_visible_only( ): boolean render_over( ): number sub( ): ReturnType< $mol_list['rows'] > item_height_min( id: any): number item_width_min( id: any): number view_window_shift( next?: number ): number view_window( ): readonly(any)[] } } //# sourceMappingURL=list.view.tree.d.ts.map declare namespace $.$$ { /** * The list of rows with lazy/virtual rendering support based on `minimal_height` of rows. * `mol_list` should contain only components that inherits `mol_view`. You should not place raw strings or numbers in list. * @see https://mol.hyoo.ru/#!section=demos/demo=mol_list_demo */ class $mol_list extends $.$mol_list { sub(): readonly $mol_view[]; render_visible_only(): boolean; _view_window_last: number[]; view_window(next?: [number, number]): [number, number]; item_height_min(index: number): number; row_width_min(index: number): number; gap_before(): number; gap_after(): number; sub_visible(): $mol_view[]; minimal_height(): number; minimal_width(): number; force_render(path: Set<$mol_view>): void; } } declare namespace $ { } declare namespace $ { /** * Z-index values for layers * https://page.hyoo.ru/#!=xthcpx_wqmiba */ let $mol_layer: Record<"focus" | "float" | "hover" | "speck" | "popup", $mol_style_func<"var", unknown>>; } declare namespace $ { } declare namespace $ { } declare namespace $ { export class $mol_speck extends $mol_view { value( ): any theme( ): string sub( ): readonly(any)[] } } //# sourceMappingURL=speck.view.tree.d.ts.map declare namespace $ { /** * Key names code for hotkey * @see [mol_hotkey](../../hotkey/hotkey.view.ts) */ enum $mol_keyboard_code { backspace = 8, tab = 9, enter = 13, shift = 16, ctrl = 17, alt = 18, pause = 19, capsLock = 20, escape = 27, space = 32, pageUp = 33, pageDown = 34, end = 35, home = 36, left = 37, up = 38, right = 39, down = 40, insert = 45, delete = 46, key0 = 48, key1 = 49, key2 = 50, key3 = 51, key4 = 52, key5 = 53, key6 = 54, key7 = 55, key8 = 56, key9 = 57, A = 65, B = 66, C = 67, D = 68, E = 69, F = 70, G = 71, H = 72, I = 73, J = 74, K = 75, L = 76, M = 77, N = 78, O = 79, P = 80, Q = 81, R = 82, S = 83, T = 84, U = 85, V = 86, W = 87, X = 88, Y = 89, Z = 90, metaLeft = 91, metaRight = 92, select = 93, numpad0 = 96, numpad1 = 97, numpad2 = 98, numpad3 = 99, numpad4 = 100, numpad5 = 101, numpad6 = 102, numpad7 = 103, numpad8 = 104, numpad9 = 105, multiply = 106, add = 107, subtract = 109, decimal = 110, divide = 111, F1 = 112, F2 = 113, F3 = 114, F4 = 115, F5 = 116, F6 = 117, F7 = 118, F8 = 119, F9 = 120, F10 = 121, F11 = 122, F12 = 123, numLock = 144, scrollLock = 145, semicolon = 186, equals = 187, comma = 188, dash = 189, period = 190, forwardSlash = 191, graveAccent = 192, bracketOpen = 219, slashBack = 220, slashBackLeft = 226, bracketClose = 221, quoteSingle = 222 } } declare namespace $ { type $mol_speck__value_mol_button_1 = $mol_type_enforce< ReturnType< $mol_button['error'] > , ReturnType< $mol_speck['value'] > > export class $mol_button extends $mol_view { event_activate( next?: any ): any activate( next?: ReturnType< $mol_button['event_activate'] > ): ReturnType< $mol_button['event_activate'] > clicks( next?: any ): any event_key_press( next?: any ): any key_press( next?: ReturnType< $mol_button['event_key_press'] > ): ReturnType< $mol_button['event_key_press'] > disabled( ): boolean tab_index( ): number hint( ): string hint_safe( ): ReturnType< $mol_button['hint'] > error( ): string enabled( ): boolean click( next?: any ): any event_click( next?: any ): any status( next?: readonly(any)[] ): readonly(any)[] event( ): ({ click( next?: ReturnType< $mol_button['activate'] > ): ReturnType< $mol_button['activate'] >, dblclick( next?: ReturnType< $mol_button['clicks'] > ): ReturnType< $mol_button['clicks'] >, keydown( next?: ReturnType< $mol_button['key_press'] > ): ReturnType< $mol_button['key_press'] >, }) & ReturnType< $mol_view['event'] > attr( ): ({ 'disabled': ReturnType< $mol_button['disabled'] >, 'role': string, 'tabindex': ReturnType< $mol_button['tab_index'] >, 'title': ReturnType< $mol_button['hint_safe'] >, }) & ReturnType< $mol_view['attr'] > sub( ): readonly($mol_view_content)[] Speck( ): $mol_speck } } //# sourceMappingURL=button.view.tree.d.ts.map declare namespace $.$$ { /** * Simple button. * @see https://mol.hyoo.ru/#!section=demos/demo=mol_button_demo */ class $mol_button extends $.$mol_button { disabled(): boolean; event_activate(next: Event): void; event_key_press(event: KeyboardEvent): any; tab_index(): number; error(): string; hint_safe(): string; sub_visible(): ($mol_view_content | $mol_speck)[]; } } declare namespace $ { } declare namespace $ { } declare namespace $ { export class $mol_button_typed extends $mol_button { minimal_height( ): number minimal_width( ): number } } //# sourceMappingURL=typed.view.tree.d.ts.map declare namespace $ { } declare namespace $ { export class $mol_button_minor extends $mol_button_typed { } } //# sourceMappingURL=minor.view.tree.d.ts.map declare namespace $ { type $mol_blob = Blob; let $mol_blob: { prototype: Blob; new (blobParts?: readonly BlobPart[], options?: BlobPropertyBag): Blob; }; } declare namespace $ { /** State of time moment */ class $mol_state_time extends $mol_object { static task(precision: number, reset?: null): $mol_after_timeout | $mol_after_frame; static now(precision: number): number; } } declare namespace $ { export class $mol_svg extends $mol_view { dom_name( ): string dom_name_space( ): string font_size( ): number font_family( ): string style_size( ): Record } } //# sourceMappingURL=svg.view.tree.d.ts.map declare namespace $.$$ { /** Base SVG component to display SVG images or icons. */ class $mol_svg extends $.$mol_svg { computed_style(): Record; font_size(): number; font_family(): any; } } declare namespace $ { } declare namespace $ { export class $mol_svg_root extends $mol_svg { view_box( ): string aspect( ): string dom_name( ): string attr( ): ({ 'viewBox': ReturnType< $mol_svg_root['view_box'] >, 'preserveAspectRatio': ReturnType< $mol_svg_root['aspect'] >, }) & ReturnType< $mol_svg['attr'] > } } //# sourceMappingURL=root.view.tree.d.ts.map declare namespace $ { export class $mol_svg_path extends $mol_svg { geometry( ): string dom_name( ): string attr( ): ({ 'd': ReturnType< $mol_svg_path['geometry'] >, }) & ReturnType< $mol_svg['attr'] > } } //# sourceMappingURL=path.view.tree.d.ts.map declare namespace $ { } declare namespace $ { type $mol_svg_path__geometry_mol_icon_1 = $mol_type_enforce< ReturnType< $mol_icon['path'] > , ReturnType< $mol_svg_path['geometry'] > > export class $mol_icon extends $mol_svg_root { path( ): string Path( ): $mol_svg_path view_box( ): string minimal_width( ): number minimal_height( ): number sub( ): readonly(any)[] } } //# sourceMappingURL=icon.view.tree.d.ts.map declare namespace $ { export class $mol_icon_clipboard extends $mol_icon { path( ): string } } //# sourceMappingURL=clipboard.view.tree.d.ts.map declare namespace $ { export class $mol_icon_clipboard_outline extends $mol_icon { path( ): string } } //# sourceMappingURL=outline.view.tree.d.ts.map declare namespace $ { function $mol_html_encode(text: string): string; } declare namespace $ { type $mol_blob__mol_button_copy_1 = $mol_type_enforce< [ readonly(BlobPart)[], ({ 'type': string, }) ] , ConstructorParameters< typeof $mol_blob > > type $mol_blob__mol_button_copy_2 = $mol_type_enforce< [ readonly(BlobPart)[], ({ 'type': string, }) ] , ConstructorParameters< typeof $mol_blob > > export class $mol_button_copy extends $mol_button_minor { text( ): ReturnType< $mol_button_copy['title'] > text_blob( next?: $mol_blob ): $mol_blob html( ): string html_blob( next?: $mol_blob ): $mol_blob Icon( ): $mol_icon_clipboard_outline title( ): string blobs( ): readonly($mol_blob)[] data( ): Record sub( ): readonly(any)[] } } //# sourceMappingURL=copy.view.tree.d.ts.map declare namespace $.$$ { /** * Button copy text() value to clipboard * @see https://mol.hyoo.ru/#!section=demos/demo=mol_button_demo */ class $mol_button_copy extends $.$mol_button_copy { data(): { [k: string]: Blob; }; html(): string; attachments(): ClipboardItem[]; click(event?: Event): void; } } declare namespace $ { class $mol_storage extends $mol_object2 { /** Is storage a long term. */ static persisted(next?: boolean): boolean; /** Total storage quota in bytes. */ static total(): number; /** Total storage usage in bytes. */ static used(): number; /** Minimum available free space in bytes. */ static free(): number; /** Fulfillness of storage. */ static portion(): number; /** * Fulfillness logarithmic level. * `0` - empty * `1` - half free * `2` - quart free * `Infinity` - fulfilled */ static level(): number; } } declare namespace $ { class $mol_storage_node extends $mol_storage { static persisted(): boolean; static stats(): import("node:fs").StatsFs; static total(): number; static used(): number; static free(): number; static portion(): number; } } declare namespace $ { class $mol_state_local extends $mol_object { static 'native()': Pick; static native(): Storage | { getItem(key: string): any; setItem(key: string, value: string): void; removeItem(key: string): void; }; static changes(next?: StorageEvent): StorageEvent | undefined; static value(key: string, next?: Value | null): Value | null; prefix(): string; value(key: string, next?: Value): Value | null; } } declare namespace $ { /** * Decorates method to fiber to ensure it is executed only once inside other fiber from [mol_wire](../wire/README.md) * @see https://mol.hyoo.ru/#!section=docs/=1fcpsq_1wh0h2 */ let $mol_action: typeof $mol_wire_method; } declare namespace $ { class $mol_lock extends $mol_object { protected promise: null | Promise; wait(): Promise<() => void>; grab(): () => void; } } declare namespace $ { function $mol_compare_array>(a: Value, b: Value): boolean; } declare namespace $ { 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'; } declare namespace $ { function $mol_charset_decode(buffer: AllowSharedBufferSource, encoding?: $mol_charset_encoding): string; } declare namespace $ { /** Temporary buffer. Recursive usage isn't supported. */ function $mol_charset_buffer(size: number): Uint8Array; } declare namespace $ { function $mol_charset_encode(str: string): Uint8Array; function $mol_charset_encode_to(str: string, buf: Uint8Array, from?: number): number; function $mol_charset_encode_size(str: string): number; } declare namespace $ { type $mol_file_transaction_mode = 'create' | 'exists_truncate' | 'exists_fail' | 'read_only' | 'write_only' | 'read_write' | 'append'; type $mol_file_transaction_buffer = ArrayBufferView; class $mol_file_transaction extends $mol_object { path(): string; modes(): readonly $mol_file_transaction_mode[]; write(options: { buffer: ArrayBufferView | string | readonly ArrayBufferView[]; offset?: number | null; length?: number | null; position?: number | null; }): number; read(): Uint8Array; truncate(size: number): void; flush(): void; close(): void; destructor(): void; } } declare namespace $ { class $mol_file_transaction_node extends $mol_file_transaction { protected descr(): number; write({ buffer, offset, length, position }: { buffer: ArrayBufferView | string | readonly ArrayBufferView[]; offset?: number | null; length?: number | null; position?: number | null; }): number; truncate(size: number): void; read(): Uint8Array; flush(): void; close(): void; } } declare namespace $ { class $mol_file_base extends $mol_object { static absolute(this: This, path: string): InstanceType; static relative(this: This, path: string): InstanceType; static base: string; path(): string; parent(): this; exists_cut(): boolean; protected root(): boolean; protected stat(next?: $mol_file_stat | null, virt?: 'virt'): $mol_file_stat | null; protected static changed: Set<$mol_file_base>; protected static frame: null | $mol_after_timeout; protected static changed_add(type: 'change' | 'rename', path: string): void; /** * Должно быть больше, чем время между событиями от вотчера при записи внешним процессом. * Иначе запуск ресетов паралельно с изменением может привести к неконсистентности. */ static watch_debounce(): number; static flush(): void; protected static watching: boolean; protected static lock: $mol_lock; protected static watch_off(path: string): void; static unwatched(side_effect: () => Result, affected_dir: string): Result; reset(): void; modified(): Date | null; version(): string; protected info(path: string): null | $mol_file_stat; protected ensure(): void; protected drop(): void; protected copy(to: string): void; protected read(): Uint8Array; protected write(buffer: Uint8Array): void; protected kids(): readonly this[]; readable(opts: { start?: number; end?: number; }): ReadableStream>; writable(opts: { start?: number; }): WritableStream>; buffer(next?: Uint8Array): Uint8Array; stat_make(size: number): { readonly type: "file"; readonly size: number; readonly atime: Date; readonly mtime: Date; readonly ctime: Date; }; clone(to: string): this | null; watcher(): { destructor(): void; }; exists(next?: boolean): boolean; type(): "" | $mol_file_type; name(): string; ext(): string; text(next?: string, virt?: 'virt'): string; text_int(next?: string, virt?: 'virt'): string; sub(reset?: null): this[]; resolve(path: string): this; relate(base?: $mol_file_base): string; find(include?: RegExp, exclude?: RegExp): this[]; size(): number; toJSON(): string; open(...modes: readonly $mol_file_transaction_mode[]): $mol_file_transaction; } } declare namespace $ { type $mol_file_type = 'file' | 'dir' | 'link'; interface $mol_file_stat { type: $mol_file_type; size: number; atime: Date; mtime: Date; ctime: Date; } class $mol_file extends $mol_file_base { } } declare namespace $ { function $mol_file_node_buffer_normalize(buf: Buffer): Uint8Array; class $mol_file_node extends $mol_file { static relative(this: This, path: string): InstanceType; watcher(reset?: null): { destructor(): void; }; protected info(path: string): $mol_file_stat | null; protected ensure(): null | undefined; protected copy(to: string): void; protected drop(): void; protected read(): Uint8Array; protected write(buffer: Uint8Array): undefined; protected kids(): this[]; resolve(path: string): this; relate(base?: $mol_file): string; readable(opts: { start?: number; end?: number; }): ReadableStream>; writable(opts?: { start?: number; }): WritableStream>; } } declare namespace $ { class $mol_state_local_node extends $mol_state_local { static dir(): $mol_file; static value(key: string, next?: Value | null): Value | null; } } declare namespace $ { interface $mol_locale_dict { [key: string]: string; } /** * Localisation in $mol framework * @see https://mol.hyoo.ru/#!section=docs/=s5aqnb_odub8l */ class $mol_locale extends $mol_object { static lang_default(): string; static lang(next?: string): string; static langs_rtl(): string[]; static direction(): "ltr" | "rtl"; static source(lang: string): any; static texts(lang: string, next?: $mol_locale_dict): $mol_locale_dict; static text(key: string): string; static warn(key: string): null; } } declare namespace $ { type $mol_text_code_line__numb_showed_mol_text_code_1 = $mol_type_enforce< ReturnType< $mol_text_code['sidebar_showed'] > , ReturnType< $mol_text_code_line['numb_showed'] > > type $mol_text_code_line__numb_mol_text_code_2 = $mol_type_enforce< ReturnType< $mol_text_code['row_numb'] > , ReturnType< $mol_text_code_line['numb'] > > type $mol_text_code_line__theme_mol_text_code_3 = $mol_type_enforce< ReturnType< $mol_text_code['row_theme'] > , ReturnType< $mol_text_code_line['theme'] > > type $mol_text_code_line__text_mol_text_code_4 = $mol_type_enforce< ReturnType< $mol_text_code['row_text'] > , ReturnType< $mol_text_code_line['text'] > > type $mol_text_code_line__syntax_mol_text_code_5 = $mol_type_enforce< ReturnType< $mol_text_code['syntax'] > , ReturnType< $mol_text_code_line['syntax'] > > type $mol_text_code_line__uri_resolve_mol_text_code_6 = $mol_type_enforce< ReturnType< $mol_text_code['uri_resolve'] > , ReturnType< $mol_text_code_line['uri_resolve'] > > type $mol_text_code_line__highlight_mol_text_code_7 = $mol_type_enforce< ReturnType< $mol_text_code['highlight'] > , ReturnType< $mol_text_code_line['highlight'] > > type $mol_list__render_visible_only_mol_text_code_8 = $mol_type_enforce< ReturnType< $mol_text_code['render_visible_only'] > , ReturnType< $mol_list['render_visible_only'] > > type $mol_list__rows_mol_text_code_9 = $mol_type_enforce< ReturnType< $mol_text_code['rows'] > , ReturnType< $mol_list['rows'] > > type $mol_button_copy__hint_mol_text_code_10 = $mol_type_enforce< string , ReturnType< $mol_button_copy['hint'] > > type $mol_button_copy__text_mol_text_code_11 = $mol_type_enforce< ReturnType< $mol_text_code['text_export'] > , ReturnType< $mol_button_copy['text'] > > export class $mol_text_code extends $mol_stack { sidebar_showed( ): boolean render_visible_only( ): boolean row_numb( id: any): number row_theme( id: any): string row_text( id: any): string syntax( ): any uri_resolve( id: any): string highlight( ): string Row( id: any): $mol_text_code_line rows( ): readonly(any)[] Rows( ): $mol_list text_export( ): string Copy( ): $mol_button_copy attr( ): ({ 'mol_text_code_sidebar_showed': ReturnType< $mol_text_code['sidebar_showed'] >, }) & ReturnType< $mol_stack['attr'] > text( ): string text_lines( ): readonly(string)[] find_pos( id: any): any uri_base( ): string row_themes( ): readonly(string)[] sub( ): readonly(any)[] } } //# sourceMappingURL=code.view.tree.d.ts.map declare namespace $.$$ { /** * Code visualizer. * @see https://mol.hyoo.ru/#!section=demos/demo=mol_text_code_demo */ class $mol_text_code extends $.$mol_text_code { render_visible_only(): boolean; text_lines(): readonly string[]; rows(): $.$mol_text_code_line[]; row_text(index: number): string; row_numb(index: number): number; find_pos(offset: number): any; sub(): ($.$mol_list | $.$mol_button_copy)[]; syntax(): $mol_syntax2<{ 'code-indent': RegExp; 'code-docs': RegExp; 'code-comment-block': RegExp; 'code-link': RegExp; 'code-comment-inline': RegExp; 'code-string': RegExp; 'code-number': RegExp; 'code-call': RegExp; 'code-sexpr': RegExp; 'code-field': RegExp; 'code-keyword': RegExp; 'code-global': RegExp; 'code-word': RegExp; 'code-decorator': RegExp; 'code-tag': RegExp; 'code-punctuation': RegExp; }>; uri_base(): string; uri_resolve(uri: string): string; text_export(): string; row_theme(row: number): string; } } declare namespace $.$$ { } declare namespace $ { class $mol_dom_event extends $mol_object { readonly native: EventType; constructor(native: EventType); prevented(next?: boolean): boolean; static wrap(event: EventType): $mol_dom_event; } } declare namespace $ { } declare namespace $ { type $mol_view__sub_mol_check_1 = $mol_type_enforce< readonly(any)[] , ReturnType< $mol_view['sub'] > > export class $mol_check extends $mol_button_minor { checked( next?: boolean ): boolean aria_checked( ): string aria_role( ): string Icon( ): any title( ): string Title( ): $mol_view label( ): readonly(any)[] attr( ): ({ 'mol_check_checked': ReturnType< $mol_check['checked'] >, 'aria-checked': ReturnType< $mol_check['aria_checked'] >, 'role': ReturnType< $mol_check['aria_role'] >, }) & ReturnType< $mol_button_minor['attr'] > sub( ): readonly($mol_view_content)[] } } //# sourceMappingURL=check.view.tree.d.ts.map declare namespace $.$$ { /** * Checkbox UI component. See Variants for more concrete implementations. * @see https://mol.hyoo.ru/#!section=demos/demo=mol_check_box_demo */ class $mol_check extends $.$mol_check { click(next?: Event): void; sub(): readonly $mol_view_content[]; label(): readonly any[]; aria_checked(): string; } } declare namespace $ { export class $mol_icon_chevron extends $mol_icon { path( ): string } } //# sourceMappingURL=chevron.view.tree.d.ts.map declare namespace $ { export class $mol_check_expand extends $mol_check { level_style( ): string expanded( next?: boolean ): boolean expandable( ): boolean Icon( ): $mol_icon_chevron level( ): number style( ): ({ 'paddingLeft': ReturnType< $mol_check_expand['level_style'] >, }) & ReturnType< $mol_check['style'] > checked( next?: ReturnType< $mol_check_expand['expanded'] > ): ReturnType< $mol_check_expand['expanded'] > enabled( ): ReturnType< $mol_check_expand['expandable'] > } } //# sourceMappingURL=expand.view.tree.d.ts.map declare namespace $.$$ { /** * Expander for trees, lists, etc * @see https://mol.hyoo.ru/#!section=demos/demo=mol_check_expand_demo */ class $mol_check_expand extends $.$mol_check_expand { level_style(): string; expandable(): boolean; } } declare namespace $ { } declare namespace $ { type $mol_dump_value__value_mol_dump_list_1 = $mol_type_enforce< ReturnType< $mol_dump_list['dump_value'] > , ReturnType< $mol_dump_value['value'] > > type $mol_dump_value__expanded_mol_dump_list_2 = $mol_type_enforce< ReturnType< $mol_dump_list['dump_expanded'] > , ReturnType< $mol_dump_value['expanded'] > > type $mol_dump_value__prototypes_mol_dump_list_3 = $mol_type_enforce< ReturnType< $mol_dump_list['prototypes'] > , ReturnType< $mol_dump_value['prototypes'] > > type $mol_dump_value__preview_show_mol_dump_list_4 = $mol_type_enforce< ReturnType< $mol_dump_list['preview_show'] > , ReturnType< $mol_dump_value['preview_show'] > > export class $mol_dump_list extends $mol_view { dump_value( id: any): any dump_expanded( id: any, next?: boolean ): boolean prototypes( ): boolean preview_show( ): boolean Dump( id: any): $mol_dump_value values( ): readonly(any)[] sub( ): readonly(any)[] } } //# sourceMappingURL=list.view.tree.d.ts.map declare namespace $.$$ { /** * Dumps any JS values. * @see https://mol.hyoo.ru/#!section=demos/demo=mol_dump_demo */ class $mol_dump_list extends $.$mol_dump_list { sub(): $.$mol_dump_value[]; dump_value(index: number): any; expand_all(event?: Event): void; } } declare namespace $ { } declare namespace $ { type $mol_check_expand__checked_mol_expander_1 = $mol_type_enforce< ReturnType< $mol_expander['expanded'] > , ReturnType< $mol_check_expand['checked'] > > type $mol_check_expand__expandable_mol_expander_2 = $mol_type_enforce< ReturnType< $mol_expander['expandable'] > , ReturnType< $mol_check_expand['expandable'] > > type $mol_check_expand__label_mol_expander_3 = $mol_type_enforce< ReturnType< $mol_expander['label'] > , ReturnType< $mol_check_expand['label'] > > type $mol_view__sub_mol_expander_4 = $mol_type_enforce< readonly(any)[] , ReturnType< $mol_view['sub'] > > type $mol_list__rows_mol_expander_5 = $mol_type_enforce< ReturnType< $mol_expander['content'] > , ReturnType< $mol_list['rows'] > > export class $mol_expander extends $mol_list { expanded( next?: boolean ): boolean expandable( ): boolean label( ): readonly(any)[] Trigger( ): $mol_check_expand Tools( ): any Label( ): $mol_view content( ): readonly(any)[] Content( ): $mol_list rows( ): readonly(any)[] } } //# sourceMappingURL=expander.view.tree.d.ts.map declare namespace $.$$ { /** * Component which expands any content on title click. * @see https://mol.hyoo.ru/#!section=demos/demo=mol_expander_demo */ class $mol_expander extends $.$mol_expander { rows(): $mol_view[]; expandable(): boolean; } } declare namespace $ { } declare namespace $ { type $mol_text_code__text_mol_dump_value_1 = $mol_type_enforce< ReturnType< $mol_dump_value['simple'] > , ReturnType< $mol_text_code['text'] > > type $mol_text_code__text_mol_dump_value_2 = $mol_type_enforce< ReturnType< $mol_dump_value['expand_title'] > , ReturnType< $mol_text_code['text'] > > type $mol_check_expand__minimal_height_mol_dump_value_3 = $mol_type_enforce< number , ReturnType< $mol_check_expand['minimal_height'] > > type $mol_check_expand__minimal_width_mol_dump_value_4 = $mol_type_enforce< number , ReturnType< $mol_check_expand['minimal_width'] > > type $mol_check_expand__expanded_mol_dump_value_5 = $mol_type_enforce< ReturnType< $mol_dump_value['expanded'] > , ReturnType< $mol_check_expand['expanded'] > > type $mol_check_expand__expandable_mol_dump_value_6 = $mol_type_enforce< ReturnType< $mol_dump_value['expandable'] > , ReturnType< $mol_check_expand['expandable'] > > type $mol_check_expand__clicks_mol_dump_value_7 = $mol_type_enforce< ReturnType< $mol_dump_value['expand_all'] > , ReturnType< $mol_check_expand['clicks'] > > type $mol_check_expand__label_mol_dump_value_8 = $mol_type_enforce< readonly(any)[] , ReturnType< $mol_check_expand['label'] > > type $mol_view__dom_node_mol_dump_value_9 = $mol_type_enforce< ReturnType< $mol_dump_value['preview_dom'] > , ReturnType< $mol_view['dom_node'] > > type $mol_view__render_mol_dump_value_10 = $mol_type_enforce< ReturnType< $mol_dump_value['preview'] > , ReturnType< $mol_view['render'] > > type $mol_view__sub_mol_dump_value_11 = $mol_type_enforce< readonly(any)[] , ReturnType< $mol_view['sub'] > > type $mol_dump_list__values_mol_dump_value_12 = $mol_type_enforce< ReturnType< $mol_dump_value['row_values'] > , ReturnType< $mol_dump_list['values'] > > type $mol_dump_list__prototypes_mol_dump_value_13 = $mol_type_enforce< ReturnType< $mol_dump_value['prototypes'] > , ReturnType< $mol_dump_list['prototypes'] > > type $mol_dump_list__preview_show_mol_dump_value_14 = $mol_type_enforce< ReturnType< $mol_dump_value['preview_show'] > , ReturnType< $mol_dump_list['preview_show'] > > type $mol_expander__expanded_mol_dump_value_15 = $mol_type_enforce< ReturnType< $mol_dump_value['expanded'] > , ReturnType< $mol_expander['expanded'] > > type $mol_expander__Trigger_mol_dump_value_16 = $mol_type_enforce< ReturnType< $mol_dump_value['Expand_head'] > , ReturnType< $mol_expander['Trigger'] > > type $mol_expander__content_mol_dump_value_17 = $mol_type_enforce< ReturnType< $mol_dump_value['expand_content'] > , ReturnType< $mol_expander['content'] > > export class $mol_dump_value extends $mol_view { simple( ): string Simple( ): $mol_text_code expanded( next?: boolean ): boolean expandable( ): boolean expand_all( next?: any ): any expand_title( ): string Expand_title( ): $mol_text_code Expand_head( ): $mol_check_expand preview_dom( ): any preview( ): any Preview_dom( ): $mol_view Preview( ): $mol_view row_values( id: any): readonly(any)[] prototypes( ): boolean Row( id: any): $mol_dump_list expand_content( ): readonly(any)[] Expand( ): $mol_expander value( next?: any ): any preview_show( next?: boolean ): boolean sub( ): readonly(any)[] } } //# sourceMappingURL=value.view.tree.d.ts.map declare namespace $.$$ { /** * Dumps any JS values. * @see https://mol.hyoo.ru/#!section=demos/demo=mol_dump_demo */ class $mol_dump_value extends $.$mol_dump_value { sub(): $.$mol_text_code[] | $.$mol_expander[]; simple(): string; expand_title(): any; rows_values(): any[][]; preview_dom(): Element | null; expand_content(): ($mol_view | $.$mol_dump_list)[]; expandable(): boolean; row_values(index: number): any[]; expand_all(event?: Event): void; } } declare namespace $ { } export = $; //# sourceMappingURL=node.d.ts.map