/** Credit balance, ledger history and current usage prices. */
import type { Client } from './client.js';
import type { Query } from './types.js';
/** GET /credits/balance — Credit balance. */
export declare const balance: (client: Client) => Promise<{
balances: {
balance: string;
credit_type: string;
}[];
spend: {
avg_per_day: string;
runway_days: number | null;
total: string;
window_days: number;
};
total: string;
}>;
/** GET /credits/ledger — Credit ledger history (cursor-paginated). */
export declare const ledger: (client: Client, query?: Query<"/credits/ledger", "get">) => Promise<{
entries: {
amount: string;
balance_after: string;
created_at: string;
credit_type: string;
id: string;
invoice_id?: string | null;
kind: "grant" | "purchase" | "charge" | "adjustment" | "refund" | "expiry";
reason: string | null;
seq: number;
}[];
next_cursor: number | null;
}>;
/** Every ledger entry, following cursor pagination. */
export declare const ledgerAll: (client: Client, query?: Query<"/credits/ledger", "get">) => Promise<readonly {
amount: string;
balance_after: string;
created_at: string;
credit_type: string;
id: string;
invoice_id?: string | null;
kind: "grant" | "purchase" | "charge" | "adjustment" | "refund" | "expiry";
reason: string | null;
seq: number;
}[]>;
/** GET /credits/prices — Current usage prices (decimal strings). */
export declare const prices: (client: Client) => Promise<{
created_at: string;
prices: {
[key: string]: {
[key: string]: unknown;
};
};
registrar: {
max_years: number;
};
version: number;
}>;