/// <reference types="angular-mocks" />
import type { IHttpInterceptor, IHttpPromiseCallbackArg, IQService, ITimeoutService, IWindowService } from 'angular';
/**
 * Handles two scenarios:
 *   1. computer loses network connection (retries connections when network returns)
 *   2. requests are aborted due to a network change (retries immediately)
 */
export declare class NetworkInterceptor implements IHttpInterceptor {
    private $q;
    private $window;
    private $timeout;
    private $injector;
    private networkAvailable;
    private retryQueue;
    private MAX_RETRIES;
    static $inject: string[];
    constructor($q: IQService, $window: IWindowService, $timeout: ITimeoutService, $injector: any);
    private handleOffline;
    private handleOnline;
    private resetNetworkAvailable;
    private removeFromQueue;
    responseError: <T>(response: IHttpPromiseCallbackArg<T>) => PromiseLike<T>;
}
export declare const NETWORK_INTERCEPTOR = "spinnaker.core.network.interceptor";
