/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@react-native-firebase/ai@24.0.0/dist/module/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";
/**
 * @license
 * 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.
 */import"./polyfills";import{getApp}from"@react-native-firebase/app";import{GoogleAIBackend}from"./backend.js";import{AIErrorCode}from"./types/index.js";import{AIError}from"./errors.js";import{GenerativeModel}from"./models/generative-model.js";import{AIModel,ImagenModel,LiveGenerativeModel,TemplateGenerativeModel,TemplateImagenModel}from"./models/index.js";import{WebSocketHandlerImpl}from"./websocket.js";export*from"./public-types.js";export{ChatSession}from"./methods/chat-session.js";export{LiveSession}from"./methods/live-session.js";export*from"./requests/schema-builder.js";export{ImagenImageFormat}from"./requests/imagen-image-format.js";export{Backend,GoogleAIBackend,VertexAIBackend}from"./backend.js";export{GenerativeModel,AIError,AIModel,ImagenModel,LiveGenerativeModel,TemplateGenerativeModel,TemplateImagenModel};export function getAI(e=getApp(),o){const r=o?.backend??new GoogleAIBackend;return{app:e,backend:r,options:{useLimitedUseAppCheckTokens:o?.useLimitedUseAppCheckTokens??!1,appCheck:o?.appCheck||null,auth:o?.auth||null},location:r?.location||"",appCheck:o?.appCheck||null,auth:o?.auth||null}}export function getGenerativeModel(e,o,r){if(!o.model)throw new AIError(AIErrorCode.NO_MODEL,"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })");return new GenerativeModel(e,o,r)}export function getImagenModel(e,o,r){if(!o.model)throw new AIError(AIErrorCode.NO_MODEL,"Must provide a model name. Example: getImagenModel({ model: 'my-model-name' })");return new ImagenModel(e,o,r)}export function getLiveGenerativeModel(e,o){if(!o.model)throw new AIError(AIErrorCode.NO_MODEL,"Must provide a model name for getLiveGenerativeModel. Example: getLiveGenerativeModel(ai, { model: 'my-model-name' })");const r=new WebSocketHandlerImpl;return new LiveGenerativeModel(e,o,r)}export function getTemplateGenerativeModel(e,o){return new TemplateGenerativeModel(e,o)}export function getTemplateImagenModel(e,o){return new TemplateImagenModel(e,o)}
//# sourceMappingURL=/sm/12a825d3da203f6f2d6cef2c9c806831df062c557a8eac55abf59f9e10b3e923.map