import { RoomStatus, RoomStatusChange } from '../../../core/room-status.js'; import * as Ably from '@ably/pubsub-core'; /** * The response object for the useRoomStatus hook. */ export interface UseRoomStatusResponse { /** * The current status of the room. */ readonly status: RoomStatus; /** * The error that caused the room to transition to an errored state. */ readonly error?: Ably.ErrorInfo; } /** * The parameters for the useRoomStatus hook. */ export interface UseRoomStatusParams { /** * A listener for room status changes. */ onRoomStatusChange?: (change: RoomStatusChange) => void; }