import { HttpClient } from '@angular/common/http'; import { CyHttpMessages } from 'cypress/types/net-stubbing'; import { Observable } from 'rxjs'; import { AbstractEndpoint, Endpoint } from './endpoint'; import { Headers, RouteConfig } from './routing'; import { SpyHttpClient } from './spy-http-client'; /** * A client with a list of endpoints. * Can be used to implement your own specific client that is not based on a generated client. */ export declare abstract class AbstractClientStub { name: string; abstract endpoints: { [endpointName: string]: AbstractEndpoint | AbstractEndpoint; }; protected constructor(name: string); /** * Automatically affect the name of each endpoint */ init(): this; get allDefaultConfigs(): RouteConfig[]; } /** * A client with endpoints based on generated client's endpoints */ export declare abstract class ClientStub extends AbstractClientStub { protected readonly spyHttpClient: SpyHttpClient; protected readonly client: C; protected constructor(clientConstructor: new (http: HttpClient, baseUrl?: string) => C); protected createEndpoint(actualEndpoint: (...otherParams: IN) => Observable, status: number, fixtureOrFixtureBuilder: OUT | ((req: CyHttpMessages.IncomingHttpRequest) => OUT), headers?: Headers): Endpoint; }