import { AnyMatcher } from './AnyMatcher'; import { AnyMatcherOrData } from '../../types'; /** * This is a passthrough matcher that does nothing except call the child matcher * with the current actual data. * * It's useful for taking advantage of the context cascading available on all * matchers without needing to write you own matcher. Extend it if you want to * make a matcher that only changes the context object. If you don't know what * this means, you don't need to extend this matcher. * * Due to limitations with JSii, extending implementations MUST NOT override * `toJSON`, or MUST return the result of `super.toJSON()` as part of their * toJSON method. * @public */ export declare abstract class CascadingContextMatcher extends AnyMatcher { /** @internal */ readonly '_case:matcher:type': string; /** @internal */ readonly '_case:matcher:child': AnyMatcherOrData; private readonly contextModifiers; private readonly currentRunModifiers; /** * This is a passthrough matcher that does nothing except call the child matcher * with the current actual data. * * It's useful for taking advantage of the context cascading available on all * matchers without needing to write you own matcher. Extend it if you want to * make a matcher that only changes the context object. If you don't know what * this means, you don't need to extend this matcher. * * Due to limitations with JSii, extending implementations MUST NOT override * `toJSON`, or MUST return the result of `super.toJSON()` as part of their * toJSON method. * * @param child - The matcher to apply these context changes to * @param contextModifiers - a map of properties to add to the context object * @param currentRunModifiers - a map of properties to add to the current run object. */ constructor(child: AnyMatcherOrData, contextModifiers: Record, currentRunModifiers: Record); /** * If extending this class, do not override this method (or if you do, make * sure you call `super.toJSON()`). * */ toJSON(): unknown; } //# sourceMappingURL=CascadingContextMatcher.d.ts.map