import { AmplifyContext } from '@aws-amplify/core'; import { SpeechToTextInput, SpeechToTextOutput, TextToSpeechInput, TextToSpeechOutput, TranslateTextInput, TranslateTextOutput } from '../types'; export declare class AmazonAIConvertPredictionsProvider { private translateClient?; private pollyClient?; /** * Resolve the AmplifyContext for this provider (fresh per operation). * - If an explicit ctx was passed at construction, it is pinned (fixed context by design). * - Otherwise, the global context is resolved fresh per access so that reconfiguration * (setGlobalContext with a new AmplifyContext) is honored across operations. * @private */ private readonly _resolveCtx; /** * @param ctx - The AmplifyContext to use for auth and config. * When provided, the provider is pinned to this context. * When omitted, the provider resolves the global context lazily per operation. */ constructor(ctx?: AmplifyContext); getProviderName(): string; convert(input: TranslateTextInput | TextToSpeechInput | SpeechToTextInput): Promise; protected translateText(input: TranslateTextInput): Promise; protected convertTextToSpeech(input: TextToSpeechInput): Promise; protected convertSpeechToText(input: SpeechToTextInput): Promise; static serializeDataFromTranscribe(message: MessageEvent): string; private sendDataToTranscribe; private sendEncodedDataToTranscribe; private getAudioEventMessage; private pcmEncode; private inputSampleRate; private downsampleBuffer; private openConnectionWithTranscribe; private generateTranscribeUrl; }