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 { GetV1ContractorsContractorUuidHeaderXGustoAPIVersion, GetV1ContractorsContractorUuidQueryParamInclude, GetV1ContractorsContractorUuidRequest } from "../models/operations/getv1contractorscontractoruuid.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildContractorsGetQuery, ContractorsGetQueryData, prefetchContractorsGet, queryKeyContractorsGet } from "./contractorsGet.core.js"; export { buildContractorsGetQuery, type ContractorsGetQueryData, prefetchContractorsGet, queryKeyContractorsGet, }; export type ContractorsGetQueryError = NotFoundErrorObject | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get a contractor * * @remarks * Get a contractor. * * scope: `contractors:read` */ export declare function useContractorsGet(request: GetV1ContractorsContractorUuidRequest, options?: QueryHookOptions): UseQueryResult; /** * Get a contractor * * @remarks * Get a contractor. * * scope: `contractors:read` */ export declare function useContractorsGetSuspense(request: GetV1ContractorsContractorUuidRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setContractorsGetData(client: QueryClient, queryKeyBase: [ contractorUuid: string, parameters: { xGustoAPIVersion?: GetV1ContractorsContractorUuidHeaderXGustoAPIVersion | undefined; include?: Array | undefined; } ], data: ContractorsGetQueryData): ContractorsGetQueryData | undefined; export declare function invalidateContractorsGet(client: QueryClient, queryKeyBase: TupleToPrefixes<[ contractorUuid: string, parameters: { xGustoAPIVersion?: GetV1ContractorsContractorUuidHeaderXGustoAPIVersion | undefined; include?: Array | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllContractorsGet(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=contractorsGet.d.ts.map