/** State components read part of, each re-rendering only when its part changes. */ export declare class Store { /** Counts changes, so what follows the whole of a store can tell one happened. */ version: number; private readonly listeners; subscribe: (listener: () => void) => () => void; protected notify(): void; } /** What `read` takes from `store`, re-rendering when it changes; `none` without a store. */ export declare function useStore(store: S | null, read: (store: S) => T, none: T): T;