import ProtoBufJs, { Long } from "protobufjs"; export declare const ROOT: ProtoBufJs.Root; export declare function encode(header: Uint8Array, body: Uint8Array, key: string): Promise>; export declare function decrypt(buffer: Uint8Array, key: string): Promise | null | undefined>; export declare function decodeHeader(buffer: Uint8Array): ProtoBufJs.Message<{}>; export declare function genPushMessagePack(seqId: number, instanceId: Long, uid: number, key: string): Promise>; export declare function genHeartbeatPack(seqId: number, instanceId: Long, uid: number, key: string, ticket: string, liveId: string): Promise>; export declare function genEnterRoomPack(seqId: number, instanceId: Long, uid: number, key: string, enterRoomAttach: string, ticket: string, liveId: string): Promise>; export declare function genRegisterPack(seqId: number, instanceId: Long, uid: number, key: string, token: string): Promise>; export declare function genKeepAlivePack(seqId: number, instanceId: Long, uid: number, key: string): Promise>;