import { Injector } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
export interface HttpErrorHandlerConfig {
    /**
     * The list of routes, from specific to generic. The first matching one is handled.
     */
    routes: HttpErrorRouteConfig[];
}
export interface HttpErrorRouteConfig {
    /**
     * The path to match against, a URL string that uses router matching notation. Can include wildcard characters (*).
     */
    path: string;
    /**
     * Default behaviour, if error status code does not match
     */
    default?: HttpErrorCallbackFn | string | null;
    /**
     * What to do in case of an error status code.
     * if callback function, call it
     * if it's string, redirect the router to it
     * if null, do nothing
     */
    [key: number]: HttpErrorCallbackFn | string | null;
}
export type HttpErrorCallbackFn = (error: HttpErrorResponse, injector: Injector) => void;
//# sourceMappingURL=http-error-handler.config.d.ts.map