declare const _default: RocketChatService; export default _default; /** * Service for interacting with Rocket.Chat REST API. * Handles rooms, messages, and subscriptions. */ declare class RocketChatService { /** * Make an authenticated API request to Rocket.Chat. * * @param {string} endpoint - API endpoint (e.g., '/api/v1/channels.list') * @param {Object} options - Fetch options * @returns {Promise} */ request(endpoint: string, options?: any): Promise; /** * Get list of subscribed rooms (channels, groups, DMs). * * @returns {Promise} */ getSubscriptions(): Promise; /** * Get list of private groups the user is member of. * * @returns {Promise} */ getGroups(): Promise; /** * Get information about a specific room. * * @param {string} roomId - The room ID * @returns {Promise} */ getRoomInfo(roomId: string): Promise; /** * Get message history for a room. * * @param {string} roomId - The room ID * @param {Object} options - Options * @param {number} options.count - Number of messages to fetch (default: 50) * @param {string} options.oldest - Oldest message timestamp * @param {string} options.latest - Latest message timestamp * @returns {Promise} */ getMessages(roomId: string, options?: { count: number; oldest: string; latest: string; }): Promise; /** * Send a message to a room. * * @param {string} roomId - The room ID * @param {string} text - The message text * @returns {Promise} */ sendMessage(roomId: string, text: string): Promise; /** * Mark room as read. * * @param {string} roomId - The room ID * @returns {Promise} */ markAsRead(roomId: string): Promise; /** * Get unread count for all subscriptions. * * @returns {Promise} Map of roomId -> unread count */ getUnreadCounts(): Promise; /** * Get user presence (online status). * * @param {string} userId - The user ID * @returns {Promise} Status: 'online', 'away', 'busy', 'offline' */ getUserPresence(userId: string): Promise; /** * Set user presence. * * @param {string} status - Status: 'online', 'away', 'busy', 'offline' * @returns {Promise} */ setUserPresence(status: string): Promise; /** * Get room members. * * @param {string} roomId - The room ID * @returns {Promise} */ getRoomMembers(roomId: string): Promise; /** * Upload a file to a room. * * @param {string} roomId - The room ID * @param {File} file - The file to upload * @param {string} description - Optional description * @returns {Promise} */ uploadFile(roomId: string, file: File, description?: string): Promise; } //# sourceMappingURL=RocketChatService.d.ts.map