///
import https from 'https';
import RequestBody from './requestBody';
export type Method = 'GET' | 'POST' | 'DELETE';
type RequestRecordType = string | number | boolean;
type StringAnyTuple = Array<[string, RequestRecordType]>;
export interface RequestConfigurationQuery extends RequestBody {
[key: string]: string;
}
interface RequestConfiguration {
endpoint: string;
method: Method;
secret: string;
receiverId: string;
body?: T;
query?: RequestConfigurationQuery;
}
declare class Request {
static readonly HOST_NAME: string;
static readonly API_ENDPOINT: string;
private url?;
private endpoint?;
private path?;
private fullPath?;
private hash?;
private options?;
private postData?;
private bodyTuple?;
private queryTuple?;
readonly configuration: RequestConfiguration;
constructor(configuration: RequestConfiguration);
getEndpoint(): string;
getPath(): string;
getFullPath(): string;
getUrl(): string;
getQueryTuple(): StringAnyTuple;
getBodyTuple(): StringAnyTuple;
getHash(): string;
getPostData(): null | string;
getOptions(): https.RequestOptions;
execute(): Promise;
}
export default Request;
//# sourceMappingURL=request.d.ts.map