import type { OpenGeniBrowserClient } from "@opengeni/sdk/browser"; /** * What the organization's billing summary says about its credit, so a * credit notice can tell "no credit at all" from "credit this model can't * use" and word each one truthfully. `null` while it loads, without * `billing:read`, or when the read fails: then neither is known. */ export type CreditBalance = { /** Billing is on for this deployment (`stripe` or another non-disabled mode). */ billingEnabled: boolean; stripeEnabled: boolean; /** Any positive balance, including promotional credit for other models. */ someCredit: boolean; }; export declare function useCreditBalance(client: OpenGeniBrowserClient, accountId: string | null | undefined, canReadBilling: boolean): { balance: CreditBalance | null; settled: boolean; };