import { RestResource } from './rest-resource.js'; export type SpendingCapState = 'UNDER' | 'CLOSE' | 'REACHED'; export interface SpendingPool { used: number; included: number; overageRuns: number; overageCents: number; } export interface SpendingStanding { measuredAt: string; pools: Record; /** Not rounded to whole cents. */ overageCents: number; /** `null` when the account has no cap. */ limit: { capCents: number; state: SpendingCapState; closeAtCents: number; } | null; } export interface SpendingCap { /** `null` = no cap; `0` = no overage allowed. */ spendingCapCents: number | null; /** `null` when nothing is judged (plan without overage, or runs not measured yet). Not $0 overage. */ standing: SpendingStanding | null; } declare class SpendingCaps extends RestResource { get(): Promise>; /** `null` removes the cap. */ update(spendingCapCents: number | null): Promise, any, {}, any>>; } export default SpendingCaps;