import type { ActionCollectionConfig, ActionCollectionResult, Any, AnyFunction, BaseMetadata, GlobalStoreCallbacks, StateChanges } from 'react-hooks-global-states/types'; import GlobalStoreBase from 'react-hooks-global-states/GlobalStore'; import type { LocalStorageConfig, ItemEnvelope } from './types'; export declare class GlobalStore | undefined | unknown, PublicStateMutator = keyof ActionsConfig extends never | undefined ? React.Dispatch> : ActionCollectionResult>> extends GlobalStoreBase { protected localStorage: LocalStorageConfig | null; constructor(state: State | (() => State)); constructor(state: State | (() => State), args: { metadata?: Metadata | (() => Metadata); callbacks?: GlobalStoreCallbacks; actions?: ActionsConfig; name?: string; localStorage?: LocalStorageConfig; }); isPersistStorageAvailable(): boolean; protected onInit: () => void; trySetStorageItem(state: State): void; updateStateWithValidation(state: State): void; protected onStateChanged: ({ state }: StateChanges) => void; getStorageItem(): ItemEnvelope | ItemEnvelope> | null; setStorageItem(state: State): void; reset(): void; reset(state: State, metadata: Metadata): void; handleStorageError(error: unknown): void; } export default GlobalStore;