import { default as React } from 'react'; import { FormPage } from '../../types/form-config'; import { KybCompanyShareholderField } from '../../types/theme'; /** * Company-shaped record stored on the SDK side. Mirrors the SDK's input DTO for * KYB corporate shareholders. Unlike PersonData, this represents an *organisation* * (companyName / registrationNumber / website / full address) rather than a * natural person — so there are no firstName/lastName/dateOfBirth fields. */ export interface CorporateShareholderData { email?: string; phone?: string; lang?: string; companyName?: string; registrationNumber?: string; website?: string; street?: string; streetNumber?: string; city?: string; state?: string; postalCode?: string; addressCountry?: string; shareSize?: string | number; /** Custom-field bag (paramName → string). Mirrors the company applicantAdditionalDatas pattern. */ additionalData?: Record; } export interface CompanyFormPageRendererProps { /** FormPage describing which company fields to render and how. */ page: FormPage; /** Current shareholder data (controlled). */ value: CorporateShareholderData; /** Fired with the next data shape on every change. */ onChange: (next: CorporateShareholderData) => void; /** Validation errors keyed by company field name (or paramName for custom fields). */ errors?: Partial>; /** Global label-mode default. Per-field `labelMode` overrides this. */ labelMode?: 'label' | 'placeholder'; /** When set, every input is rendered read-only. */ readOnly?: boolean; } /** * Convenience helper: build a default FormPage from a flat visibleFields/requiredFields pair. * Used as a backward-compat fallback when a tenant hasn't migrated their KYB shareholder * config to the richer FormPage shape yet. */ export declare function buildDefaultCompanyShareholderFormPage(visibleFields: KybCompanyShareholderField[], requiredFields?: KybCompanyShareholderField[]): FormPage; /** * Renders a single FormPage of company-shaped shareholder fields. Uses the same * FormFieldEntry contract as the company applicant form so admins can configure * label/placeholder mode, ordering, colSpan, helpText, displayText, required, * and countriesType per field. */ export declare const CompanyFormPageRenderer: React.FC; /** * Lightweight validator that walks a FormPage and returns errors for missing * required fields. Mirrors `validatePersonPage` but resolves field metadata * from COMPANY_FIELD_METADATA. */ export declare function validateCompanyShareholderPage(data: CorporateShareholderData, page: FormPage, t?: (key: string, params?: any) => string): Record; //# sourceMappingURL=CompanyFormPageRenderer.d.ts.map