import { IValidation } from "@typia/interface"; /** * Create the reporter that validation functions use to collect errors. * * The returned function keeps an error only when it is exceptionable and its * path is neither an ancestor nor a descendant of the last kept path, so a * failing leaf is not also reported as every enclosing value. An undefined * value gets a default description when none was supplied. Kept errors retain * their original references, and filling that description updates the error. It * always returns false so emitted code can return it directly. * * @evidence contracts/common.md#principled-implementation The reporter pushes the original error onto the list only when it is exceptionable and its path is neither an ancestor nor a descendant of the last pushed one, so a failing leaf is not also reported as every enclosing value. For an undefined value it fills a missing description while preserving supplied text; it always returns false so emitted code can return it directly. * @evidence contracts/common.md#clear-and-simple-design One closure with two private predicates. * @evidence contracts/common.md#prohibited-implementation-shortcuts The suppression is path-based and general. * @evidence contracts/common.md#meaningful-documentation A comment states the suppression and the false result. */ export declare const _validateReport: (array: IValidation.IError[]) => (exceptable: boolean, error: IValidation.IError) => false;