import type { History } from '@umijs/renderer-react';
import React from 'react';
import { Connect, DefaultRootState, RootStateOrAny } from 'react-redux';
import { Action, AnyAction, Dispatch, Store } from 'redux';
import type { IObject } from './interface';
/**
* 设置项目中umi的导出对象引用,解决启用mfsu模式,getDvaApp获取不到返回值
* @param umiHooks
*/
export declare function setUmiHooks(umiHooks: () => {
getDvaApp: () => any;
} & IObject): void;
export declare function getDvaApp(): any;
export declare function getConnect(): Connect;
export declare function getHistory(): History & {
goBack(): void;
location: History['location'] & {
query: IObject;
};
};
export declare function useHistory(): History & {
goBack(): void;
location: import("history").Location & {
query: IObject;
};
};
export declare function useDispatch(): Dispatch;
export declare function useStore(): Store;
export declare function useSelector(selector: (state: TState) => TSelected, equalityFn?: (left: TSelected, right: TSelected) => boolean): TSelected;
export declare function useModel(namespace: any, selector?: any): T;
export declare function getDvaProvider(): ({ children }: {
children: any;
}) => React.CElement<{
store: any;
children: any;
}, React.Component<{
store: any;
children: any;
}, any, any>>;
/**
* 获取乾坤主应用的props传递状态
*/
export declare function useQkState(): any;