import { TParser } from './parsePrimitives'; import { TSchema } from './schemaTypes'; export declare type TToLongConverter = (val: string) => LONG; /** * Creates Uint8Array parser from object schema. If toLongConverter is provided it will be used for all LONG primitives found in schema * @param schema * @param toLongConverter */ export declare const parserFromSchema: (schema: TSchema, toLongConverter?: TToLongConverter | undefined) => TParser; export declare const parseHeader: (bytes: Uint8Array) => { type: number; version: number; }; /** * This function cannot parse transactions without version */ export declare function parseTx(bytes: Uint8Array, toLongConverter?: TToLongConverter): any; /** * This function cannot parse OrderV1, which doesn't have version field */ export declare function parseOrder(bytes: Uint8Array, toLongConverter?: TToLongConverter): any;