import { Method } from '../../common/Constants';
import { Service } from './Services';
export default class NQSRequest {
    private isHttps;
    private host;
    private service;
    private method;
    private params;
    private body?;
    private xhr;
    private retries;
    private onSuccessCallback?;
    private onFailCallback?;
    constructor(isHttps: boolean, host: string, service: Service, method: Method, params: any, body?: any, onSuccess?: () => void, onFail?: () => void);
    performHttps(): boolean;
    getHost(): string;
    getService(): Service;
    getMethod(): Method;
    getParams(): any;
    getBody(): any;
    setBody(body: any): void;
    getRetries(): number;
    /**
     * Performs the request to the specified host and service
     *
     * @param sendFail Callback to when the send fails
     * @param onSucess Callback to when the send succeeds (optional)
     */
    send(sendFail: () => void, onSuccess?: () => void): void;
    asyncSend(): Promise<void>;
    private getUrl;
}
