/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ import type { IJodit } from "jodit/esm/types/index"; import type { IAIMessage, IConversation, ToolCallStatus } from "../interface/index"; /** * Create new conversation */ export declare function createNewConversation(jodit: IJodit, defaultModel: string | undefined, defaultTemperature: number | undefined, messages?: IConversation['messages']): IConversation; /** * Find last non-error assistant message for parentMessageId */ export declare function findParentMessageId(conversation: IConversation): string | null; /** * Check if a tool call status is terminal (no further action needed) */ export declare function isTerminalToolCallStatus(status: ToolCallStatus): boolean; /** * Check if all tool calls have been executed */ export declare function areAllToolCallsExecuted(conversation: IConversation): boolean; /** * Find messages that have tool calls with non-terminal status * Used to restore pending tool call state after page refresh */ export declare function findMessagesWithPendingToolCalls(conversation: IConversation): IAIMessage[];