interface InputMaskOptions { mask: string; maskChar?: string; validChars?: RegExp; } type IMaskInputOnInput = { name: string; value: string; mask: InputMask; updateValue: (value?: string) => string; }; declare class InputMask { private options; constructor(options: InputMaskOptions); isRegexMask(): boolean; apply(value: string): string; updateOptions(options: InputMaskOptions): void; } declare function maskInput(inputElement: HTMLInputElement, options: InputMaskOptions & { onInput?: (payload: IMaskInputOnInput) => void; }): { mask: InputMask; updateValue: (val?: string) => string; destroy: () => void; }; export { maskInput, InputMask, type InputMaskOptions, type IMaskInputOnInput };