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