/**
* Copyright 2017–2019, LaborX PTY
* Licensed under the AGPL Version 3 license.
*/
import BigNumber from "bignumber.js";
import * as Types from "./types";
/**
* Encodes contract type into byte presentation.
*
* It is a part of encoding library of contract data.
* @param value contract type
*/
export declare function encodeContractType(value: Types.ContractType): string;
/**
* Encodes payment timeline into byte presentation.
*
* It is a part of encoding library of contract data.
* @param value payment timeline
*/
export declare function encodePaymentTimeline(value: Types.PaymentTimeline): string;
/**
* Encodes payment value type into byte presentation.
*
* It is a part of encoding library of contract data.
* @param value payment value type
*/
export declare function encodePaymentValueType(value: Types.PaymentValueType): string;
/**
* Encodes penalty application type into byte presentation.
*
* It is a part of encoding library of contract data.
* @param value penalty application type
*/
export declare function encodePenaltyApplicationType(value: Types.PenaltyApplicationType): string;
/**
* Encodes termination party into byte presentation.
*
* It is a part of encoding library of contract data.
* @param value termination party
*/
export declare function encodeTerminationParty(value: Types.TerminationParty): string;
/**
* Encodes data structure type into byte presentation.
*
* It is a part of encoding library of contract data.
* @param value data structure type
*/
export declare function encodeDataStructureType(value: Types.DataStructureType): string;
/**
* Encodes an address into byte presentation.
*
* It is a part of encoding library of contract data.
* @param value address
*/
export declare function encodeAddress(value: string | undefined): string;
export declare const encodeUInt8Number: (value: string | number | BigNumber | undefined) => string;
export declare const encodeUInt16Number: (value: string | number | BigNumber | undefined) => string;
export declare const encodeUInt32Number: (value: string | number | BigNumber | undefined) => string;
export declare const encodeUInt64Number: (value: string | number | BigNumber | undefined) => string;
export declare const encodeUInt128Number: (value: string | number | BigNumber | undefined) => string;
export declare const encodeUInt256Number: (value: string | number | BigNumber | undefined) => string;
/**
* Creates encoding function to encode a value with provided number of bytes
*
* It is a part of encoding library of contract data.
* @param numberOfBytes number of bytes that will be resulted by the returned function
*/
export declare function encodeBytesNumber(numberOfBytes: number): (value: number | BigNumber | string | undefined) => string;
/**
* Encodes boolean into byte presentation.
*
* It is a part of encoding library of contract data.
* @param value boolean
*/
export declare function encodeBoolean(value: boolean | undefined): string;
/**
* Encodes string into byte presentation.
*
* It is a part of encoding library of contract data.
* @param value string
*/
export declare function encodeString(value: string | undefined): string;
/**
* Encodes generic input by provided encoder function.
*
* It is a part of encoding library of contract data.
* @param data source provider
* @param key key to access data from source provider
* @param encoder encoder function to be applied
*/
export declare function encodeValue(data: Input, key: K, encoder: (v: Input[K]) => EncodedResult): EncodedResult;
/**
* Encodes generic input by provided encoder function. Allows to
* have 'undefined' value for provided `key`, skips any value in that case.
*
* It is a part of encoding library of contract data.
* @param data source provider
* @param key key to access data from source provider, value for key could be optional
* @param encoder encoder function to be applied
*/
export declare function encodeOptionalValue(data: Input, key: K, encoder: (v: NonNullable) => string): string;