import type { AnyBox, RawCoreBox } from '../core.svelte.js'; import type { BoxGetter, BoxGuards, BoxCommonMixins } from '../mixins.svelte.js'; // Synthetic constructor for the assembled mixin chain. type _Mixins = RawCoreBox & BoxGetter & BoxGuards & BoxCommonMixins; declare const _Mixins: new (initial: T) => _Mixins; /** * Read-only reactive view. Plain class, no Proxy. Reach inner-object * properties through `.value`. Writes through `.value` throw * `TypeError`. * * Read-only counterpart to `FastBox`. Mixin chain over * {@link RawCoreBox} provides {@link BoxGuards}, {@link BoxGetter}, * {@link BoxSerializable}, and {@link BoxCloneable}; storage is * `$state.raw`. * * Construct from a plain value (captured into the inherited raw cell) * or an existing {@link AnyBox} (shared state). `fastbox.toConst()` is * the shorthand that always borrows from the source `FastBox`. */ export declare class ConstFastBox extends _Mixins { /** Read-only reactive accessor for the underlying value. */ readonly value: T; /** Borrow `initial` so the const view shares state with the source. */ constructor(initial: AnyBox); /** Capture `initial` into the inherited raw cell. */ constructor(initial: T); /** Non-reactive deep clone of the current value. */ snapshot(): T; /** Current value, bypassing async UI suspension. */ eager(): T; } /** Borrow an existing cell as a {@link ConstFastBox}, sharing state. */ export declare function constfastbox(initial: AnyBox): ConstFastBox; /** Capture a plain value into a fresh {@link ConstFastBox}. */ export declare function constfastbox(initial: T): ConstFastBox;