import { OpenAIProvider } from './openai.js'; import type { GroqProviderConfig } from '../types/config.js'; import type { ProviderCallContext } from '../types/lifecycle.js'; import type { CompletionRequest } from '../types/messages.js'; import type { NexusResponse, NexusStream } from '../types/response.js'; /** Groq's chat API. */ export declare class GroqProvider extends OpenAIProvider { /** Always `groq`, hosted. */ readonly info: { name: string; isLocal: boolean; }; constructor(config: GroqProviderConfig); /** Runs one completion. */ complete(request: CompletionRequest, context?: ProviderCallContext): Promise; /** Streams one completion. */ stream(request: CompletionRequest, context?: ProviderCallContext): NexusStream; private stripPrefix; /** * Names Groq as the provider and prices the call against its registry entry, which is filed * under the `groq/` prefix the API does not accept. */ private withProviderMeta; }