import { type SchemaBase } from "../schema.js"; /** * When catching errors, you can use something like `error instanceof CheckError` to determine if * the error is from a failed call to `check`. */ export declare class CheckError extends TypeError { } /** * @param x The value to check * @param schema The schema to check against * @throws {CheckError} when the provided value does not match the schema */ export declare function check(x: unknown, schema: SchemaBase): asserts x is T; export { check as guard };