import { AbstractType } from "./AbstractType"; import { MomentType } from "./MomentType"; import { Req, scalar } from "@huz-com/types"; import moment from "moment"; import { IsoDatetimeTypeOption } from "./index.interfaces"; declare type T = scalar.IsoDatetime; declare type O = IsoDatetimeTypeOption; export declare class IsoDatetimeType extends AbstractType { protected static readonly _PATTERN: RegExp; protected static readonly _FORMAT = "yyyy-mm-ddThh:ii:ss.eeeZ"; protected static _ins: IsoDatetimeType; protected _momentType: MomentType; /** * Returns skeleton instance * */ static ins(): IsoDatetimeType; constructor(); /** * Checks is iso-datetime? */ is(value: scalar.Unknown, opt?: O, req?: Req): boolean; protected _format(value: moment.Moment): scalar.DatetimeStr; /** * Converts a value to formatted iso datetime */ cast(value: scalar.Unknown, opt?: O, req?: Req): T | null; } export {};