import { Runtime } from '../index';
/**
 * create auth header data to authenticate with current account against a smart agent server
 *
 * @param      {Runtime}  runtime    an initialized runtime
 * @param      {string}   message    (optional): message to sign, uses current timestamp by default
 * @return     {Promise<string>}  auth header value as string
 */
export declare function getSmartAgentAuthHeaders(runtime: Runtime, message?: string): Promise<string>;
/**
 * retrieves chain name from web3's connected networks id, testcore is 508674158, core is 49262, if
 * not matching any of both, chain is threaded as testcore
 *
 * @param      {any}  web3    connected web3 instance
 * @return     {Promise<string>}  name of current chain
 */
export declare function getEnvironment(web3: any): Promise<string>;
/**
 * obfuscates strings by replacing each character but the last two with 'x'
 *
 * @param      {string}  text    text to obfuscate
 * @return     {string}  obfuscated text
 */
export declare function obfuscate(text: string): string;
/**
* run given function from this, use function(error, result) {...} callback for promise resolve/reject
* can be used like:
* api.helpers
*   .runFunctionAsPromise(fs, 'readFile', 'somefile.txt')
*   .then(content => console.log('file content: ' + content))
* ;
*
* @param  {Object} funThis      the functions 'this' object
* @param  {string} functionName name of the contract function to call
* @return {Promise}             resolves to: {Object} (the result from the function(error, result) {...} callback)
*/
export declare function promisify(funThis: any, functionName: any, ...args: any[]): Promise<any>;
