/** * Internal dependencies */ import GenerativeAiModel from './generative-ai-model'; import { Content, Part, Candidates, AsyncCandidatesGenerator } from '../types'; /** * Special model class only used for models of the 'browser' service. * * @since 0.3.0 */ export default class BrowserGenerativeAiModel extends GenerativeAiModel { /** * Generates text content using the model. * * @since 0.3.0 * * @param content - Content data to pass to the model, including the prompt and optional history. * @returns Model response candidates with the generated text content. */ generateText(content: string | Part[] | Content | Content[]): Promise; /** * Generates text content using the model, streaming the response. * * @since 0.3.0 * * @param content - Content data to pass to the model, including the prompt and optional history. * @returns The generator that yields chunks of response candidates with the generated text content. */ streamGenerateText(content: string | Part[] | Content | Content[]): Promise; } //# sourceMappingURL=browser-generative-ai-model.d.ts.map