import { InputRef } from 'antd'; import { RefCallback } from 'react'; import { FieldValues, RegisterOptions, UseFormRegister, Path } from 'react-hook-form'; import { a as UseHookFormMaskReturn, M as Mask, O as Options, c as UnmaskedValueApi } from './index-D8KkaDbQ.cjs'; type UseHookFormMaskAntdReturn = Omit, 'ref'> & { ref: RefCallback; }; /** * Ant Design version of useHookFormMask. * Creates a masked register that works with Ant Design Input (ref receives InputRef). * * @template T - The form data type * @template D - The register options type * @param registerFn - The register function from useForm hook * @returns A function that registers a field with mask support for Ant Design Input */ declare function useHookFormMaskAntd(registerFn: UseFormRegister): ((fieldName: Path, mask: Mask, options?: (D & Options) | Options | D) => UseHookFormMaskAntdReturn); type UseMaskInputAntdReturn = ((input: InputRef | null) => void) & UnmaskedValueApi; interface UseMaskInputOptions { mask: Mask; register?: (element: HTMLElement) => void; options?: Options; } /** * React hook for applying input masks to Ant Design form elements. * * @param props - Configuration object * @param props.mask - The mask pattern to apply * @param props.register - Optional callback that receives the element * @param props.options - Optional mask configuration options * @returns A ref callback function to attach to the Ant Design Input element */ declare function useMaskInputAntd(props: UseMaskInputOptions): UseMaskInputAntdReturn; export { type UseHookFormMaskAntdReturn, useHookFormMaskAntd, useMaskInputAntd };