import { AtomInterface, AtomMemoizationOptions, AtomOptions, ReadOnlyAtomInterface, SupportedStorage } from './Atom'; import { Injectable } from './Injectable'; import { StoreInterface } from './types'; type UnwrappedValue = T extends ReadOnlyAtomInterface ? R : T; type UnwrappedValues>> = { [P in keyof T]: UnwrappedValue; }; interface StoreResetOptions { resetValues?: boolean; clearPersisted?: boolean; atomKeys?: string[]; } declare abstract class Store extends Injectable implements StoreInterface { private subscriptions; protected storage?: SupportedStorage; constructor(); protected atom(initialValue: V, options?: AtomOptions): AtomInterface; protected watchAtom(atom: ReadOnlyAtomInterface, callback: (value: V, previousValue?: V) => void, immediate?: boolean): void; protected deriveAtom[] | []>(sourceAtoms: A, transformer: (...args: UnwrappedValues) => V, memoization?: AtomMemoizationOptions): ReadOnlyAtomInterface; enableDebug(): void; reset(options?: StoreResetOptions): Promise; clearPersistedData(): Promise; resetValues(): Promise; destroy(): void; } export { Store };