import { XStore } from './pastore'; /** * 创建 pastore 的工厂函数 */ export declare function createStore(descriptor: { name: string; initState: State; actions?: Actions; middlewares?: Array; }): XStore; /** * pastate imState 对象拆包 * @param imValue */ export declare function unpack(imValue: T): T; /** * 把视图组件转为可绑定 value 的组件 * @param component 原始组件 * @param _valueProp 原组件的值的属性名称,默认(一般)为 value, 可以根据原组件的情况设为 checked 等 */ export declare function makeBindable(component: any, _valueProp?: string): any; /** * 把一个依赖 imState 的纯函数转化为一个带有缓存功能的纯函数 */ export declare function makeCacheable(rawFunction: T): T; /** * 把 imState 转化为响应式 state */ export declare function getResponsiveState(state: any): any; /** * imState 的 set 操作方法 */ export declare function set(state: any, newValue: any, description?: string): any; /** * imState 的 merge 操作方法 */ export declare function merge(state: any, newValue: any, description?: string): any; /** * imState 的 update 操作方法 */ export declare function update(state: any, updater: any, description?: string): any;