import { type InputMask, type InputMaskElement, type FactoryOpts } from 'imask'; import { Dispatch } from 'react'; import type { MutableRefObject } from 'react'; export default function useIMask(opts: Opts, { onAccept, onComplete, ref, defaultValue, defaultUnmaskedValue, defaultTypedValue, }?: { ref?: MutableRefObject; onAccept?: (value: InputMask['value'], maskRef: InputMask, e?: InputEvent) => void; onComplete?: (value: InputMask['value'], maskRef: InputMask, e?: InputEvent) => void; defaultValue?: InputMask['value']; defaultUnmaskedValue?: InputMask['unmaskedValue']; defaultTypedValue?: InputMask['typedValue']; }): { ref: MutableRefObject; maskRef: MutableRefObject | null>; value: InputMask['value']; setValue: Dispatch['value']>; unmaskedValue: InputMask['unmaskedValue']; setUnmaskedValue: Dispatch['unmaskedValue']>; typedValue: InputMask['typedValue']; setTypedValue: Dispatch['typedValue']>; }; //# sourceMappingURL=hook.d.ts.map