import { HttpClient, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Method, RouteWithOriginalUrl } from './routing'; export declare function urlRegex(urlForRegexp: string): RegExp; /** * Fake HttpClient to spy on caller and get URL that is called on request */ export declare class SpyHttpClient extends HttpClient { static readonly placeholders: { [placeholder: string]: string; }; lastRequestedRoute: RouteWithOriginalUrl; urlModifier: (url: string) => string | RegExp; constructor(); /** * Instead of executing the request, will detect the URL and store it * @param method * @param url */ request(method: Method, url: string): Observable>; static addPlaceholder(paramName: string): string; /** * Get the "placeholder" for a specific parameter. * Example: "advertiserId" => "XXXADVERTISERIDXXX" * @param paramName */ static getParameterPlaceholder(paramName: string): string; }