import { type KycWalk } from './kycFormPosition'; import type { FiatProvider, FormDescriptor, FormValues, JsonValue, Quote } from '@funkit/connect-core'; import { type KycSectionPage } from './formLayout'; export interface FiatFormScreenProps { form: FormDescriptor; /** Present when identity is collected after a provider has priced the round. */ quote?: Quote; /** The provider the round names, for the consent the intro takes. */ provider?: FiatProvider; values: FormValues; /** * The buyer's region, ISO 3166-1 alpha-2. A blank COUNTRY field is filled * with it on arrival, so nobody is asked to type "US" into a box the frames * never drew. */ defaultCountry?: string; /** * What the buyer already typed in an earlier round of this session. A field * blank here and answered there is filled in for them; anything they have * touched on this round is theirs. Never persisted — it lives as long as the * screen does. */ carriedValues?: FormValues; /** The form's own error, when the server re-entered it carrying one. */ errorMessage?: string; /** The rounds walked so far, so the dots carry on from the earlier ones. */ walk?: KycWalk; isSubmitting: boolean; onChangeField: (fieldId: string, value: JsonValue) => void; /** Several fields at once, as one write — see `formScreenProps`. */ onPrefill?: (values: FormValues) => void; onSubmit: () => void; onClose: () => void; } /** * The identity form (KYC screen 3), stepped one section at a time as the * design draws it: name, then address, then date of birth. * * Only the last section submits — the ones before it advance locally, because * the contract sends the form whole and has no per-page call. */ export declare function FiatFormScreen(props: FiatFormScreenProps): import("react").JSX.Element; interface FiatFormContentProps extends FiatFormScreenProps { pages: KycSectionPage[]; step: number; onStep: (step: number) => void; } /** One round of the form: what is typed, what is refused, and which page is up. */ export declare function FiatFormContent({ form, values, defaultCountry, carriedValues, errorMessage, walk, isSubmitting, onChangeField, onPrefill, onSubmit, onClose, pages, step, onStep, }: FiatFormContentProps): import("react").JSX.Element | null; export {}; //# sourceMappingURL=FiatFormScreen.d.ts.map