import { ApolloError } from 'apollo-client'; export interface Constructor { query: string; data?: any; error?: ApolloError; loading?: boolean; variables?: any; } export declare type MockResponse = { data: any; error?: ApolloError; loading: boolean; networkStatus: 'ready' | 'error'; }; export default class Mock { query: string; variables: any; calls: any[]; private results; constructor({ query, data, error, loading, variables }: Constructor); reply(data: any): this; fail(error: any | any[] | string): this; loading(state?: boolean): this; readonly response: MockResponse; register(variables: any): void; readonly callCount: number; readonly notCalled: boolean; readonly called: boolean; readonly calledOnce: boolean; readonly calledTwice: boolean; calledWith(variables: any): boolean; calledOnceWith(variables: any): boolean; }