/** * BigInt validation core module * Provides the base validation functionality for bigint values */ import { type StandardSchemaV1 } from "../../Validate/standardSchema"; import type { ValidateReturnType } from "../../Validate/type"; /** * Return type produced by a `bigint` validator. Structurally compatible with * `ValidateCoreReturnType`, but exposes the literal `"bigint"` tag * through the `type` field so `ValidateType<"bigint">` can map it back to the * `bigint` runtime type when consumed by `object()`, `union()`, and friends. */ export interface BigIntReturnType { validate: boolean; message: string; type: "bigint"; } /** * Creates a bigint validator with optional validation rules * @template T - Array of validation rules for bigints * @param {T} [option] - Array of validation functions to apply * @param {string} [message] - Custom error message for type validation * @returns {Function} - Validator function that checks if the value is a bigint and applies validation rules */ export declare const bigint: []>(option?: T, message?: string) => ((value: bigint) => BigIntReturnType) & StandardSchemaV1;