1 | import { Context } from 'react';
|
2 | import { State, UpdateState } from './vanilla';
|
3 | export declare type Store = {
|
4 | s: State;
|
5 | u: UpdateState;
|
6 | l: Set<() => void>;
|
7 | };
|
8 | export declare const createStore: (initialValues?: Iterable<readonly [
|
9 | import("./types").Atom<unknown>,
|
10 | unknown
|
11 | ]> | undefined) => any;
|
12 | export declare const subscribeToStore: (store: Store, callback: () => void) => () => void;
|
13 | declare type StoreContext = Context<ReturnType<typeof createStore>>;
|
14 | export declare const StoreContextMap: Map<string | number | symbol | undefined, StoreContext>;
|
15 | export declare const getStoreContext: (scope?: string | number | symbol | undefined) => StoreContext;
|
16 | export {};
|