import "../../_dnt.polyfills.js"; import "./init.js"; /** Public API contract for error class. */ type ErrorClass = new (...args: any[]) => Error; /** Assert that two values are deeply equal. */ export declare function assertEquals(actual: T, expected: T, msg?: string): void; /** Assert that two values are not deeply equal. */ export declare function assertNotEquals(actual: T, expected: T, msg?: string): void; /** Assert that two values are strictly equal. */ export declare function assertStrictEquals(actual: T, expected: T, msg?: string): void; /** Assert that a value is truthy. */ export declare function assert(expr: unknown, msg?: string): asserts expr; /** Assert that a value is not null or undefined. */ export declare function assertExists(actual: T, msg?: string): asserts actual is NonNullable; /** Assert that a synchronous function throws. */ export declare function assertThrows(fn: () => unknown, errorClassOrMsg?: ErrorClass | string, msgIncludesOrMsg?: string, msg?: string): unknown; /** Assert that an async function rejects, returning the rejection reason. */ export declare function assertRejects(fn: () => Promise, errorClassOrMsg?: ErrorClass | string, msgIncludesOrMsg?: string, msg?: string): Promise; /** Assert that a string contains another string. */ export declare function assertStringIncludes(actual: string, expected: string, msg?: string): void; /** Assert that a string matches a regular expression. */ export declare function assertMatch(actual: string, expected: RegExp, msg?: string): void; /** Assert that a value is an instance of a constructor. */ export declare function assertInstanceOf(actual: unknown, expectedType: abstract new (...args: any[]) => T, msg?: string): asserts actual is T; /** Fail the current assertion immediately. */ export declare function fail(msg?: string): never; /** Assert that two values are not strictly equal. */ export declare function assertNotStrictEquals(actual: T, expected: T, msg?: string): void; /** Assert that an object contains matching properties. */ export declare function assertObjectMatch(actual: Record, expected: Record, msg?: string): void; /** Assert that a number is greater than another number. */ export declare function assertGreater(actual: number, expected: number, msg?: string): void; /** Assert that a number is greater than or equal to another number. */ export declare function assertGreaterOrEqual(actual: number, expected: number, msg?: string): void; /** Assert that a number is less than another number. */ export declare function assertLess(actual: number, expected: number, msg?: string): void; /** Assert that a number is less than or equal to another number. */ export declare function assertLessOrEqual(actual: number, expected: number, msg?: string): void; export {}; //# sourceMappingURL=assert.d.ts.map