import { Action, ActionSuccess } from "./Action"; import "isomorphic-fetch"; import { Method } from "../utils/Method"; /** * An [[Action]] to send an HTTP request * * @example * ```typescript * new HttpAction({ * name:"test", * method:"GET", * base:"https://jsonplaceholder.typicode.com/", * path:"todos" * }) * ``` */ export declare class HttpAction implements Action { method: Method; url: string; base: string; path: string; name: string | void; __variant__: string; /** * @param base A base part of the URL * @param path The path added after the base */ constructor({ name, method, base, path }: { name?: string; method: Method; base: string; path: string; }); run(): Promise; static fromJSON(json: { name?: string; method: Method; base: string; path: string; }): HttpAction; }