import { Message, MessageInput } from './database.js'; export interface ConversationTree { id: string; title: string; task_description: string; children: ConversationTree[]; } export interface SearchResult { conversation_id: string; message_id: string; prev_message_id: string | null; next_message_id: string | null; author: string; payload: string; created_at: number; } /** * Save or update a conversation with messages */ export declare function remixConversation(newConversationId: string, title: string, taskDescription: string, messages: MessageInput[], oldConversationId?: string): Promise<{ success: boolean; conversation_id: string; message: string; }>; /** * Retrieve all messages for a conversation as an array */ export declare function continueConversation(conversationId: string): Promise; /** * Build a tree structure of conversations */ export declare function readConversationTree(rootConversation?: string): Promise; /** * Search messages from child conversation up to all parent conversations */ export declare function searchParents(keywords: string[], childConversationId: string): Promise; /** * Search messages from parent conversation down to all child conversations recursively */ export declare function searchChildren(keywords: string[], parentConversationId: string): Promise; //# sourceMappingURL=tools.d.ts.map