import { StoreApi } from 'zustand'; declare type WithoutCallSignature = { [K in keyof T]: T[K]; }; /** * 该函数接收四个参数:key,value 、 deps setStoreState * @param {key}:需要更新的 Store 中的 key * @param value:需要更新的值 * @param deps:依赖项数组,默认为 [value] * @param setStoreState:一个可选的回调函数,用于更新 Store 状态 */ export type UseStoreUpdater = (key: Key, value: T[Key], deps?: any[], setStateFn?: StoreApi['setState']) => void; export declare const createStoreUpdater: (storeApi: WithoutCallSignature>) => UseStoreUpdater; export {};