import { userMessage as proto } from '../proto/index';
import { Service } from '../service/Service';
export declare type UserDataType = Uint8Array | string;
export declare class UserMessage extends Service<proto.IMessage, proto.Message> {
    static readonly SERVICE_ID: number;
    private buffers;
    constructor();
    clean(): void;
    encodeUserMessage(data: UserDataType): Uint8Array[];
    decodeUserMessage(bytes: Uint8Array, senderId: number): UserDataType | undefined;
    private userDataToType;
    private getBuffer;
    private setBuffer;
}
