import type { OpenGeniBrowserClient } from "@opengeni/sdk/browser"; import type { WorkspaceModelCatalogModel } from "@opengeni/sdk"; import type { PaymentRefusalCode } from "../lib/model-access.js"; type CreditRequiredPromptProps = { open: boolean; workspaceId: string; accountId: string | null; canBuyCredits: boolean; purpose?: "required" | "topup" | undefined; /** A refusal one action fixes (own-key fee, API use): no model choice applies. */ refusalCode?: PaymentRefusalCode | null | undefined; onOpenChange: (open: boolean) => void; /** * Runs before this page leaves for checkout, such as saving the composer's * draft now instead of after its autosave pause, so paying keeps it. */ beforeLeave?: (() => Promise) | undefined; }; export declare function CreditRequiredPrompt(props: CreditRequiredPromptProps): import("react").JSX.Element; export declare function CreditRequiredPromptView({ client, open, workspaceId, accountId, canBuyCredits, purpose, refusalCode, onOpenChange, beforeLeave, }: CreditRequiredPromptProps & { client: OpenGeniBrowserClient; }): import("react").JSX.Element; /** * Before the person types: the selected model is paid with Opengeni credits * and none are left. Says so once, in plain words, with the one action that * fixes it; using your own provider account stays as a quiet second choice. */ export declare function EmptyCreditsNotice({ workspaceId, accountId, canBuyCredits, canReadBilling, creditFunding, onAddCredits, }: { workspaceId: string; accountId: string | null; canBuyCredits: boolean; canReadBilling: boolean; creditFunding?: WorkspaceModelCatalogModel["creditFunding"] | undefined; /** Opens the add-credits prompt on this page; without it, Add credits opens billing. */ onAddCredits?: (() => void) | undefined; }): import("react").JSX.Element | null; export {};