import { AbstractType } from "./AbstractType"; import { Req, scalar } from "@huz-com/types"; import { EnumTypeOption, EnumTypeValue, ScalarPairId } from "./index.interfaces"; declare type T = scalar.Alpha; export declare class EnumType extends AbstractType { protected static _ins: EnumType; protected static _SLUG_PATTERN: RegExp; protected _genericName: string; /** * Returns skeleton instance * */ static ins(): EnumType; constructor(); /** * Checks is digit? */ is(value: E | scalar.Unknown, opt?: EnumTypeOption, req?: Req): boolean; /** * Converts a value to digit */ cast(value: E | ScalarPairId | scalar.Unknown, opt?: EnumTypeOption, req?: Req): E | null; } export {};