import { Matcher } from './Matcher'; import { MatchResult } from './MatchResult'; import { Method } from './MethodMatcher'; import { RegExpExecGroupArray } from './RegExpUrlMatcher'; export interface EndpointMatcherInput { req: { url: string; method: string; }; } export declare type EndpointMatchResult = MatchResult<{ method: Method; match: RegExpExecGroupArray; }>; /** * higher order matcher which is combine matching of method * with regular expression */ export declare class EndpointMatcher implements Matcher, P> { private readonly matcher; constructor(methods: Method | Method[], url: RegExp); match(params: EndpointMatcherInput): EndpointMatchResult; }