import type { Control } from '../../Control.js'; declare module '../../expect.js' { interface Validators { /** * Asserts that a string, array or object with a `length` property has a * specific length. * * If you want to match a nested value, use the matcher * `expect.length(length)` instead. * * @param length - The expected length. Can be a matcher. * * @example * ```ts * expect('abcdef').toHaveLength(6) * expect([1, 2, 3]).toHaveLength(expect.greaterThan(2)) * * expect({ length: 5 }).not.toHaveLength(4) * ``` */ toHaveLength(this: Validators, length: number): void; } } export declare function toHaveLength(control: Control, expected: number): void; //# sourceMappingURL=toHaveLength.d.ts.map