import { CSSProperties, MouseEventHandler, ReactNode } from 'react'; import { PaymentDetailRow } from './PaymentDetailsCard'; /** * Confirmed/success state: checkmark + title/description + optional amount row * + an optional collapsible details list + up to two action buttons. * Generalizes invest-in-sto's bespoke success.tsx markup so both test-tx * success and real-investment success can share one component. */ export interface PaymentSuccessCardProps { title: ReactNode; description?: ReactNode; /** Amount shown under the description. Hidden when empty. */ amount?: number | string | null; /** Currency id (e.g. `btc-fb`) or ticker, shown next to the amount. */ currency?: string; /** Custom currency icon URL; wins over the currency's own icon. */ customCurrencyIcon?: string; /** Detail rows revealed by the "show details" toggle. No toggle when empty. */ rows?: PaymentDetailRow[]; detailsDefaultOpen?: boolean; showDetailsLabel?: string; hideDetailsLabel?: string; primaryActionLabel?: string; /** Makes the primary action a link. */ primaryActionHref?: string; onPrimaryActionClick?: MouseEventHandler; secondaryActionLabel?: string; /** Makes the secondary action a link opening in a new tab, with an external-link icon. */ secondaryActionHref?: string; onSecondaryActionClick?: MouseEventHandler; /** CSS max-width of the card, e.g. `600px`. */ maxWidth?: string; containerStyle?: CSSProperties; codeWrapperStyle?: CSSProperties; className?: string; codeWrapperClassName?: string; /** Extra content, rendered last inside the card. */ children?: ReactNode; } export declare const PaymentSuccessCard: ({ title, description, amount, currency, customCurrencyIcon, rows, detailsDefaultOpen, showDetailsLabel, hideDetailsLabel, primaryActionLabel, primaryActionHref, onPrimaryActionClick, secondaryActionLabel, secondaryActionHref, onSecondaryActionClick, maxWidth, containerStyle, codeWrapperStyle, className, codeWrapperClassName, children, }: PaymentSuccessCardProps) => import("react/jsx-runtime").JSX.Element; export default PaymentSuccessCard;