import { ExecutionOptions, LLMCache, LLMMeta, EmbeddingOptions, EmbeddingOutput, BaseLLMTokenizeOutput, GenerateOptions, StreamGenerateOptions, AsyncStream, BaseLLMEvents } from '../../llms/base.js'; import { ChatLLMOutput, ChatLLMGenerateEvents, ChatLLM } from '../../llms/chat.js'; import { BaseMessage } from '../../llms/primitives/message.js'; import { E as Emitter } from '../../emitter-l0W9gC1A.js'; import { Groq } from 'groq-sdk'; import { GetRunContext } from '../../context.js'; import { ChatCompletionCreateParams } from 'groq-sdk/resources/chat/completions'; import '../../errors.js'; import '../../internals/types.js'; import '../../internals/helpers/guards.js'; import '../../internals/serializable.js'; import '../../cache/base.js'; import 'promise-based-task'; import '../../internals/helpers/promise.js'; type Parameters = Omit; type Response = Omit; declare class ChatGroqOutput extends ChatLLMOutput { readonly responses: Response[]; constructor(response: Response); get messages(): BaseMessage[]; getTextContent(): string; merge(other: ChatGroqOutput): void; toString(): string; createSnapshot(): { responses: Response[]; }; loadSnapshot(snapshot: ReturnType): void; } interface Input { modelId?: string; client?: Groq; parameters?: Parameters; executionOptions?: ExecutionOptions; cache?: LLMCache; } type GroqChatLLMEvents = ChatLLMGenerateEvents; declare class GroqChatLLM extends ChatLLM { readonly emitter: Emitter; readonly client: Groq; readonly parameters: Partial; constructor({ client, modelId, parameters, executionOptions, cache, }?: Input); meta(): Promise; embed(input: BaseMessage[][], options?: EmbeddingOptions): Promise; tokenize(input: BaseMessage[]): Promise; protected _prepareRequest(input: BaseMessage[], options: GenerateOptions): ChatCompletionCreateParams; protected _generate(input: BaseMessage[], options: GenerateOptions, run: GetRunContext): Promise; protected _stream(input: BaseMessage[], options: Partial, run: GetRunContext): AsyncStream; createSnapshot(): { parameters: Partial; client: Groq; modelId: string; executionOptions: ExecutionOptions; emitter: Emitter>; cache: LLMCache; }; } export { ChatGroqOutput, GroqChatLLM, type GroqChatLLMEvents };