import { AbstractType } from "./AbstractType"; import { MomentType } from "./MomentType"; import { Req, scalar } from "@huz-com/types"; import moment from "moment"; import { IsoDateTypeOption } from "./index.interfaces"; declare type T = scalar.IsoDate; declare type O = IsoDateTypeOption; export declare class IsoDateType extends AbstractType { protected static readonly _PATTERN: RegExp; protected static readonly _FORMAT = "yyyy-mm-dd"; protected static _ins: IsoDateType; protected _momentType: MomentType; /** * Returns skeleton instance * */ static ins(): IsoDateType; constructor(); /** * Checks is iso-date? */ 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 {};