unmock-core
Version:
[][npmjs] [](https://circleci.com/gh/unmock/unmock-js) [](h
17 lines • 777 B
TypeScript
import { ISerializedRequest } from "../interfaces";
import { HTTPMethod, IService, IServiceInput, IStateInput, MatcherResponse, OpenAPIObject } from "./interfaces";
export declare class Service implements IService {
readonly name: string;
private hasPaths;
private readonly oasSchema;
private readonly matcher;
private readonly state;
constructor(opts: IServiceInput);
readonly schema: OpenAPIObject;
readonly hasDefinedPaths: boolean;
match(sreq: ISerializedRequest): MatcherResponse;
resetState(): void;
updateState(stateInput: IStateInput): void;
getState(method: HTTPMethod, endpoint: string): Record<string, Record<string, import("loas3/dist/src/generated/full").Schema>> | undefined;
}
//# sourceMappingURL=service.d.ts.map