import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildLlmUsageCostsQuery, LlmUsageCostsQueryData, prefetchLlmUsageCosts, queryKeyLlmUsageCosts } from "./llmUsageCosts.core.js"; export { buildLlmUsageCostsQuery, type LlmUsageCostsQueryData, prefetchLlmUsageCosts, queryKeyLlmUsageCosts, }; export type LlmUsageCostsQueryError = SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get cost by model * * @remarks * Aggregates spend by model over a time range, priced in the cluster currency from the model price book. Org-scoped: org admins see their org; cluster admins may pass `org_id`. Includes billable work with no usage row of its own (store=false responses, agent tool calls), so totals cover all LLM spend. Platform-wide, cross-service cost reporting lives in the budgeting API (/api/v1/budgeting/usage/costs). */ export declare function useLlmUsageCosts(request: operations.GetCostsUsageRequest, options?: QueryHookOptions): UseQueryResult; /** * Get cost by model * * @remarks * Aggregates spend by model over a time range, priced in the cluster currency from the model price book. Org-scoped: org admins see their org; cluster admins may pass `org_id`. Includes billable work with no usage row of its own (store=false responses, agent tool calls), so totals cover all LLM spend. Platform-wide, cross-service cost reporting lives in the budgeting API (/api/v1/budgeting/usage/costs). */ export declare function useLlmUsageCostsSuspense(request: operations.GetCostsUsageRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setLlmUsageCostsData(client: QueryClient, queryKeyBase: [ parameters: { startTime: number; endTime: number; orgId?: string | undefined; groupBy?: operations.GroupBy | undefined; xOnBehalfOf?: string | undefined; } ], data: LlmUsageCostsQueryData): LlmUsageCostsQueryData | undefined; export declare function invalidateLlmUsageCosts(client: QueryClient, queryKeyBase: TupleToPrefixes<[ parameters: { startTime: number; endTime: number; orgId?: string | undefined; groupBy?: operations.GroupBy | undefined; xOnBehalfOf?: string | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllLlmUsageCosts(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=llmUsageCosts.d.ts.map