/** * @module botbuilder-ai */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { KnowledgeBaseAnswers } from '../qnamaker-interfaces/knowledgeBaseAnswers'; import { QnAMakerEndpoint } from '../qnamaker-interfaces/qnamakerEndpoint'; import { QnAMakerResults } from '../qnamaker-interfaces/qnamakerResults'; /** * Http request utils class. * * @summary * This class is helper class for all the http request operations. */ export declare class HttpRequestUtils { /** * Execute Http request. * * @param {string} requestUrl Http request url. * @param {string} payloadBody Http request body. * @param {QnAMakerEndpoint} endpoint QnA Maker endpoint details. * @param {number} timeout (Optional)Timeout for http call * @returns {QnAMakerResults} a promise that resolves to the QnAMakerResults */ executeHttpRequest(requestUrl: string, payloadBody: string, endpoint: QnAMakerEndpoint, timeout?: number): Promise; /** * Sets headers for request to QnAMaker service. * * The [QnAMakerEndpointKey](#QnAMakerEndpoint.QnAMakerEndpointKey) is set as the value of * `Authorization` header for v4.0 and later of QnAMaker service. * * Legacy QnAMaker services use the `Ocp-Apim-Subscription-Key` header for the QnAMakerEndpoint value instead. * * [QnAMaker.getHeaders()](#QnAMaker.getHeaders) also gets the User-Agent header value. * * @private */ private getHeaders; private getUserAgent; } //# sourceMappingURL=httpRequestUtils.d.ts.map