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/api.d.ts declare function portalToElementWithShadow(mount: any, children: any): any; declare function portalWithShadow(children: any): any; declare function portalToSelector(selector: String, children: any): any; declare function portalToBody(children: any): any; declare function stateError(state: any): any; declare function stateValue(state: any): any; declare function stateIsFailure(state: any): Bool; declare function stateIsSuccess(state: any): Bool; declare function stateIsPending(state: any): Bool; declare function resourceError(res: any): any; declare function resourceValue(res: any): any; declare function resourceIsFailure(res: any): Bool; declare function resourceIsSuccess(res: any): Bool; declare function resourceIsPending(res: any): Bool; declare function resourceRefetch(res: any): Unit; declare function resourcePeek(res: any): any; declare function resourceGet(res: any): any; declare function createDeferred(): [any, (_arg0: any) => Unit, (_arg0: String) => Unit]; declare function createResource(fetcher: (_arg0: (_arg0: any) => Unit, _arg1: (_arg0: String) => Unit) => Unit): any; declare function useContext(ctx: any): any; declare function provide(ctx: any, value: any, f: () => any): any; declare function createContext(default_value: any): any; declare function routerGetBase(router: any): String; declare function routerGetMatch(router: any): UnboxedOption; declare function routerGetPath(router: any): String; declare function routerReplace(router: any, path: String): Unit; declare function routerNavigate(router: any, path: String): Unit; declare function createRouter(routes: any, base$46$opt: UnboxedOption): any; declare function routePageFull(path: String, component: String, title: String, meta: any): any; declare function routePageTitled(path: String, component: String, title: String): any; declare function routePage(path: String, component: String): any; declare function debounced(sig: any, delay_ms: Int): any; declare function mathmlNs(): String; declare function svgNs(): String; declare function createElementNs(ns: String, tag: String, attrs: any, children: any): any; declare function createElement(tag: String, attrs: any, children: any): any; declare function Fragment(children: any): any; declare function jsxs(tag: String, attrs: any, children: any): any; declare function jsx(tag: String, attrs: any, children: any): any; declare function show(cond: () => Bool, render: () => any): any; declare function mount(root: any, node: any): Unit; declare function render(root: any, node: any): Unit; declare function textDyn(get_content: () => String): any; declare function text(content: String): any; declare function forEach(items: () => any, render_item: (_arg0: any, _arg1: Int) => any): any; declare function onMount(fn_: () => Unit): Unit; declare function hasOwner(): Bool; declare function runWithOwner(owner: any, f: () => any): any; declare function getOwner(): UnboxedOption; declare function createRoot(f: (_arg0: () => Unit) => any): any; declare function onCleanup(cleanup: () => Unit): Unit; declare function batch(f: () => any): any; declare function runUntracked(f: () => any): any; declare function batchEnd(): Unit; declare function batchStart(): Unit; declare function renderEffect(fn_: () => Unit): () => Unit; declare function effect(fn_: () => Unit): () => Unit; declare function combine(a: any, b: any, f: (_arg0: any, _arg1: any) => any): () => any; declare function createMemo(compute: () => any): () => any; declare function map(sig: any, f: (_arg0: any) => any): () => any; declare function subscribe(sig: any, callback: (_arg0: any) => Unit): () => Unit; declare function peek(sig: any): any; declare function update(sig: any, f: (_arg0: any) => any): Unit; declare function set(sig: any, value: any): Unit; declare function get(sig: any): any; declare function createSignal(initial: any): any; //#endregion export { runWithOwner as $, portalToElementWithShadow as A, resourceIsSuccess as B, map as C, onMount as D, onCleanup as E, renderEffect as F, routePageFull as G, resourceRefetch as H, resourceError as I, routerGetMatch as J, routePageTitled as K, resourceGet as L, portalWithShadow as M, provide as N, peek as O, render as P, runUntracked as Q, resourceIsFailure as R, jsxs as S, mount as T, resourceValue as U, resourcePeek as V, routePage as W, routerNavigate as X, routerGetPath as Y, routerReplace as Z, forEach as _, combine as a, stateIsSuccess as at, hasOwner as b, createElement as c, svgNs as ct, createResource as d, update as dt, set as et, createRoot as f, useContext as ft, effect as g, debounced as h, batchStart as i, stateIsPending as it, portalToSelector as j, portalToBody as k, createElementNs as l, text as lt, createSignal as m, batch as n, stateError as nt, createContext as o, stateValue as ot, createRouter as p, routerGetBase as q, batchEnd as r, stateIsFailure as rt, createDeferred as s, subscribe as st, Fragment as t, show as tt, createMemo as u, textDyn as ut, get as v, mathmlNs as w, jsx as x, getOwner as y, resourceIsPending as z };