import React from 'react'; import { ReactMaskProps } from 'react-imask'; import { FactoryOpts, InputElement } from 'imask'; import { InputProps } from '../Input'; import { OnChangeHandler, Pretty } from '../Utils'; export type InputMaskEventType = InputEvent | undefined; export interface InputMaskEventOptionsType { name?: string; isComplete: boolean; unmaskedValue?: unknown; } export type InputMaskOnChangeType = OnChangeHandler; export interface InputMaskProps extends Omit, Partial, 'onComplete'>> { maskOptions: Opts; value?: string | number | Date | null; readOnly?: boolean; onChange?: InputMaskOnChangeType; } export declare namespace InputMask { type onChange = Pretty.Func; } export declare const InputMask: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; export default InputMask;