import { AbstractType } from "./AbstractType"; import { Req, scalar } from "@huz-com/types"; import { DigitTypeOption } from "./index.interfaces"; declare type T = scalar.Digit; declare type O = DigitTypeOption; export declare class DigitType extends AbstractType { protected static readonly _PATTERN: RegExp; protected static _ins: DigitType; /** * Returns skeleton instance * */ static ins(): DigitType; constructor(); /** * Checks is digit? */ is(value: scalar.Unknown, opt?: O, req?: Req): boolean; /** * Converts a value to digit */ cast(value: scalar.Unknown, opt?: O, req?: Req): T | null; } export {};