import { GenerateRequest, GenerateResponseData, Operation, z, MediaPart } from 'genkit'; import { ImagenPredictResponse, SafetySetting, ImagenPredictRequest } from '../common/types.js'; import { SafetySettingsSchema } from './gemini.js'; import { ImagenConfigSchemaType, ImagenTryOnConfigSchemaType } from './imagen.js'; import { LyriaConfigSchemaType } from './lyria.js'; import { LyriaPredictResponse, VeoOperation, LyriaPredictRequest, VeoMedia, VeoOperationRequest, VeoPredictRequest } from './types.js'; import { VeoConfigSchemaType } from './veo.js'; import 'genkit/model'; import 'google-auth-library'; /** * Copyright 2025 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. */ declare function toGeminiSafetySettings(genkitSettings?: z.infer[]): SafetySetting[] | undefined; declare function toGeminiLabels(labels?: Record): Record | undefined; declare function toImagenMedia(media: MediaPart['media']): { bytesBase64Encoded?: string; gcsUri?: string; }; declare function toImagenTryOnRequest(request: GenerateRequest): ImagenPredictRequest; declare function toImagenPredictRequest(request: GenerateRequest): ImagenPredictRequest; /** * * @param response The response to convert * @param request The request (for usage stats) * @returns The converted response */ declare function fromImagenResponse(response: ImagenPredictResponse, request: GenerateRequest): GenerateResponseData; declare function toLyriaPredictRequest(request: GenerateRequest): LyriaPredictRequest; declare function fromLyriaResponse(response: LyriaPredictResponse, request: GenerateRequest): GenerateResponseData; declare function toVeoPredictRequest(request: GenerateRequest): VeoPredictRequest; declare function toVeoMedia(media: MediaPart['media']): VeoMedia; declare function fromVeoOperation(fromOp: VeoOperation): Operation; declare function toVeoModel(op: Operation): string; declare function toVeoOperationRequest(op: Operation): VeoOperationRequest; export { fromImagenResponse, fromLyriaResponse, fromVeoOperation, toGeminiLabels, toGeminiSafetySettings, toImagenMedia, toImagenPredictRequest, toImagenTryOnRequest, toLyriaPredictRequest, toVeoMedia, toVeoModel, toVeoOperationRequest, toVeoPredictRequest };