/** * @license * Copyright 2022 Open Ag Data Alliance * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ import type { ErrorObject } from "ajv"; /** * Type for the `is` functions of @oada/types types */ export type TypeCheck = (value: unknown) => value is T; /** * Type for the `assert` functions of @oada/types types */ export type TypeAssert = (value: unknown) => asserts value is T; export declare class AssertError extends TypeError { readonly input: T; readonly errors: readonly ErrorObject[]; constructor(input: T, errors: readonly ErrorObject[]); }