import { HttpClient } from '@angular/common/http'; import { MatSnackBar } from '@angular/material/snack-bar'; import { Observable } from 'rxjs'; import { IGoogleTranslationsData } from '../models'; import * as i0 from "@angular/core"; export declare class GoogleTranslationService { private httpClient; private snackBar; constructor(httpClient: HttpClient, snackBar: MatSnackBar); /** * @param apiKey - User's Google API key. * @param targetLang - Language code used in translation - (ISO-639 codes). * @param text - Text to translate - one or multiple strings. * @param errorCallback - Optional, custom error callback function. Defaulted to snackbar message and rethrow error. * * * @returns Observable - Returns texts translated into target language. */ getTranslation$(apiKey: string, targetLang: string, text: string | string[], errorCallback?: () => Observable): Observable; private showErrorSnackbarMessage; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }