import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; export declare class RoomsV2 extends ClientSDK { /** * CreateRoom * * @remarks * Create a new [room](https://hathora.dev/docs/concepts/hathora-entities#room) for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application). Poll the [`GetConnectionInfo()`](https://hathora.dev/api#tag/RoomV2/operation/GetConnectionInfo) endpoint to get connection details for an active room. */ createRoom(createRoomParams: components.CreateRoomParams, appId?: string | undefined, roomId?: string | undefined, options?: RequestOptions): Promise; /** * GetRoomInfo * * @remarks * Retreive current and historical allocation data for a [room](https://hathora.dev/docs/concepts/hathora-entities#room). */ getRoomInfo(roomId: string, appId?: string | undefined, options?: RequestOptions): Promise; /** * GetActiveRoomsForProcess * * @remarks * Get all active [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) for a given [process](https://hathora.dev/docs/concepts/hathora-entities#process). */ getActiveRoomsForProcess(processId: string, appId?: string | undefined, options?: RequestOptions): Promise>; /** * GetInactiveRoomsForProcess * * @remarks * Get all inactive [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) for a given [process](https://hathora.dev/docs/concepts/hathora-entities#process). */ getInactiveRoomsForProcess(processId: string, appId?: string | undefined, options?: RequestOptions): Promise>; /** * DestroyRoom * * @remarks * Destroy a [room](https://hathora.dev/docs/concepts/hathora-entities#room). All associated metadata is deleted. */ destroyRoom(roomId: string, appId?: string | undefined, options?: RequestOptions): Promise; /** * SuspendRoomV2Deprecated * * @remarks * Suspend a [room](https://hathora.dev/docs/concepts/hathora-entities#room). The room is unallocated from the process but can be rescheduled later using the same `roomId`. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ suspendRoomV2Deprecated(roomId: string, appId?: string | undefined, options?: RequestOptions): Promise; /** * GetConnectionInfo * * @remarks * Poll this endpoint to get connection details to a [room](https://hathora.dev/docs/concepts/hathora-entities#room). Clients can call this endpoint without authentication. */ getConnectionInfo(roomId: string, appId?: string | undefined, options?: RequestOptions): Promise; /** * UpdateRoomConfig */ updateRoomConfig(roomId: string, updateRoomConfigParams: components.UpdateRoomConfigParams, appId?: string | undefined, options?: RequestOptions): Promise; /** * ResumeRoom */ resumeRoom(roomId: string, appId?: string | undefined, options?: RequestOptions): Promise; } //# sourceMappingURL=roomsv2.d.ts.map