import type { NodeWithScore } from "./Node.js"; import type { ChatMessage, ChatResponse, ChatResponseChunk } from "./llm/types.js"; export declare class EngineResponse implements ChatResponse, ChatResponseChunk { #private; sourceNodes?: NodeWithScore[]; metadata: Record; message: ChatMessage; raw: object | null; private constructor(); static fromResponse(response: string, stream: boolean, sourceNodes?: NodeWithScore[]): EngineResponse; private static toChatResponse; static fromChatResponse(chatResponse: ChatResponse, sourceNodes?: NodeWithScore[]): EngineResponse; static fromChatResponseChunk(chunk: ChatResponseChunk, sourceNodes?: NodeWithScore[]): EngineResponse; get response(): string; get delta(): string; toString(): string; }