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 { GetV1CompaniesCompanyIdContractorPaymentsHeaderXGustoAPIVersion, GetV1CompaniesCompanyIdContractorPaymentsRequest } from "../models/operations/getv1companiescompanyidcontractorpayments.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildContractorPaymentsListQuery, ContractorPaymentsListQueryData, prefetchContractorPaymentsList, queryKeyContractorPaymentsList } from "./contractorPaymentsList.core.js"; export { buildContractorPaymentsListQuery, type ContractorPaymentsListQueryData, prefetchContractorPaymentsList, queryKeyContractorPaymentsList, }; export type ContractorPaymentsListQueryError = NotFoundErrorObject | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get contractor payments for a company * * @remarks * Returns an object containing individual contractor payments, within a given time period, including totals. * * Results are returned in reverse chronological order (newest first). * * scope: `payrolls:read` */ export declare function useContractorPaymentsList(request: GetV1CompaniesCompanyIdContractorPaymentsRequest, options?: QueryHookOptions): UseQueryResult; /** * Get contractor payments for a company * * @remarks * Returns an object containing individual contractor payments, within a given time period, including totals. * * Results are returned in reverse chronological order (newest first). * * scope: `payrolls:read` */ export declare function useContractorPaymentsListSuspense(request: GetV1CompaniesCompanyIdContractorPaymentsRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setContractorPaymentsListData(client: QueryClient, queryKeyBase: [ companyId: string, parameters: { xGustoAPIVersion?: GetV1CompaniesCompanyIdContractorPaymentsHeaderXGustoAPIVersion | undefined; startDate: string; endDate: string; contractorUuid?: string | undefined; groupByDate?: boolean | undefined; page?: number | undefined; per?: number | undefined; } ], data: ContractorPaymentsListQueryData): ContractorPaymentsListQueryData | undefined; export declare function invalidateContractorPaymentsList(client: QueryClient, queryKeyBase: TupleToPrefixes<[ companyId: string, parameters: { xGustoAPIVersion?: GetV1CompaniesCompanyIdContractorPaymentsHeaderXGustoAPIVersion | undefined; startDate: string; endDate: string; contractorUuid?: string | undefined; groupByDate?: boolean | undefined; page?: number | undefined; per?: number | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllContractorPaymentsList(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=contractorPaymentsList.d.ts.map