import { Actor } from '@testla/screenplay'; import { Headers, Response, ResponseBodyFormat } from '../types'; import { ARequest } from './ARequest'; /** * Action Class. Send a HTTP DELETE Request. */ export declare class Delete extends ARequest { private url; private responseBodyFormat; private constructor(); /** * Send a HTTP DELETE request to the specified url. * * @param {Actor} actor the used actor * @return {Response} the response */ performAs(actor: Actor): Promise; /** * Send a HTTP DELETE request to the specified url. * * @param {string} url the URL of the target. * @return {Delete} new instance */ static from(url: string): Delete; /** * Add headers to the HTTP DELETE request to send. * * @param {Headers} headers the headers. * @return {Delete} the existing instance */ withHeaders(headers: Headers): Delete; /** * Set the format the response body should be returned as. * * @param {ResponseBodyFormat} responseBodyFormat the format of the response body. * @return {Delete} the existing instance */ withResponseBodyFormat(responseBodyFormat: ResponseBodyFormat): Delete; }