import { ApiPromise } from "@polkadot/api"; import { Currency } from "@equilab/api/equilibrium"; import { FailResponse, HTTPRequestBody, SuccessResponse } from "../types/common"; export declare const getPackageJson: () => Promise<{ version: string; }>; export declare const isValidRequestBody: (raw: unknown) => raw is HTTPRequestBody; export declare const fail: (error: E) => FailResponse; export declare const success: (payload: T) => SuccessResponse; export declare const DEFAULT_DECIMALS = 9; export declare const getDecimals: (api: ApiPromise, currency: Currency) => number; export declare const getDecimalsCoefficient: (api: ApiPromise, currency: Currency) => number; export declare const binaryFind: (arr: T[], targetCond: (el: T, i: number, arr: T[]) => boolean, truncLeftCond: (el: T, i: number, arr: T[]) => boolean) => T | undefined;