///
declare type MockResponseCb = (request: {
data?: any;
method: string;
params?: any;
status: string;
}) => any;
declare type Mock = {
url: string;
method: string;
status: number;
response: any | MockResponseCb;
};
export declare class MockXHR {
spy: jest.Mock;
mocks: Mock[];
constructor(mocks?: Mock[]);
add(mock: Mock): void;
destroy(): void;
reset(): void;
}
export {};