import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query"; import { GustoEmbeddedError } from "../models/errors/gustoembeddederror.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { NotFoundErrorObject } from "../models/errors/notfounderrorobject.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { GetCompaniesDepartmentsHeaderXGustoAPIVersion, GetCompaniesDepartmentsRequest } from "../models/operations/getcompaniesdepartments.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildDepartmentsGetAllQuery, DepartmentsGetAllQueryData, prefetchDepartmentsGetAll, queryKeyDepartmentsGetAll } from "./departmentsGetAll.core.js"; export { buildDepartmentsGetAllQuery, type DepartmentsGetAllQueryData, prefetchDepartmentsGetAll, queryKeyDepartmentsGetAll, }; export type DepartmentsGetAllQueryError = NotFoundErrorObject | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get all departments of a company * * @remarks * Get all of the departments for a given company with the employees and contractors assigned to that department. * * scope: `departments:read` */ export declare function useDepartmentsGetAll(request: GetCompaniesDepartmentsRequest, options?: QueryHookOptions): UseQueryResult; /** * Get all departments of a company * * @remarks * Get all of the departments for a given company with the employees and contractors assigned to that department. * * scope: `departments:read` */ export declare function useDepartmentsGetAllSuspense(request: GetCompaniesDepartmentsRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setDepartmentsGetAllData(client: QueryClient, queryKeyBase: [ companyUuid: string, parameters: { xGustoAPIVersion?: GetCompaniesDepartmentsHeaderXGustoAPIVersion | undefined; } ], data: DepartmentsGetAllQueryData): DepartmentsGetAllQueryData | undefined; export declare function invalidateDepartmentsGetAll(client: QueryClient, queryKeyBase: TupleToPrefixes<[ companyUuid: string, parameters: { xGustoAPIVersion?: GetCompaniesDepartmentsHeaderXGustoAPIVersion | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllDepartmentsGetAll(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=departmentsGetAll.d.ts.map