/** * @license * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { GenerateContentRequest, GenerateContentResult, GenerateContentStreamResult, SingleRequestOptions } from '../types'; import { ApiSettings } from '../types/internal'; /** * Generates a content stream from a request body. * * @param apiSettings The {@link ApiSettings} to use for the request. * @param model The model to use for the request. * @param params The {@link GenerateContentRequest} to send. * @param requestOptions The {@link SingleRequestOptions} to use for the request. * @returns The {@link GenerateContentStreamResult} from the request. */ export declare function generateContentStream(apiSettings: ApiSettings, model: string, params: GenerateContentRequest, requestOptions?: SingleRequestOptions): Promise; /** * Generates content from a request body. * * @param apiSettings The {@link ApiSettings} to use for the request. * @param model The model to use for the request. * @param params The {@link GenerateContentRequest} to send. * @param requestOptions The {@link SingleRequestOptions} to use for the request. * @returns The {@link GenerateContentResult} from the request. */ export declare function generateContent(apiSettings: ApiSettings, model: string, params: GenerateContentRequest, requestOptions?: SingleRequestOptions): Promise; /** * Generates content from a template with the given ID and variables. * * @param apiSettings The {@link ApiSettings} to use for the request. * @param templateId The ID of the server-side template to execute. * @param templateParams The parameters to populate the template with. * @param requestOptions The {@link SingleRequestOptions} to use for the request. * @returns The {@link GenerateContentResult} from the request. * * @beta */ export declare function templateGenerateContent(apiSettings: ApiSettings, templateId: string, templateParams: object, requestOptions?: SingleRequestOptions): Promise; /** * Generates a content stream from a template with the given ID and variables. * * @param apiSettings The {@link ApiSettings} to use for the request. * @param templateId The ID of the server-side template to execute. * @param templateParams The parameters to populate the template with. * @param requestOptions The {@link SingleRequestOptions} to use for the request. * @returns The {@link GenerateContentStreamResult} from the request. * * @beta */ export declare function templateGenerateContentStream(apiSettings: ApiSettings, templateId: string, templateParams: object, requestOptions?: SingleRequestOptions): Promise; //# sourceMappingURL=generate-content.d.ts.map