UNPKG

@pact-foundation/pact

Version:
12 lines (11 loc) 680 B
import type { ConsumerInteraction, ConsumerPact } from '@pact-foundation/pact-core'; import type { PactV4Options, V4InteractionWithRequest, V4InteractionWithResponse, V4ResponseBuilderFunc } from './types'; import type { StatusCodeMatcher } from '../../v3'; export declare class InteractionWithRequest implements V4InteractionWithRequest { private pact; private interaction; private opts; protected cleanupFn: () => void; constructor(pact: ConsumerPact, interaction: ConsumerInteraction, opts: PactV4Options, cleanupFn: () => void); willRespondWith(status: number | StatusCodeMatcher<number>, builder?: V4ResponseBuilderFunc): V4InteractionWithResponse; }