import { IRestResponse } from "../common.browser/Exports.js"; import { IAuthentication, SynthesizerConfig } from "./Exports.js"; /** * Implements methods for speech synthesis classes, sending requests to endpoint * and parsing response into expected format * @class SynthesisRestAdapter */ export declare class SynthesisRestAdapter { private privRestAdapter; private privUri; private privEndpoint; private privIsCustomEndpoint; private privAuthentication; constructor(config: SynthesizerConfig, authentication: IAuthentication); /** * Sends list voices request to endpoint. * @function * @public * @param connectionId - guid for connectionId * @returns {Promise} rest response to status request */ getVoicesList(connectionId: string): Promise; /** * Builds (and caches) the voices/list URI. When the caller supplied a custom endpoint with no path * (e.g. a custom-domain or private-link host via fromEndpoint), the host may not serve the voices/list * route directly and AAD token auth requires the regional host with the ocp-apim-custom-domain-name * query parameter. In that case we resolve the service redirect (which is exposed on the synthesis * route) to discover the regional host and custom-domain parameter, then retarget it to the * voices/list path, keeping the http(s) scheme for this REST call. */ private getVoicesListUri; }