import { AddressUpdatableInfo } from '../../addressView/addressViewState'; import { CompanyDetailsLocalData, CompanyOfficerLocalData } from './setupViewState'; import { ExtendCertificateOfIncorporationParsed, ExtendDrivingLicenseParsed, ExtendPassportParsed, ExtendSsnCardParsed, ExtendTaxEinParsed } from './types/kycKybAutofill'; export interface AutofillResult { autoFilledFieldNames: (keyof TLocalData & string)[]; values: Partial; } /** * Officer mappers may additionally produce an address (driving license only). * The officer's address lives in the `addressView` slice — not in * `CompanyOfficerLocalData` — so it is returned separately and the consuming * epic dispatches `newAddressInLocalStore` for it. The synthetic field name * `'officerAddress'` is appended to `autoFilledFieldNames` so the form section * shows the ✦ badge next to the address field. */ export interface OfficerAutofillResult extends AutofillResult { address?: AddressUpdatableInfo; } export declare const OFFICER_ADDRESS_AUTOFILL_FIELD = "officerAddress"; /** Passport → Company Officer. */ export declare const mapPassportToOfficer: (parsed: ExtendPassportParsed) => AutofillResult; /** Driving License → Company Officer (name, DOB, and home address). */ export declare const mapDrivingLicenseToOfficer: (parsed: ExtendDrivingLicenseParsed) => OfficerAutofillResult; /** SSN Card → Company Officer (name only — SSN value not yet returned by parser). */ export declare const mapSsnCardToOfficer: (parsed: ExtendSsnCardParsed) => AutofillResult; /** Certificate of Incorporation → Company Details. */ export declare const mapCoiToCompanyDetails: (parsed: ExtendCertificateOfIncorporationParsed) => AutofillResult; /** Tax EIN letter → Company Details. */ export declare const mapTaxEinToCompanyDetails: (parsed: ExtendTaxEinParsed) => AutofillResult;