import { ChannelProvider } from "./ChannelProvider"; import type { ChannelInfo } from "./ChannelProvider"; import type { IActivityHandler, IActivityContext } from "../../IActivityHandler"; /** Defines inputs for the WebRequest activity. */ export interface WebRequestInputs { url: string; method?: "GET" | "POST" | string; headers?: Record; query?: Record; form?: Record; blob?: ArrayBuffer | Blob; json?: any; text?: string; expect?: "blob" | "json" | "text" | string; /** Indicates the channel to use to send the request. */ channel?: ChannelProvider; channelName?: "default" | "arcgis" | "geocortex" | string; timeout?: number; corsWithCredentials?: boolean; failForNonSuccessStatusCodes?: boolean; } /** Defines outputs for the WebRequest activity. */ export interface WebRequestOutputs { /** @description The binary/blob content of the response. */ blob?: ArrayBuffer; /** @description The channel that was used for the request. The channel provides access the raw request and response objects. */ channel: ChannelInfo; /** @description The elapsed time (in milliseconds) of the request. */ elapsed: number; /** @description The JSON content of the response. */ json?: any; /** @description The HTTP status code of the response. */ status?: number; /** @description The text content of the response. */ text?: string; } export declare class WebRequest implements IActivityHandler { static readonly action = "gcx:wf:core:request:WebRequest"; static readonly suite = "gcx:wf:builtin"; execute(inputs: WebRequestInputs, context: IActivityContext, ChannelProviderType: typeof ChannelProvider): Promise; }