import { serializeOrder, serializeTx, TFromLongConverter } from './serialize'; import { parseOrder, parseTx, TToLongConverter } from './parse'; import * as json from './jsonMethods'; import * as serializePrimitives from './serializePrimitives'; import * as parsePrimitives from './parsePrimitives'; import * as schemas from './schemas'; import { TSchema } from './schemaTypes'; declare const binary: { serializerFromSchema: (schema: TSchema, fromLongConverter?: TFromLongConverter | undefined) => serializePrimitives.TSerializer; serializeTx: typeof serializeTx; serializeOrder: typeof serializeOrder; parserFromSchema: (schema: TSchema, toLongConverter?: TToLongConverter | undefined) => parsePrimitives.TParser; parseTx: typeof parseTx; parseOrder: typeof parseOrder; }; export { TFromLongConverter, TToLongConverter, json, binary, schemas, serializePrimitives, parsePrimitives, convertLongFields, convertTxLongFields }; /** * Converts all LONG fields to another type with toConverter using schema. If no toConverter is provided LONG fields will be converted to strings. * If object contains custom LONG instances and this instances doesn't have toString method, you can provide fromConverter * @param obj * @param schema * @param toConverter - used to convert string to LONG. If not provided, string will be left as is * @param fromConverter - used to convert LONG to string. If not provided, toString will be called */ declare function convertLongFields(obj: any, schema: TSchema, toConverter?: TToLongConverter, fromConverter?: TFromLongConverter): any; declare function convertTxLongFields(tx: any, toConverter?: TToLongConverter, fromConverter?: TFromLongConverter): any;