import { Context } from 'react'; import { Atom, Scope } from './atom'; import { Store } from './store'; declare type VersionedWrite = (write: (version?: object) => void) => void; export declare type ScopeContainer = { s: Store; w?: VersionedWrite; }; export declare const createScopeContainer: (initialValues?: Iterable, unknown ]> | undefined, unstable_createStore?: ((initialValues?: Iterable string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; }, unknown ]> | undefined) => { get: (atom: Atom) => (Value_3 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_3) | undefined; asyncGet: (atom: Atom) => Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? V_1 extends Promise ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_4>; set: >(atom: import("./atom").WritableAtom, update: Update) => Result; sub: (atom: { toString: () => string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; }, callback: () => void) => () => void; SECRET_INTERNAL_store: { r: (readingAtom: Atom, version?: import("./store").VersionObject | undefined) => import("./store").AtomState; w: >(writingAtom: import("./atom").WritableAtom, update: Update_1, version?: import("./store").VersionObject | undefined) => Result_1; c: (_atom: { toString: () => string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; } | null, version?: import("./store").VersionObject | undefined) => void; s: (atom: { toString: () => string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; }, callback: (version?: import("./store").VersionObject | undefined) => void) => () => void; h: (values: Iterable string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; }, unknown ]>, version?: import("./store").VersionObject | undefined) => void; n: (l: () => void) => () => void; l: () => IterableIterator<{ toString: () => string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; }>; a: (a: { toString: () => string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; }) => import("./store").AtomState | undefined; m: (a: { toString: () => string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; }) => { l: Set<(version?: import("./store").VersionObject | undefined) => void>; t: Set<{ toString: () => string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; }>; u?: () => void; } | undefined; } | { r: (readingAtom: Atom, version?: import("./store").VersionObject | undefined) => import("./store").AtomState; w: >(writingAtom: import("./atom").WritableAtom, update: Update_1, version?: import("./store").VersionObject | undefined) => Result_1; c: (_atom: { toString: () => string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; } | null, version?: import("./store").VersionObject | undefined) => void; s: (atom: { toString: () => string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; }, callback: (version?: import("./store").VersionObject | undefined) => void) => () => void; h: (values: Iterable string; debugLabel?: string; read: (get: { (atom: Atom>): Value; (atom: Atom>): Value_1; (atom: Atom): Value_2 extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? V extends Promise ? any : V : V : V : V : V : V : V : V : V : V : Value_2; }) => unknown; }, unknown ]>, version?: import("./store").VersionObject | undefined) => void; n?: never; l?: never; a?: never; m?: never; }; }) | undefined) => ScopeContainer; declare type ScopeContext = Context; export declare const getScopeContext: (scope?: Scope | undefined) => ScopeContext; export {};