import type { CommerceInvoiceView, CommerceOrderView, PaymentHistoryItem, SubscriptionView } from '../types/payment'; export interface BillingOverviewProps { onLoadSubscription: () => Promise; onLoadOrders: () => Promise; onLoadPayments: () => Promise; onLoadInvoices: () => Promise; /** * Download invoice PDF via API when the list row has no direct `invoicePdfUrl` / `downloadUrl`. * Wire to `handlers.downloadInvoice(invoice.id)` from `createPaymentCheckoutHandlers`. */ onDownloadInvoice?: (invoice: CommerceInvoiceView) => Promise; /** Razorpay: `POST /api/v1/payments/razorpay/subscription/cancel` */ onCancelRazorpaySubscription?: () => Promise; /** Stripe: `POST /api/v1/payments/create-portal-session` — receives portal URL */ onOpenStripePortal?: () => Promise; title?: string; subtitle?: string; className?: string; /** Called after a successful Razorpay cancel so the host can refresh data */ onBillingChanged?: () => void; } export declare function BillingOverview({ onLoadSubscription, onLoadOrders, onLoadPayments, onLoadInvoices, onDownloadInvoice, onCancelRazorpaySubscription, onOpenStripePortal, title, subtitle, className, onBillingChanged, }: BillingOverviewProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=BillingOverview.d.ts.map