import { HttpClientResponse } from "./HttpClientRepository"; export declare class CancelableResponse { cancel: Canceler; response: () => Promise>; constructor(cancel: Canceler, response: () => Promise>); static build(options: { cancel?: Canceler; response: () => Promise>; }): CancelableResponse; getData(): Promise; map(mapper: (response: HttpClientResponse) => MappedData): CancelableResponse; flatMap(mapper: (response: HttpClientResponse) => CancelableResponse): CancelableResponse; } export declare type Canceler = (message?: string) => void; export declare function isCancel(error: any): any;