import type { BillingBalance, UsageEvent } from "@opengeni/sdk"; import { type ClientOverride } from "../provider.js"; export type UseBillingUsageOptions = Pick & { /** Account to read. Defaults to the caller's default account server-side. */ accountId?: string | undefined; /** Filter usage to one workspace. */ workspaceId?: string | undefined; /** Refresh interval (ms) for live billing meters. Off by default. */ pollIntervalMs?: number | undefined; enabled?: boolean | undefined; }; export type UseBillingUsageResult = { /** Prepaid credit balance (micro-USD), null until loaded. */ balance: BillingBalance | null; /** Recent usage events (runs, tokens, cost, uploads, ...). */ usage: UsageEvent[]; loading: boolean; error: Error | null; refresh: () => Promise; }; /** * Account billing usage: credit balance + recent usage events — the data * behind per-call billing meters. Account-scoped, so it only needs the * client; pass `workspaceId` to narrow usage to one workspace. */ export declare function useBillingUsage(options?: UseBillingUsageOptions): UseBillingUsageResult;