// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. module blink.mojom; import "third_party/blink/public/mojom/ai/model_streaming_responder.mojom"; // The translator that provides the translation functionalities. interface Translator { // Translate the input from the source language to the target language. Translate(string input, pending_remote pending_responder); // Same as Translate, but streams each sentence through the translation API. TranslateStreaming(string input, pending_remote pending_responder); };