export interface Store<T> {
    subscribe(cb: () => void): () => void;
    getSnapshot(): T;
    setState(update: Partial<T> | ((prev: T) => Partial<T>)): 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<T extends object>(initialState: T): Store<T>;
/**
 * React hook for consuming a store. Triggers re-render when any state changes.
 */
export declare function useStore<T extends object>(store: Store<T>): T;
//# sourceMappingURL=create-store.d.ts.map