export interface ChatStreamEvent { type: 'text' | 'tool_use' | 'tool_result' | 'done' | 'error'; content?: string; toolName?: string; toolInput?: any; } export declare function chat(userMessage: string, teamId: string): AsyncGenerator; export declare function getChatHistory(limit: number | undefined, teamId: string): any[]; export declare function clearChatHistory(teamId: string): void;