import { AbstractType } from "./AbstractType"; import { IntType } from "./IntType"; import { Req, scalar } from "@huz-com/types"; import { DateTypeOption } from "./index.interfaces"; import { CastInner } from "@huz-com/primitive/dist/index.interfaces"; declare type T = Date; declare type O = DateTypeOption; export declare class DateType extends AbstractType { protected static readonly _PATTERN: RegExp; protected static _ins: DateType; protected _intType: IntType; /** * Returns skeleton instance * */ static ins(): DateType; constructor(); /** * Checks is datetime? */ is(value: scalar.Unknown, opt?: O, req?: Req): boolean; getObject(value: scalar.Unknown): CastInner; /** * Converts a value to date */ cast(value: scalar.Unknown, opt?: O, req?: Req): T | null; } export {};