import { t as $store } from "./store-CLLtJRzY.js"; import { createMemo as $memo } from "@fictjs/runtime"; import { AsyncContext, createScope, createSelector, runInScope } from "@fictjs/runtime/advanced"; export * from "@fictjs/runtime"; //#region src/index.d.ts /** * Explicit compiler-owned asynchronous derived value. * Read reactive inputs synchronously in the producer; return its Promise or * async iterable. The compiler reads the current value in reactive consumers. * @public */ declare function $async(_produce: (context: AsyncContext) => T | PromiseLike | AsyncIterable): T; /** * Compiler macro for reactive state. * This is transformed at compile time and should never be called at runtime. * * @example * ```tsx * let count = $state(0) * count++ // Reactive update * ``` * * @public */ declare function $state(_initialValue: T): T; /** * Compiler macro for reactive effects. * This is transformed at compile time and should never be called at runtime. * * @example * ```tsx * $effect(() => { * console.log('count changed:', count) * }) * ``` * * @public */ declare function $effect(_fn: () => void | (() => void)): void; //#endregion export { $async, $effect, $memo, $state, $store, createScope, createSelector, runInScope }; //# sourceMappingURL=index.d.ts.map