import DEvent from './event'; import { Ddan } from '../typings'; export default class DStore extends DEvent implements Ddan.IDStore { setters: Record; getters: Record; actions: Record; persist?: Ddan.IDPersistConfig; constructor(); dispatch(key: string, payload?: undefined): any; /** * 查询 * @param key 字段 * @returns */ query(key: string): Promise; /** * 提交 * @param name 字段 * @param payload 值 */ commit(name: string, payload: any): void; } export declare const storeRef: (source: Ddan.IDStore, persistConfig?: Ddan.IDPersistConfig) => any;