import { type Appearance, type StripeElementLocale } from "@stripe/stripe-js"; import * as React from "react"; /** Same shape as `BillingAddress` on the server; declared here so importing the * form never pulls the server entry into a browser bundle. */ export type AddressValue = { line1: string; line2?: string | null; city?: string | null; state?: string | null; postal_code?: string | null; country: string; }; export declare function BillingAddressForm({ publishableKey, defaultValue, onChange, appearance, locale, /** Label the name line as a person (`full`) rather than an organization. * It is NOT a way to hide the field — Stripe always collects a name. */ showName, defaultName, googleMapsApiKey, currency, className, }: { publishableKey: string; defaultValue?: AddressValue | null; /** * Called on every edit. `null` while the address is incomplete, so a caller * can disable Save until Stripe considers it valid for the chosen country. * * "Incomplete" includes an empty NAME, which is easy to miss: every address * field can be filled and this still reports null. Pass `defaultName` so the * caller's Save button isn't disabled by a field they never asked for. */ onChange: (address: AddressValue | null) => void; appearance?: Appearance; locale?: StripeElementLocale; showName?: boolean; /** * Prefill for the name field. * * Not cosmetic: Stripe ALWAYS collects a name here and will not report the * address `complete` until it has one, so a form left with an empty name can * never be saved. Pass the name you already hold (the invoice name, the * account name) and the field starts satisfied. */ defaultName?: string; /** * Your own Google Maps Places key. Supplying it is the documented way to get * autocomplete standalone, and skips the hidden Payment Element described * above. */ googleMapsApiKey?: string; /** Required by Stripe for the deferred Elements group. Only used to satisfy * that API — nothing is ever charged here. */ currency?: string; className?: string; }): React.JSX.Element; //# sourceMappingURL=address.d.ts.map