import type { JSX } from 'preact'; import type { NestedErrorState, NestedValidState } from '../useMultiForm/types'; import type { TFunction } from '../../../types'; import type { CountryCode } from '../../types/datasets/country-code'; import type { FormUtils } from '../../utils/formUtils'; import type { ValidatorMode } from '../../utils/validation/types'; interface UseLegalCompanyNameFieldProps { data: FormSchema; valid: NestedValidState; errors: NestedErrorState; fieldProblems: NestedValidState; country: CountryCode; formUtils: FormUtils; handleChange: (key: keyof FormSchema, mode?: ValidatorMode) => (e: any) => void; t: TFunction<'business' | 'trust'>; } export declare function useLegalCompanyNameField({ data, valid, errors, fieldProblems, country, formUtils, handleChange, t, }: UseLegalCompanyNameFieldProps): ({ name: string; value: string; readonly: boolean; onInput: (e: any) => void; onBlur: (e: any) => void; isValid: NestedValidState[keyof FormSchema]; errorMessage: Record[keyof FormSchema]; label: Partial>[keyof FormSchema]; guidance: string | undefined; onKeyDown: (e: JSX.TargetedKeyboardEvent) => void; transformInput: Partial string>>[keyof FormSchema]; transformMode: Partial>[keyof FormSchema]; } | undefined)[]; export {};