import { ChatHistoryItem, LlamaTextJSON } from 'node-llama-cpp'; import { CompletionFinishReason, ChatMessage, ToolCallResult } from '../../types/index.js'; import { LlamaChatResult } from './types.js'; export declare function mapFinishReason(nodeLlamaCppFinishReason: LlamaChatResult['stopReason']): CompletionFinishReason; export declare function addFunctionCallToChatHistory({ chatHistory, functionName, functionDescription, callParams, callResult, rawCall, startsNewChunk }: { chatHistory: ChatHistoryItem[]; functionName: string; functionDescription?: string; callParams: any; callResult: ToolCallResult; rawCall?: LlamaTextJSON; startsNewChunk?: boolean; }): ChatHistoryItem[]; export declare function createChatMessageArray(messages: ChatMessage[]): ChatHistoryItem[]; export declare function readGBNFFiles(directoryPath: string): Promise>;