import { type FixDeepFunctionInfer, type NeverCoalescing } from "../../../common"; import { type DataParserDefinition } from "../../base"; import { type DataParserError, type SymbolDataParserError } from "../../../dataParser/error"; import { type DataParserChecker } from "../../baseChecker"; import { type ApplyRefinementOfDefinition, type GetEligibleChecker, type AddCheckersToDefinition, type MergeDefinition, type Output, type PrepareDataParserDefinition } from "../../types"; export * from "./checkers"; export type DataParserBigIntCheckers = GetEligibleChecker; export interface DataParserDefinitionBigInt extends DataParserDefinition { readonly coerce: boolean; } export declare const bigIntKind: import("../../../common").KindHandler>; declare const DataParserBigInt_base: import("../..").DataParserBaseInit>>; export declare class DataParserBigInt extends DataParserBigInt_base, ApplyRefinementOfDefinition> { get classConstructor(): typeof DataParserBigInt & import("../..").CheckedConstructorKind; addChecker: >, ...DataParserChecker>[] ]>(...args: FixDeepFunctionInfer>, ...DataParserChecker>[] ], GenericChecker>) => DataParserBigInt>; static execParse(self: DataParserBigInt, data: unknown, error: DataParserError): (bigint | typeof SymbolDataParserError); static dataParserIsAsynchronous(self: DataParserBigInt): boolean; static prepareDefinition(definition?: Partial): DataParserDefinitionBigInt; /** * Creates a data parser for bigint values. * * **Supported call styles:** * - Classic: `DP.bigint(definition?)` -> returns a bigint parser * - Curried: not available * * Validates that the input is a bigint, optionally applies coerce, and runs the configured checkers. * * ```ts * const parser = DP.bigint(); * const result = parser.parse(BigInt(42)); * if (E.isRight(result)) { * const value = unwrap(result); * // value: bigint * } * * const withCheckers = DP.bigint({ * checkers: [DP.checkerBigIntMin(BigInt(1)), DP.checkerBigIntMax(BigInt(10))], * }); * * const coerceParser = DP.coerce.bigint(); * const coerceResult = coerceParser.parse("42"); * ``` * * @see https://utils.duplojs.dev/en/v1/api/dataParser/bigint * * @namespace DP * */ static create = never>(definition?: FixDeepFunctionInfer, GenericDefinition>): DataParserBigInt>>; } /** * Creates a data parser for bigint values. * * **Supported call styles:** * - Classic: `DP.bigint(definition?)` -> returns a bigint parser * - Curried: not available * * Validates that the input is a bigint, optionally applies coerce, and runs the configured checkers. * * ```ts * const parser = DP.bigint(); * const result = parser.parse(BigInt(42)); * if (E.isRight(result)) { * const value = unwrap(result); * // value: bigint * } * * const withCheckers = DP.bigint({ * checkers: [DP.checkerBigIntMin(BigInt(1)), DP.checkerBigIntMax(BigInt(10))], * }); * * const coerceParser = DP.coerce.bigint(); * const coerceResult = coerceParser.parse("42"); * ``` * * @see https://utils.duplojs.dev/en/v1/api/dataParser/bigint * * @namespace DP * */ export declare const bigint: typeof DataParserBigInt.create;