import { ChatOptions, LoadPreviousSessionResponse, SendMessageResponse } from '../types'; export interface SessionListItem { id: string; created_at: string; } export interface GetSessionsResponse { data: SessionListItem[]; } export declare function getSessions(sessionId: string | null, options: ChatOptions): Promise; export declare function loadPreviousSession(sessionId: string, options: ChatOptions): Promise; export declare function loadOrCreateSession(sessionId: string | null, options: ChatOptions): Promise; export declare function newChat(options: ChatOptions): Promise; export declare function sendMessage(message: string, files: File[], sessionId: string, options: ChatOptions): Promise; export interface StreamingEventHandlers { onBeginMessage: (nodeId: string, runIndex?: number) => void; onChunk: (chunk: string, nodeId?: string, runIndex?: number) => void; onToolCallText?: (chunk: string, nodeId?: string, runIndex?: number) => void; onToolCallEnd?: (nodeId?: string, runIndex?: number) => void; onEndMessage: (nodeId: string, runIndex?: number) => void; onTokenLimitError?: (errorContent: any, nodeId?: string, runIndex?: number) => void; } export declare function sendMessageStreaming(message: string, files: File[], sessionId: string, options: ChatOptions, handlers: StreamingEventHandlers, requestSessionId: string | null, currentSessionId: { value: string | null; }): Promise<{ hasReceivedChunks: boolean; }>;