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 { DeleteV1CompaniesCompanyIdPayrollsRequest, DeleteV1CompaniesCompanyIdPayrollsResponse } from "../models/operations/deletev1companiescompanyidpayrolls.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Delete a payroll * * @remarks * This endpoint allows you to delete an **unprocessed** payroll. * * By default the payroll and associated data is deleted synchronously. To request an asynchronous delete, use the `async=true` query parameter. In both cases validation of ability to delete will be performed and an Unprocessable Entity error will be returned if the payroll is not able to be deleted. A successful synchronous delete will return `204/No Content`. When a payroll has been enqueued for asynchronous deletion, `202/Accepted` will be returned. * * scope: `payrolls:run` * * If set, this operation will use {@link Security.companyAccessAuth} from the global security. */ export declare function payrollsDelete(client: GustoEmbeddedCore, request: DeleteV1CompaniesCompanyIdPayrollsRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=payrollsDelete.d.ts.map