import { default as OpenAI } from 'openai'; import { Stream } from 'openai/streaming'; import { DashscopeChat, OpenAIChatCompatibility } from '../types'; export declare function fromChatCompletionMessages(messages: OpenAI.ChatCompletionMessageParam[]): OpenAI.ChatCompletionMessageParam[]; export declare function fromChatCompletionTextMessages(messages: OpenAI.ChatCompletionMessageParam[]): OpenAI.ChatCompletionMessageParam[]; export declare function fromChatCompletionCreateParams(params: OpenAIChatCompatibility.ChatCompletionCreateParams): DashscopeChat.ChatCompletionCreateParams; export declare function toChatCompletionFinishReason(reason?: DashscopeChat.ResponseFinish | null, stream?: boolean): "length" | "stop" | "tool_calls" | "content_filter" | "function_call"; export declare function toChatCompletion(params: DashscopeChat.ChatCompletionCreateParams, response: DashscopeChat.ChatCompletion): OpenAI.ChatCompletion; export declare function toChatCompletionStream(params: DashscopeChat.ChatCompletionCreateParams, response: Response, controller: AbortController): Stream;