import React from 'react'; import { FormatParsedPayload, Mask, ParseInput } from './useMasked'; import { TextFieldProps } from '../TextField'; export * from './useMasked'; export type GetMask = (input: string) => Mask; export interface MaskedFieldProps extends Omit { /** * Field value */ readonly value: string | null; /** * An array of RegExp or a function that returns an array of RegExp */ readonly mask: Mask | GetMask; /** * Function will be called when field value was changed */ readonly onChange: (payload: FormatParsedPayload) => void; /** * If you are not using a simple mask, you can provide a function to analyze the input value */ readonly parseInput?: ParseInput; /** * You can transform the output value before using it */ readonly transform?: (value: string) => string; } declare const _default: React.ForwardRefExoticComponent>; export default _default;