/** * Reactive state store for the prefab renderer. * * Stores key-value pairs and notifies subscribers when values change. * Supports dot-path access (e.g. "user.name") and array operations. */ export type Subscriber = () => void; export type Unsubscribe = () => void; export declare class Store { private data; private subscribers; private globalSubscribers; /** * Monotonically increasing counter, bumped on every state mutation. * Used by the find-filter cache to detect staleness. */ generation: number; constructor(initial?: Record); /** Get a value by dot-path key */ get(path: string): unknown; /** Get the full state snapshot */ getAll(): Record; /** Set a value by dot-path key and notify subscribers */ set(path: string, value: unknown): void; /** Toggle a boolean value */ toggle(path: string): void; /** Append a value to an array at path */ append(path: string, value: unknown, index?: number): void; /** Remove an element from an array at path by index or value */ pop(path: string, indexOrValue: number | string): void; /** Merge a partial state object */ merge(partial: Record): void; /** Subscribe to changes on a specific path */ subscribe(path: string, fn: Subscriber): Unsubscribe; /** Subscribe to any state change */ subscribeAll(fn: Subscriber): Unsubscribe; private notify; } //# sourceMappingURL=state.d.ts.map