import type { OptionsOfUnknownResponseBody } from 'got'; import { ContentType } from './contentType'; import { HttpMethod } from './httpMethod'; import { ProcessorContext } from './processorContext'; export interface HeadersContainer { headers: Record; } export type RequestBody = string | Array | Buffer; export interface Request { supportsStreaming?: boolean; protocol?: string; url: string; method?: TMethod; body?: TBody; headers?: Record; contentType?: ContentType; noRejectUnauthorized?: boolean; noRedirect?: boolean; proxy?: string; timeout?: number; } export interface HttpRequest extends Request { headers?: Record; options?: OptionsOfUnknownResponseBody; } export type HttpRequestBodyLine = string | Buffer | ((context: ProcessorContext) => Promise); export interface RequestBodyImport { fileName: string; injectVariables: boolean; encoding: BufferEncoding; }