import { Subscription } from 'rxjs';
export declare function fetch<T>(input: RequestInfo, init?: RequestInit): Promise<T>;
export declare class ResponseCodeError extends Error {
    readonly status: number;
    readonly errorType?: string;
    readonly errorMessage?: string;
    readonly body?: any;
    constructor(status: number, errorType?: string, errorMessage?: string, body?: any);
    static getMessage(err: any): string | undefined;
    static getMessage(err: any, defaultMessage: string): string;
}
export declare function observeHttpStatus(listener: (status: number) => void): Subscription;
