import { IncomingHttpHeaders } from 'http';
import { IFetchedServerResponse } from '../server-response/model';
import { IFetchedRequest } from '../request/model';
import { RequestTimings } from '../../../lib/har/harTypes';
/**
 * Content of an HTTP request.
 * @public
 */
export interface RequestPayload {
    /**
     * HTTP url
     */
    url: string;
    /**
     * HTTP method
     */
    method: string;
    /**
     * HTTP headers
     */
    headers: IncomingHttpHeaders;
    /**
     * HTTP request body
     */
    body?: string | Buffer;
}
export interface SendRequestSpec {
    baseUrl: string;
    original: IFetchedRequest;
    skipLog?: boolean;
}
export interface SendRequestOutput {
    response: IFetchedServerResponse;
    timings: RequestTimings;
    time: number;
    requestOptions: RequestPayload;
}
