/// <reference types="xmpp__jid" />
import type { JID } from '@xmpp/jid';
import type { Room } from './room';
import type { PresenceStanza } from './stanza';
type RoomUserState = 'offline' | 'online';
export declare class RoomUser {
    protected readonly room: Room;
    protected currentState: RoomUserState;
    readonly jid: JID;
    protected readonly userIsMe: boolean;
    protected role: string;
    protected affiliation: string;
    constructor(room: Room, presence: PresenceStanza);
    update(presence: PresenceStanza): boolean;
    updateNick(nickname: string): void;
    get nick(): string;
    isOnline(): boolean;
    isMe(): boolean;
    isModerator(): boolean;
}
export {};
