import { Computed, NativeSignal } from "native-signal/weak"; import { type Child } from "./jsx-runtime"; type Reactive = NativeSignal | Computed; type LazyChild = Child | Child[] | (() => Child | Child[]); /** * Switches between two content branches based on a boolean signal/computed. * Branches are materialised at most once, on first activation, and cached * for all subsequent renders. Inactive nodes are held in a detached fragment * so inner signals and state are preserved. * * `truthy_content` and `falsy_content` may each be a factory function: * each is called at most once, the first time its branch becomes active. */ export declare function AB(signal: Reactive | NativeSignal, truthy_content: LazyChild, falsy_content: LazyChild): DocumentFragment; export declare function Switch(signal: Reactive | NativeSignal, cases: Record): DocumentFragment; export {}; //# sourceMappingURL=AB.d.ts.map