import type { IRawProperty } from '../property/IRawProperty.js'; import type { Parameters } from './configuration/Parameters.js'; import type { RunDetails } from './reporter/RunDetails.js'; import type { IAsyncProperty } from '../property/AsyncProperty.js'; import type { IProperty } from '../property/Property.js'; /** * Run the property, do not throw contrary to {@link assert} * * WARNING: Has to be awaited * * @param property - Asynchronous property to be checked * @param params - Optional parameters to customize the execution * * @returns Test status and other useful details * * @remarks Since 0.0.7 * @public */ declare function check(property: IAsyncProperty, params?: Parameters): Promise>; /** * Run the property, do not throw contrary to {@link assert} * * @param property - Synchronous property to be checked * @param params - Optional parameters to customize the execution * * @returns Test status and other useful details * * @remarks Since 0.0.1 * @public */ declare function check(property: IProperty, params?: Parameters): RunDetails; /** * Run the property, do not throw contrary to {@link assert} * * WARNING: Has to be awaited if the property is asynchronous * * @param property - Property to be checked * @param params - Optional parameters to customize the execution * * @returns Test status and other useful details * * @remarks Since 0.0.7 * @public */ declare function check(property: IRawProperty, params?: Parameters): Promise> | RunDetails; /** * Run the property, throw in case of failure * * It can be called directly from describe/it blocks of Mocha. * No meaningful results are produced in case of success. * * WARNING: Has to be awaited * * @param property - Asynchronous property to be checked * @param params - Optional parameters to customize the execution * * @remarks Since 0.0.7 * @public */ declare function assert(property: IAsyncProperty, params?: Parameters): Promise; /** * Run the property, throw in case of failure * * It can be called directly from describe/it blocks of Mocha. * No meaningful results are produced in case of success. * * @param property - Synchronous property to be checked * @param params - Optional parameters to customize the execution * * @remarks Since 0.0.1 * @public */ declare function assert(property: IProperty, params?: Parameters): void; /** * Run the property, throw in case of failure * * It can be called directly from describe/it blocks of Mocha. * No meaningful results are produced in case of success. * * WARNING: Returns a promise to be awaited if the property is asynchronous * * @param property - Synchronous or asynchronous property to be checked * @param params - Optional parameters to customize the execution * * @remarks Since 0.0.7 * @public */ declare function assert(property: IRawProperty, params?: Parameters): Promise | void; export { check, assert };