import { BaseStore, PersistConfig, PersistentStore, StoreState } from "../../../utils/types"; /** * Persist a store or a store with actions to a specified storage. * * The function persists the state of the provided store (or store with actions) to a storage solution * according to the configuration provided. It supports automatic state serialization, migration, and more. * * @param {Store} store - The store to persist. * @param {PersistConfig} config - Configuration for persistence such as storage key, debounce time, migration, etc. * @returns {PersistentStore} The persistent store, which includes methods for hydration, disposal, and clearing. */ export declare function persist>(store: S, config: PersistConfig>): PersistentStore;