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