import { WdioAsymmetricMatchers } from '../matchers/asymmetrics/asymmetricsUtils.js'; import type { StringOptions } from '../publicTypes/options.js'; import type { AsymmetricMatcher, JasmineAsymmetricMatcher } from '../publicTypes/expectWebdriverIO.js'; type ExpectedLeaf = string | RegExp | AsymmetricMatcher | JasmineAsymmetricMatcher; /** * An expected value in a failure message, with the string options and the verdict of the matcher for its element or * instance. It is only for the message: the matcher compared before, with its own comparison (each class, `asString`...). * - `toAsymmetricMatcher()` prints the value with the non-default string options, e.g. `ignoringCase<"Foo">`, or as before * with the default options only (`"Foo"`). * - `asymmetricMatch()` gives the verdict and never compares again, so Jest's diff shows an element that passed as no * difference, and a sticky or global RegExp is not tested a second time. */ export declare class StringOptionsMatcher extends WdioAsymmetricMatchers { private readonly options; private readonly verdict; private readonly actual?; /** `actual`: the actual value of the element or instance, to name `trimmed` only when the default `trim` changed it */ constructor(sample: ExpectedLeaf, options: StringOptions, verdict: boolean, actual?: unknown); asymmetricMatch(): boolean; toAsymmetricMatcher(): string; } /** * The expected value of a failure message, where each string, RegExp or asymmetric matcher gets the string options and * the verdict of its element or instance. `verdict` has the shape of the actual value: a boolean for one element or * browser, an array for `$$()`, and per-instance values for multi-remote. Without a verdict (e.g. a structural failure), * the expected value does not change, except when there is no actual value (`noElementVerdict()`). */ export declare const withStringOptions: (expected: unknown, verdict: unknown, options: StringOptions | undefined, actual?: unknown) => unknown; export {};