import { Serializable } from '../internals/serializable.cjs'; import { a as ChatModel, F as FullModelName } from '../chat-C20nYj46.cjs'; import { EmbeddingModel } from './embedding.cjs'; import { ProviderName } from './constants.cjs'; import { OptionalExcept } from '../internals/types.cjs'; import '../internals/helpers/guards.cjs'; import './message.cjs'; import 'ai'; import '../context.cjs'; import '../emitter-D4OcelZ9.cjs'; import '../internals/helpers/promise.cjs'; import '../errors.cjs'; import 'promise-based-task'; import '../cache/base.cjs'; import '../tools/base.cjs'; import 'ajv'; import '../internals/helpers/schema.cjs'; import 'zod'; import 'zod-to-json-schema'; import '../template.cjs'; import '../logger/logger.cjs'; import 'pino'; /** * Copyright 2025 © BeeAI a Series of LF Projects, LLC * SPDX-License-Identifier: Apache-2.0 */ interface BackendModels { chat: ChatModel; embedding: EmbeddingModel; } declare class Backend extends Serializable implements BackendModels { chat: ChatModel; embedding: EmbeddingModel; constructor(models: BackendModels); static fromName(input: OptionalExcept, "chat">): Promise; static fromProvider(provider: ProviderName): Promise; createSnapshot(): { chat: ChatModel; embedding: EmbeddingModel; }; loadSnapshot(snapshot: ReturnType): void; } export { Backend };