declare namespace moonbit_d_exports { export { Bool, Byte, Bytes, Char, Double, FixedArray, Float, Int, Int64, Result, String, UInt, UInt64, UnboxedOption, UnboxedOptionAsInt, Unit, __brand }; } /** * A non-public unique symbol used to mark the brand of a type. * And avoid user to construct values of the type. */ declare const __brand: unique symbol; type Unit = undefined; type Bool = boolean; /** * A signed integer in 32-bit two's complement format. */ type Int = number; /** * An unsigned integer in 32-bit two's complement format. */ type UInt = number; /** * A character in the range 0-0x10FFFF. */ type Char = number; /** * A byte in the range 0-255. */ type Byte = number; /** * Single-precision floating point number. */ type Float = number; type Double = number; /** * Backed by `bigint`, but not equal to the backing value: * runtime operations interpret it with signed 64-bit wraparound semantics. * Use `BigInt.asIntN(64, x)` to get the numerically equivalent `bigint`. */ type Int64 = bigint & { [__brand]: "Int64"; }; /** * Backed directly by `bigint`. * Valid `UInt64` values are in the unsigned 64-bit range `[0, 2^64)`. */ type UInt64 = bigint & { [__brand]: "UInt64"; }; type String = string; type Bytes = Uint8Array; type FixedArray = T[]; type UnboxedOption = /* Some */ T | /* None */ undefined; type UnboxedOptionAsInt = /* Some */ T | /* None */ -1; type Result = /* Ok */ { $tag: 1; _0: T; } | /* Err */ { $tag: 0; _0: E; }; //#endregion //#region ../../_build/js/release/build/mizchi/luna/js/api_signals/api_signals.d.ts export declare function onMount(fn_: () => Unit): Unit; export declare function hasOwner(): Bool; export declare function runWithOwner(owner: any, f: () => any): any; export declare function getOwner(): UnboxedOption; export declare function createRoot(f: (_arg0: () => Unit) => any): any; export declare function onCleanup(cleanup: () => Unit): Unit; export declare function batch(f: () => any): any; export declare function runUntracked(f: () => any): any; export declare function batchEnd(): Unit; export declare function batchStart(): Unit; export declare function renderEffect(fn_: () => Unit): () => Unit; export declare function effect(fn_: () => Unit): () => Unit; export declare function combine(a: any, b: any, f: (_arg0: any, _arg1: any) => any): () => any; export declare function map(sig: any, f: (_arg0: any) => any): () => any; export declare function subscribe(sig: any, callback: (_arg0: any) => Unit): () => Unit; export declare function peek(sig: any): any; export declare function update(sig: any, f: (_arg0: any) => any): Unit; export declare function set(sig: any, value: any): Unit; export declare function get(sig: any): any; //#endregion //#region src/signals.d.ts export type Accessor = () => T; export type Setter = (value: T | ((prev: T) => T)) => void; export type Signal = [Accessor, Setter]; /** * Creates a reactive signal (SolidJS-style) */ export declare function createSignal(initialValue: T): Signal; /** * Creates a reactive effect (SolidJS-style) * Deferred execution via microtask - runs after rendering completes */ export declare function createEffect(fn: () => void): () => void; /** * Creates a render effect (SolidJS-style) * Immediate/synchronous execution - runs during rendering */ export declare function createRenderEffect(fn: () => void): () => void; /** * Creates a memoized computed value (SolidJS-style) */ export declare function createMemo(fn: () => T): Accessor; //#endregion export { runUntracked as untrack };