import type { KnownContacts } from './knownContacts'; import type { SessionContactField } from './sessionContact'; export interface FiatContactScreenProps { /** * What the session transition asks for, in the order it declares it. More * than one when the step verifies a number *and* an address. */ fields: readonly SessionContactField[]; /** * The buyer's region, ISO 3166-1 alpha-2, so a number typed the way they * dial it at home is read with their country code. */ defaultRegion?: string; /** Why the last send was refused, when it was; Continue sends again. */ errorMessage?: string; requiresContactChange?: boolean; initialContacts?: KnownContacts; isSubmitting: boolean; /** Where the buyer is, per the geo lookup: the code the field opens on. */ defaultCountry?: string; onChangeContact: (field: SessionContactField, value: string) => void; onSubmit: () => void; onClose: () => void; } /** * Where the code is sent (screen 2's first half). * * Collected before the transition that opens the session, so the step is the * client's own rather than one the server drives. Every field the step asks * for is on it: the session cannot open on a subset. */ export declare function FiatContactScreen(props: FiatContactScreenProps): import("react").JSX.Element; interface FiatContactContentProps extends FiatContactScreenProps { values: Record; onChangeDraft: (name: string, value: string) => void; } export declare function FiatContactContent({ fields, defaultRegion, errorMessage, requiresContactChange, initialContacts, isSubmitting, defaultCountry, onChangeContact, onSubmit, onClose, values, onChangeDraft, }: FiatContactContentProps): import("react").JSX.Element; export {}; //# sourceMappingURL=FiatContactScreen.d.ts.map