@pact-foundation/pact
Version:
Pact for all things Javascript
12 lines (11 loc) • 722 B
TypeScript
import type { ConsumerInteraction, ConsumerPact } from '@pact-foundation/pact-core';
import type { PactV4Options, V4InteractionWithPluginRequest, V4InteractionWithPluginResponse, V4PluginResponseBuilderFunc } from './types';
import type { StatusCodeMatcher } from '../../v3';
export declare class InteractionWithPluginRequest implements V4InteractionWithPluginRequest {
private pact;
private interaction;
private opts;
protected cleanupFn: () => void;
constructor(pact: ConsumerPact, interaction: ConsumerInteraction, opts: PactV4Options, cleanupFn: () => void);
willRespondWith(status: number | StatusCodeMatcher<number>, builder?: V4PluginResponseBuilderFunc): V4InteractionWithPluginResponse;
}