import { IRunTestCallback } from './boundary/IRunTestCallback'; import { ILogPrinter, IResultPrinter, ContractCaseBoundaryConfig, BoundaryResult } from './boundary'; /** * A BoundaryContractDefiner allows verifying contracts * * @public */ export declare class BoundaryContractVerifier { private verifier; private readonly constructorConfig; private readonly callback; private readonly logPrinter; private readonly resultPrinter; private readonly parentVersions; /** * Construct a BoundaryContractVerifier to allow verifying pre-written contracts. * * @param config - A ContractCaseBoundaryConfig object for the configuration * @param IRunTestCallback - The callback to tell the test runner that it is running a test * @param logPrinter - An ILogPrinter to enable printing logs * @param resultPrinter - An IResultPrinter to enable printing results * @param parentVersions - The names version(s) of the package(s) calling * this, where each entry in the array contains a name and version, with the * first entry in the array being the furthest package up the call stack. */ constructor(config: ContractCaseBoundaryConfig, callback: IRunTestCallback, logPrinter: ILogPrinter, resultPrinter: IResultPrinter, parentVersions: string[]); private initialiseVerifier; /** * Returns a description of all of the contracts that can be found by the configuration. * * @returns either a `BoundaryFailure`, or a `BoundarySuccessWithAny` which contains an array of: * ``` * CaseContractDescription { * consumerName: string; * providerName: string; * } * ``` */ availableContractDescriptions(): BoundaryResult; /** * Run the verification of the contract(s) that can be found using the configuration provided. * If you want to filter the contract(s), use the configOverrides to specify a Consumer or Provider name. * * @param configOverrides - A `ContractCaseBoundaryConfig` that defines any config options to override (after the ones provided in the constructor are applied) * * @returns `BoundarySuccess` if verification was successful, otherwise a `BoundaryFailure` */ runVerification(configOverrides: ContractCaseBoundaryConfig): BoundaryResult; } //# sourceMappingURL=BoundaryContractVerifier.d.ts.map