import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class Balance extends APIResource { /** * Get balance for the API key's team. If the API key belongs to a sub-account, * also includes the sub-account's total spending and credit limit. */ retrieve(options?: RequestOptions): APIPromise; } export interface BalanceRetrieveResponse { /** * Team balance in cents. All charges are billed to the parent team. */ balance: number; currency: string; /** * Spending cap in cents (only for sub-accounts). */ creditLimit?: number | null; /** * Whether this API key belongs to a sub-account. */ isSubAccount?: boolean; /** * Total amount spent by this sub-account in cents (only for sub-accounts). */ totalSpent?: number | null; } export declare namespace Balance { export { type BalanceRetrieveResponse as BalanceRetrieveResponse }; } //# sourceMappingURL=balance.d.mts.map