import { type FixDeepFunctionInfer, type NeverCoalescing } from "../../common"; import { type AddCheckersToDefinition, type Output, type MergeDefinition, type PrepareDataParserDefinition, type Input } from "../types"; import * as dataParsers from "../parsers"; import { type DataParserChecker } from "../baseChecker"; declare const DataParserDateExtended_base: import("..").DataParserExtendedBaseInit; export declare class DataParserDateExtended extends DataParserDateExtended_base>, Input>> { get classConstructor(): typeof DataParserDateExtended & import("..").CheckedConstructorKind; addChecker: >, ...DataParserChecker>[] ]>(...args: FixDeepFunctionInfer>, ...DataParserChecker>[] ], GenericChecker>) => DataParserDateExtended>; refine: (theFunction: (input: Output) => boolean, definition?: Partial>) => DataParserDateExtended>]>>; /** * Creates an extended parser for `TheDate`. * * Signature: `DPE.date(definition?)` → `DataParserDateExtended` * * This parser extends classic `DP.date(...)` behavior and keeps the extended chainable base API (`nullable`, `optional`, `pipe`, `transform`, etc.). * * ```ts * const parser = DPE.date(); * const result = parser.parse("date0+"); * if (E.isRight(result)) { * const value = unwrap(result); * // value: TheDate * } * * const coerceParser = DPE.coerce.date(); * const coerceResult = coerceParser.parse("2024-01-01T00:00:00.000Z"); * // coerceResult: E.Error | E.Success * * const nullableDate = DPE.date().nullable(); * const nullableResult = nullableDate.parse(null); * // nullableResult: E.Error | E.Success * ``` * * @remarks * - Parsed output is always `TheDate`. * - `DPE.coerce.date()` enables coercion by default. * * @see https://utils.duplojs.dev/en/v1/api/dataParser/date * * @namespace DPE * */ static create = never>(definition?: FixDeepFunctionInfer, GenericDefinition>): DataParserDateExtended>>; } /** * Creates an extended parser for `TheDate`. * * Signature: `DPE.date(definition?)` → `DataParserDateExtended` * * This parser extends classic `DP.date(...)` behavior and keeps the extended chainable base API (`nullable`, `optional`, `pipe`, `transform`, etc.). * * ```ts * const parser = DPE.date(); * const result = parser.parse("date0+"); * if (E.isRight(result)) { * const value = unwrap(result); * // value: TheDate * } * * const coerceParser = DPE.coerce.date(); * const coerceResult = coerceParser.parse("2024-01-01T00:00:00.000Z"); * // coerceResult: E.Error | E.Success * * const nullableDate = DPE.date().nullable(); * const nullableResult = nullableDate.parse(null); * // nullableResult: E.Error | E.Success * ``` * * @remarks * - Parsed output is always `TheDate`. * - `DPE.coerce.date()` enables coercion by default. * * @see https://utils.duplojs.dev/en/v1/api/dataParser/date * * @namespace DPE * */ export declare const date: typeof DataParserDateExtended.create; export {};