import { KeyValuePair } from "../types/Common"; /** * parse [{key:"row_count",value:4}] to {row_count:4} * @param data key value pair array * @param keys all keys in data * @returns {key:value} */ export declare const formatKeyValueData: (data: KeyValuePair[], keys: string[]) => { [x: string]: any; }; /** * parse {row_count:4} to [{key:"row_count",value:"4"}] * @param data Object * @return {KeyValuePair[]} */ export declare const parseToKeyValue: (data?: { [x: string]: any; } | undefined) => KeyValuePair[]; /** * * @param number Number like 3.1738998889923096 * @param precision The precision you want, if is 3 will return 3.173 and If is 2 will return 3.17 * @returns */ export declare const formatNumberPrecision: (number: number, precision: number) => number; /** * Convert a hybrid timestamp to UNIX Epoch time ignoring the logic part. * * @param data * | Property | Type | Description | * | :---------------- | :---- | :------------------------------- | * | hybridts | String or BigInt | The known hybrid timestamp to convert to UNIX Epoch time. Non-negative interger range from 0 to 18446744073709551615. | * * * * @return * | Property | Description | * | :-----------| :------------------------------- | * | unixtime as string | The Unix Epoch time is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT). | * * * #### Example * * ``` * const res = hybridtsToUnixtime("429642767925248000"); * ``` */ export declare const hybridtsToUnixtime: (hybridts: bigint | string) => string; /** * Generate a hybrid timestamp based on Unix Epoch time, timedelta and incremental time internval. * * @param data * | Property | Type | Description | * | :---------------- | :---- | :------------------------------- | * | unixtime | string or bigint | The known Unix Epoch time used to generate a hybrid timestamp. The Unix Epoch time is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT). | * * * * @return * | Property | Type | Description | * | :-----------| :--- | :------------------------------- | * | Hybrid timetamp | String | Hybrid timetamp is a non-negative interger range from 0 to 18446744073709551615. | * * * #### Example * * ``` * const res = unixtimeToHybridts("429642767925248000"); * ``` */ export declare const unixtimeToHybridts: (unixtime: bigint | string) => string; /** * Generate a hybrid timestamp based on datetime。 * * @param data * | Property | Type | Description | * | :---------------- | :---- | :------------------------------- | * | datetime | Date | The known datetime used to generate a hybrid timestamp. | * * * * @return * | Property | Type | Description | * | :-----------| :--- | :------------------------------- | * | Hybrid timetamp | String | Hybrid timetamp is a non-negative interger range from 0 to 18446744073709551615. | * * * #### Example * * ``` * const res = datetimeToHybrids("429642767925248000"); * ``` */ export declare const datetimeToHybrids: (datetime: Date) => string; export declare const stringToBase64: (str: string) => string;