import type { SpendingCap } from '../rest/spending-cap.js'; export declare const MAX_SPENDING_CAP_DOLLARS = 10000; /** * A dollar amount (`50`, `12.5`, `12.50`) as integer cents, from the digits so * no float rounding creeps in. At most 2 decimals, from 0 to 10000. */ export declare function parseDollarsToCents(input: string): number; /** The preview lines for changing the cap from `current` to `capCents` (`null` removes it). */ export declare function spendingCapChanges(current: SpendingCap, capCents: number | null): string[]; /** Clear messages for the API's 401, 403 and 409; anything else as it came. */ export declare function describeSpendingCapError(err: unknown, permission: 'billing:read' | 'billing:update'): string | Error;