import { ApiRoom, DeleteRoomMember, PostAddRoomMember, PostReportRoom, PostRoom, RoomMember } from '../../types/models/room.model';
/**
 * REST equivalent of getRoomsStanza. Used by initBeforeLoad to prefetch
 * the room list in parallel with the XMPP handshake. Results are cached
 * per-token for 60s so a downstream re-fetch on mount is a no-op.
 */
export declare function getRooms(): Promise<{
    items: ApiRoom[];
}>;
export declare function getRoomByName(chatName: string): Promise<ApiRoom>;
export declare function postRoom(data: PostRoom): Promise<any>;
export declare function postPrivateRoom(username: string, title?: string): Promise<ApiRoom>;
export declare function postReportRoom(data: PostReportRoom): Promise<any>;
export declare function postAddRoomMember(data: PostAddRoomMember): Promise<RoomMember[]>;
export declare function deleteRoomMember(data: DeleteRoomMember): Promise<any>;
export declare function deleteRoom(name: string): Promise<any>;
export declare function clearRoomsRestCache(): void;
export type { ApiRoom };
//# sourceMappingURL=rooms.api.d.ts.map