import '../lib/polyfills/objectKeys';
interface IMockData {
    payload: object;
    isSuccess: boolean;
}
declare type IMockFunction = (params: any) => Promise<any>;
/**
 * 一旦调用init,当前环境下的接口调用将会走mock的数据(可选择部分或者全部)
 * @memberof MockApi
 */
export declare const init: (config?: {
    /** 初始化时配置的api,等同于batchAppendMockApiResult */
    mockApiMap?: {
        [method: string]: IMockData | IMockFunction;
    } | undefined;
    /** 只有当配置了api才会走mock */
    isOnlyMockWhenConfig?: boolean | undefined;
} | undefined) => void;
export declare const emitEvent: (eventName: string) => void;
export declare const appendMockApiResult: (method: string, result: IMockData | IMockFunction) => void;
export declare const batchAppendMockApiResult: (mockApiMap: {
    [method: string]: IMockData | IMockFunction;
}) => void;
export {};