import type { FreeCreditGap } from "../../lib/free-credit-gap.js"; import type { PaymentRefusalCode } from "../../lib/model-access.js"; /** * The API refused a Send or a new chat because no credit pays for its model. * Stays above the composer until the next accepted message, so the refusal is * not only a short line under a failed bubble: it names the model, the * server's reason, the models the remaining credit covers, and the next step. * When no credit covers any model, it says that plainly instead, in the same * words as the notice shown before the first Send: with no credit at all, that * there is none; with credit this model can't use (for example promotional * credit for other models), that this model can't use it. */ export declare function CreditRefusalNotice({ gap, message, refusalCode, workspaceId, accountId, canBuyCredits, canReadBilling, canConnectModel, continuing, onChooseModel, onAddCredits, onDismiss, }: { gap: FreeCreditGap; /** The API's refusal text. */ message?: string | null | undefined; /** A refusal one action fixes (own-key fee, API use): no model choice applies. */ refusalCode?: PaymentRefusalCode | null | undefined; workspaceId: string; /** The organization whose balance tells "no credit" from "credit this model can't use". */ accountId?: string | null | undefined; canBuyCredits: boolean; canReadBilling?: boolean | undefined; canConnectModel: boolean; /** The chat already has messages, so "keep chatting" reads true. */ continuing?: boolean | undefined; /** Select a covered model in the composer. */ onChooseModel?: ((id: string) => void) | undefined; /** Opens the add-credits prompt on this page; without it, Add credits opens billing. */ onAddCredits?: (() => void) | undefined; onDismiss?: (() => void) | undefined; }): import("react").JSX.Element | null;