import React from "react"; import IMask from "imask"; import type { FactoryArg } from "imask"; import type { InputProps } from "../Input"; export { IMask }; export type MaskedInputProps = { maskOptions: FactoryArg; onAccept?: (value: string, unmaskedValue: string, typedValue: string) => void; onComplete?: (value: string, unmaskedValue: string, typedValue: string) => void; } & Omit; type UseMaskedInputArgs = { inputRef: React.RefObject; maskOptions: FactoryArg; value?: string | number | readonly string[]; onAccept?: (value: string, unmaskedValue: string, typedValue: string) => void; onComplete?: (value: string, unmaskedValue: string, typedValue: string) => void; }; export declare const useMaskedInput: ({ inputRef, maskOptions, value, onAccept, onComplete, }: UseMaskedInputArgs) => void; export declare const MaskedInput: React.ForwardRefExoticComponent<{ maskOptions: FactoryArg; onAccept?: (value: string, unmaskedValue: string, typedValue: string) => void; onComplete?: (value: string, unmaskedValue: string, typedValue: string) => void; } & Omit & React.RefAttributes>;