import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Hedra from "../../../index.js"; export declare namespace BillingClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * Balance and usage, in US dollars. */ export declare class BillingClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: BillingClient.Options); /** * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Hedra.BadRequestError} * @throws {@link Hedra.UnauthorizedError} * @throws {@link Hedra.ForbiddenError} * @throws {@link Hedra.NotFoundError} * @throws {@link Hedra.TooManyRequestsError} * @throws {@link Hedra.InternalServerError} * @throws {@link errors.HedraError} * @throws {@link errors.HedraTimeoutError} * * @example * await client.billing.getBalance() */ getBalance(requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise; private __getBalance; /** * @param {Hedra.BillingGetUsageRequest} request * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Hedra.BadRequestError} * @throws {@link Hedra.UnauthorizedError} * @throws {@link Hedra.ForbiddenError} * @throws {@link Hedra.NotFoundError} * @throws {@link Hedra.TooManyRequestsError} * @throws {@link Hedra.InternalServerError} * @throws {@link errors.HedraError} * @throws {@link errors.HedraTimeoutError} * * @example * await client.billing.getUsage() */ getUsage(request?: Hedra.BillingGetUsageRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise; private __getUsage; /** * Every movement of the API wallet's balance, newest first: funds added, * jobs charged, charges refunded, and corrections. Chat requests are summed * into one `llm_usage` row per model per UTC day. Scoped to the workspace the * credential bills, the same one `GET /v3/balance` reports, so an * `llm_usage` row sums every member's requests. * * @param {Hedra.BillingListTransactionsRequest} request * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Hedra.BadRequestError} * @throws {@link Hedra.UnauthorizedError} * @throws {@link Hedra.ForbiddenError} * @throws {@link Hedra.NotFoundError} * @throws {@link Hedra.TooManyRequestsError} * @throws {@link Hedra.InternalServerError} * @throws {@link errors.HedraError} * @throws {@link errors.HedraTimeoutError} * * @example * await client.billing.listTransactions() */ listTransactions(request?: Hedra.BillingListTransactionsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise; private __listTransactions; }