import { ProtoTable, ByteShiftProtoTable } from './ProtoTable'; declare type NumberReader = (m: T, type: string, start: number, size: number) => number; /** * Computes byte shift protocol table for static and dynamic types. * For dynamic types it reads size from a supplementary UInt32BE field. * @param { BinaryMessage } msg0 - binary message. * @param { ProtoTable } protoTable - protocol table. * @param { NumberReader } readAsNumber - binary reader. */ export declare function fromBinary(msg0: BinaryMessage, protoTable: ProtoTable, readAsNumber: NumberReader): ByteShiftProtoTable; /** * Computes byte table for JavaScript object. * @param { Object } obj - target object to be binarified. * @param { ProtoTable } protoTable - protocol table. * @param { Function } dynamicToBinary - function to convert and calculate dynamic's binary size. */ export declare function toBinary(obj: any, protoTable: ProtoTable, dynamicToBinary: (type: string, val: any) => { byteLength: number; length: number; }): any[]; export {};