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 { GetV1EmployeesEmployeeIdRehireHeaderXGustoAPIVersion, GetV1EmployeesEmployeeIdRehireRequest } from "../models/operations/getv1employeesemployeeidrehire.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildEmployeeEmploymentsGetRehireQuery, EmployeeEmploymentsGetRehireQueryData, prefetchEmployeeEmploymentsGetRehire, queryKeyEmployeeEmploymentsGetRehire } from "./employeeEmploymentsGetRehire.core.js"; export { buildEmployeeEmploymentsGetRehireQuery, type EmployeeEmploymentsGetRehireQueryData, prefetchEmployeeEmploymentsGetRehire, queryKeyEmployeeEmploymentsGetRehire, }; export type EmployeeEmploymentsGetRehireQueryError = NotFoundErrorObject | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get an employee rehire * * @remarks * Retrieve an employee's rehire, which contains information on when the employee returns to work. * * scope: `employments:read` */ export declare function useEmployeeEmploymentsGetRehire(request: GetV1EmployeesEmployeeIdRehireRequest, options?: QueryHookOptions): UseQueryResult; /** * Get an employee rehire * * @remarks * Retrieve an employee's rehire, which contains information on when the employee returns to work. * * scope: `employments:read` */ export declare function useEmployeeEmploymentsGetRehireSuspense(request: GetV1EmployeesEmployeeIdRehireRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setEmployeeEmploymentsGetRehireData(client: QueryClient, queryKeyBase: [ employeeId: string, parameters: { xGustoAPIVersion?: GetV1EmployeesEmployeeIdRehireHeaderXGustoAPIVersion | undefined; } ], data: EmployeeEmploymentsGetRehireQueryData): EmployeeEmploymentsGetRehireQueryData | undefined; export declare function invalidateEmployeeEmploymentsGetRehire(client: QueryClient, queryKeyBase: TupleToPrefixes<[ employeeId: string, parameters: { xGustoAPIVersion?: GetV1EmployeesEmployeeIdRehireHeaderXGustoAPIVersion | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllEmployeeEmploymentsGetRehire(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=employeeEmploymentsGetRehire.d.ts.map