import { ISignatureGeneratorConstructor } from '../signatureFactory/interface'; import { IHash, IKeyPair } from '../../interfaces'; export declare type TTransactionRequest = (data: IHash, keyPair: IKeyPair) => Promise; export interface IFetchWrapper { (path: string, options?: IHash): Promise; } export declare const enum VERSIONS { V1 = 0 } export declare const POST_TEMPLATE: { method: string; headers: { 'Accept': string; 'Content-Type': string; }; }; export declare function normalizeHost(host: any): string; export declare function normalizePath(path: any): string; export declare function processJSON(res: any): any; export declare function createFetchWrapper(version: VERSIONS, pipe?: Function): IFetchWrapper; export declare function wrapTxRequest(SignatureGenerator: ISignatureGeneratorConstructor, preRemapAsync: (data: IHash) => Promise>, postRemap: (data: IHash) => IHash, callback: (postParams: IHash) => Promise, withProofs?: boolean): (data: IHash, keyPair: IKeyPair) => Promise;