UNPKG

@solfacil/girassol

Version:
19 lines (18 loc) 669 B
import { maska } from 'maska'; export declare const MaskPresets: { readonly CPF: "###.###.###-##"; readonly CNPJ: "##.###.###/####-##"; readonly CPF_CNPJ: readonly ["###.###.###-##", "##.###.###/####-##"]; readonly MobilePhoneDDD: "(##) # ####-####"; }; export type Mask = string | string[] | { preset: keyof typeof MaskPresets; mask?: string; tokens?: any; preprocessor?: (value: string) => string; }; export declare const vMask: typeof maska; export declare function useMask(maskProp?: Mask): { vMask: typeof maska; maskValue: import("vue").ComputedRef<readonly ["###.###.###-##", "##.###.###/####-##"] | Mask | undefined>; };