import { Client } from '@xmpp/client';
export type SubscribeResult = {
    ok: true;
} | {
    ok: false;
    reason?: 'forbidden' | 'error' | 'timeout';
    message?: string;
};
export declare function subscribeToRoomMessages(client: Client, roomJID: string, userNick?: string): Promise<SubscribeResult>;
