import type { JSX } from 'preact'; import type { NestedErrorState, NestedValidState } from '../useMultiForm/types.d.ts'; import type { TFunction } from '../../language/types.d.ts'; import type { CountryCode } from '../../types/datasets/country-code.d.ts'; import type { FormUtils } from '../../utils/formUtils.d.ts'; import type { ValidatorMode } from '../../utils/validation/types.d.ts'; 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' | 'globalEntry'>; } 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: string; guidance: string | undefined; onKeyDown: (e: JSX.TargetedKeyboardEvent) => void; transformInput: Partial string>>[keyof FormSchema]; transformMode: Partial>[keyof FormSchema]; } | undefined)[]; export {};