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 { GetV1EmployeesEmployeeIdStateTaxesHeaderXGustoAPIVersion, GetV1EmployeesEmployeeIdStateTaxesRequest } from "../models/operations/getv1employeesemployeeidstatetaxes.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildEmployeeTaxSetupGetStateTaxesQuery, EmployeeTaxSetupGetStateTaxesQueryData, prefetchEmployeeTaxSetupGetStateTaxes, queryKeyEmployeeTaxSetupGetStateTaxes } from "./employeeTaxSetupGetStateTaxes.core.js"; export { buildEmployeeTaxSetupGetStateTaxesQuery, type EmployeeTaxSetupGetStateTaxesQueryData, prefetchEmployeeTaxSetupGetStateTaxes, queryKeyEmployeeTaxSetupGetStateTaxes, }; export type EmployeeTaxSetupGetStateTaxesQueryError = NotFoundErrorObject | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get an employee's state taxes * * @remarks * Get attributes relevant for an employee's state taxes. * * The data required to correctly calculate an employee's state taxes varies by both home and work location. This API returns information about each question that must be answered grouped by state. Mostly commonly, an employee lives and works in the same state and will only have questions for a single state. The response contains metadata about each question, the type of answer expected, and the current answer stored in Gusto for that question. * * Answers are represented by an array. Today, this array can only be empty or contain exactly one element, but is designed to allow for forward compatibility with effective-dated fields. The `valid_from` and `valid_up_to` fields are optional and currently ignored. * * ## About filing new hire reports * Payroll Admins are responsible for filing a new hire report for each Employee. The `file_new_hire_report` question will only be listed if: * - the `employee.onboarding_status` is one of the following: * - `admin_onboarding_incomplete` * - `self_onboarding_awaiting_admin_review` * - that employee's work state requires filing a new hire report * * scope: `employee_state_taxes:read` */ export declare function useEmployeeTaxSetupGetStateTaxes(request: GetV1EmployeesEmployeeIdStateTaxesRequest, options?: QueryHookOptions): UseQueryResult; /** * Get an employee's state taxes * * @remarks * Get attributes relevant for an employee's state taxes. * * The data required to correctly calculate an employee's state taxes varies by both home and work location. This API returns information about each question that must be answered grouped by state. Mostly commonly, an employee lives and works in the same state and will only have questions for a single state. The response contains metadata about each question, the type of answer expected, and the current answer stored in Gusto for that question. * * Answers are represented by an array. Today, this array can only be empty or contain exactly one element, but is designed to allow for forward compatibility with effective-dated fields. The `valid_from` and `valid_up_to` fields are optional and currently ignored. * * ## About filing new hire reports * Payroll Admins are responsible for filing a new hire report for each Employee. The `file_new_hire_report` question will only be listed if: * - the `employee.onboarding_status` is one of the following: * - `admin_onboarding_incomplete` * - `self_onboarding_awaiting_admin_review` * - that employee's work state requires filing a new hire report * * scope: `employee_state_taxes:read` */ export declare function useEmployeeTaxSetupGetStateTaxesSuspense(request: GetV1EmployeesEmployeeIdStateTaxesRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setEmployeeTaxSetupGetStateTaxesData(client: QueryClient, queryKeyBase: [ employeeUuid: string, parameters: { xGustoAPIVersion?: GetV1EmployeesEmployeeIdStateTaxesHeaderXGustoAPIVersion | undefined; } ], data: EmployeeTaxSetupGetStateTaxesQueryData): EmployeeTaxSetupGetStateTaxesQueryData | undefined; export declare function invalidateEmployeeTaxSetupGetStateTaxes(client: QueryClient, queryKeyBase: TupleToPrefixes<[ employeeUuid: string, parameters: { xGustoAPIVersion?: GetV1EmployeesEmployeeIdStateTaxesHeaderXGustoAPIVersion | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllEmployeeTaxSetupGetStateTaxes(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=employeeTaxSetupGetStateTaxes.d.ts.map