import { TextInputMask, TextInputMaskProps } from 'react-native-masked-text'

/**
 * Re-exported with a looser type because `react-native-masked-text` does not forward refs in its public typings; the cast to `ForwardRefExoticComponent` lets callers attach a ref to read the raw (unmasked) value via `.getRawValue()` — without the ref the only value accessible is the formatted display string.
 */
export const MaskedTextInput = TextInputMask as unknown as React.ForwardRefExoticComponent<Partial<TextInputMaskProps> & {
    ref?: any
}>

export * from './types/textInputMask'
