import { ReactMaskProps } from 'react-imask'; import { FactoryOpts, InputMask } from 'imask'; import { InputMaskProps } from '../../InputMask'; export declare function useMask({ maskOptions, externalValue, name, onChange, onComplete, viewOnly, }: { maskOptions: FactoryOpts; externalValue: string | number | Date | null | undefined; name?: string; onChange?: InputMaskProps['onChange']; onComplete?: ReactMaskProps['onComplete']; viewOnly?: boolean; }): { ref: import("react").MutableRefObject; maskRef: import("react").MutableRefObject | null>; value: InputMask["value"]; setValue: import("react").Dispatch["value"]>; unmaskedValue: InputMask["unmaskedValue"]; setUnmaskedValue: import("react").Dispatch["unmaskedValue"]>; typedValue: any; setTypedValue: import("react").Dispatch; };