import type { CustomOptions, CustomValidate } from "../custom/index.ts"; /** * @credits * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex. * [Valibot](https://github.com/fabian-hiller/valibot/blob/c3de9371c2cfa4e126734ddf0e2ab1de98e8a6ef/library/src/regex.ts#L88C1-L92C86) */ export declare const ISO_DATE_TIME_REGEX: RegExp; /** * Determines if the input is an ISO date-time string. * * @param input The value to check. * @param validate Additional validation to run against the input if it is an ISO date-time string. Default is `undefined`. * @returns `true` if the input is an ISO date-time string, `false` otherwise. */ export declare function isIsoDateTime(input: unknown, validate?: CustomValidate): input is string; export type IsoDateTimeOptions = Omit, "typecheck">; /** * Verifies that the input is an ISO date-time string, and returns it. * If the input is not an ISO date-time string, the fallback value is returned. * * @param input The value to check. * @param fallback The value to return if the input is not an ISO date-time string. Default is `null`. * @returns The ISO date-time string value of the input, or the fallback if the input is not an ISO date-time string. */ export declare function isoDateTime(input: unknown, fallback: string, options?: IsoDateTimeOptions): string; export declare function isoDateTime(input: unknown, fallback?: string | null | undefined, options?: IsoDateTimeOptions): string | null;