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 { PutV1CompaniesCompanyIdPayrollsPayrollIdSubmitRequest, PutV1CompaniesCompanyIdPayrollsPayrollIdSubmitResponse } from "../models/operations/putv1companiescompanyidpayrollspayrollidsubmit.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Submit payroll * * @remarks * Submits an unprocessed payroll to be calculated and run. This submission is asynchronous and a successful request responds with a 202 HTTP status. Upon success, transitions the payroll to the `processed` state. * * You should poll to ensure that payroll is processed successfully, as async errors only occur after async processing is complete. * * If the company is blocked from running payroll due to issues like incomplete setup, missing information or other compliance issues, the response will be 422 Unprocessable Entity with a categorization of the blockers as described in the error responses. * * scope: `payrolls:run` * * If set, this operation will use {@link Security.companyAccessAuth} from the global security. */ export declare function payrollsSubmit(client: GustoEmbeddedCore, request: PutV1CompaniesCompanyIdPayrollsPayrollIdSubmitRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=payrollsSubmit.d.ts.map