/** * Never validation core module * Provides a validator that fails for every input, useful for marking * positions in a schema that must never be filled (for example, exhaustive * union members that should be unreachable at the type level). */ import { type StandardSchemaV1 } from "../../Validate/standardSchema"; /** * Return type produced by a `never` validator. Exposes the literal `"never"` * tag through the `type` field so `ValidateType<"never">` can map it back to * the `never` runtime type when consumed by downstream helpers. */ export interface NeverReturnType { validate: boolean; message: string; type: "never"; } /** * Creates a validator that always fails * @param {string} [message] - Custom error message for validation failure * @returns {Function} - Validator that always returns a failing result */ export declare const never: (message?: string) => ((value: any) => NeverReturnType) & StandardSchemaV1;