import { GustoEmbeddedCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; 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 { UnprocessableEntityError } from "../models/errors/unprocessableentityerror.js"; import { PutApiV1CompaniesCompanyIdPayrollsPayrollIdCancelRequest, PutApiV1CompaniesCompanyIdPayrollsPayrollIdCancelResponse } from "../models/operations/putapiv1companiescompanyidpayrollspayrollidcancel.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Cancel a payroll * * @remarks * Transitions a `processed` payroll back to the `unprocessed` state. A payroll can be canceled if it meets both criteria: * * - `processed` is `true` * - Current time is earlier than 4pm PT on the `payroll_deadline` * * scope: `payrolls:run` * * If set, this operation will use {@link Security.companyAccessAuth} from the global security. */ export declare function payrollsCancel(client: GustoEmbeddedCore, request: PutApiV1CompaniesCompanyIdPayrollsPayrollIdCancelRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=payrollsCancel.d.ts.map