declare module 'react-imask' { import IMask from 'imask'; // https://github.com/uNmAnNeR/imaskjs/blob/master/packages/react-imask/src/mixin.js export type IMaskInputProps = MaskOptions & { unmask?: boolean; value?: any; prepare?: (value: string) => string; validate?: (value: string, masked: IMask.Masked) => void; commit?: (value: string, masked: IMask.Masked) => void; overwrite?: boolean; onAccept?: (value: string, mask: IMask.InputMask) => void; onComplete?: (value: string, mask: IMask.InputMask) => void; } & React.InputHTMLAttributes; export function IMaskMixin( Component: React.ComponentType<{ inputRef: React.Ref } & TProps> ): React.ComponentType>; export function IMaskInput( props: IMaskInputProps ): JSX.Element; }