import { AnyMatcherOrData } from '../../types'; import { CascadingContextMatcher } from '../base'; /** * Adds an example to the provided matcher. Useful when you have a complicated * set of constraints and ContractCase can't figure out what the best example should be. * * Note that providing any example will override examples provided further down the tree. * @public */ export declare class WithExample extends CascadingContextMatcher { /** @internal */ readonly '_case:matcher:example': AnyMatcherOrData; /** * Adds an example to the provided matcher. Useful when you have a complicated * set of {@link matchers.convenience.And} constraints and ContractCase can't * figure out what the best example should be. * * Note that providing any example will override examples provided further down the tree. * * @param matcher - Any matcher to add an example to * @param example - The example to use when stripping the matchers */ constructor(matcher: AnyMatcherOrData, example: AnyMatcherOrData); /** * For non-TypeScript implementations (see `AnyMatcher.toJSON`) * * @privateRemarks * This comment and the implementation is boilerplate on all matchers to avoid * outputting duplicate unimportant documentation on all matcher classes of * the docs. Only modify this comment or the implementation via search and replace. */ toJSON(): unknown; } //# sourceMappingURL=WithExample.d.ts.map