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 { BudgetsUserDefaultEventsQueryData, buildBudgetsUserDefaultEventsQuery, prefetchBudgetsUserDefaultEvents, queryKeyBudgetsUserDefaultEvents } from "./budgetsUserDefaultEvents.core.js"; export { type BudgetsUserDefaultEventsQueryData, buildBudgetsUserDefaultEventsQuery, prefetchBudgetsUserDefaultEvents, queryKeyBudgetsUserDefaultEvents, }; export type BudgetsUserDefaultEventsQueryError = SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * List per-user default budget events * * @remarks * Returns recent threshold-alert and block events for the org's per-user default budgets. Each event's target_id names the user it fired for. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ export declare function useBudgetsUserDefaultEvents(request: operations.ListUserDefaultBudgetEventsRequest, options?: QueryHookOptions): UseQueryResult; /** * List per-user default budget events * * @remarks * Returns recent threshold-alert and block events for the org's per-user default budgets. Each event's target_id names the user it fired for. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only. Callable by cluster admins, or org admins for their own organization (owner=org). */ export declare function useBudgetsUserDefaultEventsSuspense(request: operations.ListUserDefaultBudgetEventsRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setBudgetsUserDefaultEventsData(client: QueryClient, queryKeyBase: [parameters: { orgId?: string | undefined; }], data: BudgetsUserDefaultEventsQueryData): BudgetsUserDefaultEventsQueryData | undefined; export declare function invalidateBudgetsUserDefaultEvents(client: QueryClient, queryKeyBase: TupleToPrefixes<[parameters: { orgId?: string | undefined; }]>, filters?: Omit): Promise; export declare function invalidateAllBudgetsUserDefaultEvents(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=budgetsUserDefaultEvents.d.ts.map