import { ApolloLink } from '@apollo/client';
import { Observer } from 'rxjs';
import type { RequestHandlerResponse } from './mockClient';
export interface IMockSubscription<TData = any> {
    next: (value: RequestHandlerResponse<TData>) => void;
    error: (errorValue: any) => void;
    complete: () => void;
}
export type MockSubscriptionOptions = {
    disableLogging?: boolean;
};
export declare class MockSubscription<TData = any> implements IMockSubscription<TData> {
    private observer?;
    private loggingDisabled;
    private isComplete;
    constructor(options?: MockSubscriptionOptions);
    subscribe(observer: Observer<ApolloLink.Result<TData>>): void;
    next(value: RequestHandlerResponse<TData>): void;
    error(errorValue: any): void;
    complete(): void;
    private verifyState;
}
export declare const createMockSubscription: <TData = any>(options?: MockSubscriptionOptions) => IMockSubscription<TData>;
