import type { BillingCheckoutStatus } from "@opengeni/sdk"; import { type CreditCheckoutClient } from "../../lib/credit-checkout.js"; /** * "Have a code?": the person types a code, Stripe Checkout opens in a * new tab with the code already applied (a fixed-amount code buys exactly its * amount, so a $100 code is $100 of credits for $0), and this page waits for * the credits to land before `onGranted` celebrates them. When the browser * blocks the tab, checkout takes over the page and organization billing * celebrates on return instead. */ type CouponRedeemProps = { client?: CreditCheckoutClient | undefined; accountId: string; /** Where a same-tab checkout returns (that workspace's organization billing). */ workspaceId: string; onGranted: (status: BillingCheckoutStatus) => void; defaultOpen?: boolean | undefined; disabled?: boolean | undefined; /** "inline": just the field and Redeem, for a settings row; the label is for screen readers. */ variant?: "stacked" | "inline" | undefined; }; export declare function CouponRedeem(props: CouponRedeemProps): import("react").JSX.Element; export {};