import hooks from '../hooks';
import { Provider as StoreProvider } from "react-redux";
declare const models: import("./global").GlobalModal[];
type ModalsType = (typeof models[number]);
export interface Store {
    getDataByModel: typeof getDataByModel;
    useStore: typeof hooks.useStore;
    useDispatch: typeof hooks.useDispatch;
    setDataByModel: typeof setDataByModel;
    dispatch: any;
    getState: any;
}
export type ModelsNames = ModalsType['namespace'];
export type ModelsState = {
    [K in (ModalsType['namespace'])]: Extract<ModalsType, {
        namespace: K;
    }>['state'];
};
/**
 * @title: 从store内获取数据
 * @description:
 * @param {string} model
 * @param {string} key
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-09-03 11:07
 */
declare const getDataByModel: <T extends keyof ModelsState, D extends keyof ModelsState[T]>(model: string, key?: D) => D extends undefined ? ModelsState[T] : ModelsState[T][D];
/**
 * @title: 设置数据到store
 * @description:
 * @param {string} model
 * @param {string} key
 * @param {string} value
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-09-08 15:17
 */
declare const setDataByModel: <T extends keyof ModelsState, D extends keyof ModelsState[T]>(model: string, key: any, value: any) => void;
declare const _default: {
    getStore: () => Store;
    StoreProvider: typeof StoreProvider;
    setConfig: (models: any[]) => void;
};
export default _default;
