import { BaseProvider, type ProviderInfo } from './base.js'; import type { CohereProviderConfig } from '../types/config.js'; import type { CompletionRequest } from '../types/messages.js'; import type { NexusResponse, NexusStream } from '../types/response.js'; /** Cohere's Chat API. */ export declare class CohereProvider extends BaseProvider { /** Always `cohere`, hosted. */ readonly info: ProviderInfo; private config; constructor(config: CohereProviderConfig); /** Runs one completion. */ complete(request: CompletionRequest): Promise; /** Streams one completion. */ stream(request: CompletionRequest): NexusStream; /** Whether the models endpoint answers with the configured key. */ healthCheck(): Promise; private baseUrl; private stripPrefix; private extractResponseText; private estimateCost; }