import type { AccessContext } from "../types.js"; import type { PaymentRefusalCode } from "../lib/model-access.js"; export type CreditRequired = { workspaceId: string; accountId: string | null; /** A refusal one action fixes (own-key fee, API use); absent is "no credit". */ code?: PaymentRefusalCode | null | undefined; }; /** * The "add credits" prompt the app state raises when the API refuses work for * lack of credits. Every host that renders the session UI mounts it once, * beside its routes; buying credits needs `billing:manage` on the account. * It also confirms credits bought from the page checkout returns to. */ export declare function CreditRequiredGate(props: { creditRequired: CreditRequired | null; setCreditRequired: (value: CreditRequired | null) => void; accessContext: AccessContext | null; }): import("react").JSX.Element | null;