export interface EncryptedPacket { commandId?: number; encryptionKeyId?: number; payload?: Uint8Array; hash?: Uint8Array; } export declare function encodeEncryptedPacket(message: EncryptedPacket): Uint8Array; export declare function decodeEncryptedPacket(binary: Uint8Array): EncryptedPacket; export interface Packet { expireAt?: number; setKey?: SetKey; unlock?: Unlock; timeSync?: TimeSync; nuke?: Nuke; protect?: Protect; } export declare function encodePacket(message: Packet): Uint8Array; export declare function decodePacket(binary: Uint8Array): Packet; export interface SetKey { keyIndex?: number; publicKey?: Uint8Array; expireAt?: number; } export declare function encodeSetKey(message: SetKey): Uint8Array; export declare function decodeSetKey(binary: Uint8Array): SetKey; export interface Unlock { lockId?: number; } export declare function encodeUnlock(message: Unlock): Uint8Array; export declare function decodeUnlock(binary: Uint8Array): Unlock; export interface TimeSync { timestamp?: number; } export declare function encodeTimeSync(message: TimeSync): Uint8Array; export declare function decodeTimeSync(binary: Uint8Array): TimeSync; export interface Nuke { } export declare function encodeNuke(message: Nuke): Uint8Array; export declare function decodeNuke(binary: Uint8Array): Nuke; export interface Protect { } export declare function encodeProtect(message: Protect): Uint8Array; export declare function decodeProtect(binary: Uint8Array): Protect; export interface Result { commandId?: number; value?: number; errorCode?: number; } export declare function encodeResult(message: Result): Uint8Array; export declare function decodeResult(binary: Uint8Array): Result; export interface Long { low: number; high: number; unsigned: boolean; }