import { Reshuffle, BaseConnector } from 'reshuffle-base-connector'; import { protos, v3 } from '@google-cloud/translate'; export interface GoogleTranslateConnectorConfigOptions { credentials: string; location: string; } export default class GoogleTranslateConnector extends BaseConnector { private client; private projectId; private location; constructor(app: Reshuffle, options: GoogleTranslateConnectorConfigOptions, id?: string); translateText(text: string, source: string, target: string, location?: string, mimeType?: string): Promise; translateTexts(text: string[], source: string, target: string, location?: string, mimeType?: string): Promise; sdk(): v3.TranslationServiceClient; } export { GoogleTranslateConnector };