import { EosDate, EosAsset, EosEntityName, EosSymbol } from '../models/generalModels'; /** Expects a format of time_point/time_point_sec * Example here: https://eosio.stackexchange.com/questions/4830/can-we-store-date-on-eosio-table/4831 * */ export declare function isValidEosDate(str: string): str is EosDate; export declare function isValidEosAsset(str: EosAsset | string): str is EosAsset; /** Expects a string composed of up to 7 upper-case letters */ export declare function isValidEosSymbol(str: EosSymbol | string): str is EosSymbol; export declare function isValidEosEntityName(str: EosEntityName | string): str is EosEntityName; export declare function toEosDate(date: string | Date | EosDate): EosDate; /** pads an amount string with decimal places (specified by precision) as needed by EOS chain /* e.g. amount:'1', precision:4 = '1.0000' */ export declare function toEosAssetPaddedAmount(amount: string, precision?: number): string; /** Construct a well-formatted EOS Asset string * amount is a string that must contain the number of precision digits that the token was created with * e.g. '1.0000 EOS' for EOS (4 digits of precision) or '1.00 MYSM' for a token created with 2 decimals of precision */ export declare function toEosAsset(amount: string, symbol: string, precision?: number): EosAsset; /** Construct a valid EOS Symbol - e.g. 'EOS' */ export declare function toEosSymbol(symbol?: string): EosSymbol; export declare function toEosEntityName(name: string): EosEntityName; /** * Returns a valid eosEntityName or null (Useful when the name can be null) */ export declare function toEosEntityNameOrNull(name: string): EosEntityName; /** * Returns a valid eosEntityName or empty string (Useful when eos transactions accepts empty string) */ export declare function toEosEntityNameOrEmptyString(name: string): EosEntityName | ''; /** Create or decompose an EosAsset * Provide either qty and symbol OR a fully formed string (e.g. '1.000 EOS') */ export declare class EosAssetHelper { private _amount; private _symbol; private _asset; constructor(amount?: string, symbol?: string, assetString?: string); get asset(): import("@open-rights-exchange/chain-js/dist/cjs/src/models").ChainAssetBrand; get amount(): string; /** The options provided when the transaction class was created */ get symbol(): import("@open-rights-exchange/chain-js/dist/cjs/src/models").ChainSymbolBrand; /** Convert a string with a number and symbol into a well-formed EOS asset string - if possible */ toEosAssetFromString(assetString?: string): EosAsset; }