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