import { Stream } from '../streaming';
import { FinalRequestOptions, CrossPlatformResponse } from '../types';
import { APIResponseProps } from '../types/API';
export type APIResponse<T> = {
    data?: T;
    response: CrossPlatformResponse;
};
export declare abstract class BaseFetch {
    abstract call(url: string, options: FinalRequestOptions): Promise<CrossPlatformResponse>;
    handleResponse<T>({ response, options }: APIResponseProps): Promise<any>;
    abstract handleStream<T>(response: CrossPlatformResponse): Stream<T>;
}
