import { Actor } from '@testla/screenplay'; import { Headers, Response, ResponseBodyFormat } from '../types'; import { ARequest } from './ARequest'; /** * Action Class. Send a HTTP PUT Request. */ export declare class Put extends ARequest { private url; private data?; private responseBodyFormat; private constructor(); /** * Send a HTTP PUT request to the specified url. * * @param {Actor} actor the actor object * @return {Response} the returned response */ performAs(actor: Actor): Promise; /** * Send a HTTP PUT request to the specified url. * * @param {string} url the URL of the target. * @return {Put} new Put instance */ static to(url: string): Put; /** * Add data to the HTTP PUT request to send. * PUT requests bodies hold the full entity information to be updated. * * @param {any} data the data. * @return {Put} the Put instance */ withData(data: any): Put; /** * Add headers to the HTTP PUT request to send. * * @param {Headers} headers the headers. * @return {Put} the Put instance */ withHeaders(headers: Headers): Put; /** * Set the format the response body should be returned as. * * @param {ResponseBodyFormat} responseBodyFormat the format of the response body. * @return {Put} the Put instance */ withResponseBodyFormat(responseBodyFormat: ResponseBodyFormat): Put; }