export = BitglobalBase; /** * Bitglobal base class for method which included in any wallet type */ declare class BitglobalBase extends ExchangeBase { /** * @param {import('../../base/exchange').BaseOptions} options User defined options for in http client lib */ constructor(options: import('../../base/exchange').BaseOptions); /** * @type {BitglobalCache} */ cache: BitglobalCache; msgNo: number; signatureEncoding: string; /** * Make http request based on constructor settings * * @param {URL} url * @param {import('http').RequestOptions} options * @returns {object}; */ publicFetch(url: URL, options?: import('http').RequestOptions): object; /** * Make authenticated http request based on constructor settings * * @param {string} url * @param {import('http').RequestOptions} options * @returns {any} */ privateFetch(url: string, options?: import('http').RequestOptions): any; /** * Connect to authenticated API * * @param {object} keys * @param {string} keys.publicKey * @param {string} keys.privateKey Same as secret key * @returns {this} */ auth({ publicKey, privateKey }: { publicKey: string; privateKey: string; }): this; /** * Is instance has keys to authenticate on not * * @type {boolean} */ get hasKeys(): boolean; /** * Ping bitglobal servers * * @public */ public ping(): Promise; /** * @private */ private throwIfNotHasKeys; /** * @param {Error} err * @private */ private handleFetcherError; handleUnexpectedResponse(response: any): any; createHmacSignatureBitglobal(sigParams: any, privateKey: any, encoding: any): string; /** * @typedef {import('../../../../base/schemas/orderParams').ZenfuseOrderParams} OrderParams */ /** * Zenfuse -> Bitglobal * * @param {OrderParams} zOrder * @returns {object} Order for bitglobal api */ transformZenfuseOrder(zOrder: any): object; /** * @typedef {import('../../../../base/schemas/openOrder').PlacedOrder} PlacedOrder */ /** * Bitglobal -> Zenfuse * * @param {*} bOrder Order from Bitglobal REST * @param {object} zInitialOrder * @returns {PlacedOrder} Zenfuse Order */ transformBitglobalOrder(bOrder: any, zInitialOrder?: object): any; /** * Order modifier for price and quantity. Provide decimal precision context for basic method. * * @protected * @param {OrderParams} zOrder * @returns {OrderParams} */ protected preciseOrderValues(zOrder: any): any; [keysSymbol]: {}; } import ExchangeBase = require("../../base/exchange"); import BitglobalCache = require("./etc/cache"); declare const keysSymbol: unique symbol;