export interface Store { subscribe(cb: () => void): () => void; getSnapshot(): T; setState(update: Partial | ((prev: T) => Partial)): void; } /** * Create a lightweight external store compatible with React's useSyncExternalStore. * Uses createSignal for pub/sub and Object.freeze for snapshot immutability. */ export declare function createStore(initialState: T): Store; /** * React hook for consuming a store. Triggers re-render when any state changes. */ export declare function useStore(store: Store): T; //# sourceMappingURL=create-store.d.ts.map