export interface MessageCreatedPayload { conversation_uuid: string; message: { uuid: string; content: string; type: 'user' | 'assistant' | 'agent' | 'system'; author_id: number | null; author_name: string | null; created_at: string; }; conversation_update: { message_count: number; last_message_at: string; joined_at?: string; status?: string; closed_at?: string; archived_at?: string; }; } export interface ConversationCreatedPayload { conversation: { uuid: string; status: string; message_count: number; last_message_at: string | null; created_at: string; }; } export declare function subscribeToConversations(companyUuid: string, onMessageCreated: (payload: MessageCreatedPayload) => void, onConversationCreated: (payload: ConversationCreatedPayload) => void, supabaseUrl?: string, supabaseAnonKey?: string): () => void;