import { SignedFixedPoint, UnsignedFixedPoint, BtcAddress } from "../interfaces"; import { ApiPromise } from "@polkadot/api"; import type { Struct } from "@polkadot/types"; import { Network } from "bitcoinjs-lib"; import { StorageKey } from "@polkadot/types/primitive/StorageKey"; import { Codec } from "@polkadot/types/types"; /** * Converts endianness of a Uint8Array * @param bytes Uint8Array, to be converted LE<>BE */ export declare function reverseEndianness(bytes: Uint8Array): Uint8Array; /** * Remove the `0x` hex prefix if present * @param str */ export declare function stripHexPrefix(str: string): string; /** * Reverse the endianness of the given hex string * @dev Will remove `0x` prefix if present * @param hex */ export declare function reverseEndiannessHex(hex: string): string; /** * Converts a Uint8Array to string * @dev Will remove `0x` prefix if present * @param bytes */ export declare function uint8ArrayToString(bytes: Uint8Array): string; export declare function decodeFixedPointType(x: SignedFixedPoint | UnsignedFixedPoint): string; export declare function encodeUnsignedFixedPoint(api: ApiPromise, x: string): UnsignedFixedPoint; export declare function storageKeyToFirstInner(s: StorageKey<[T]>): T; export interface DecodedRequest extends Struct { readonly btc_address: BtcAddress; } export interface DecodedRequestExt extends Omit { btc_address: string; } export declare function encodeParachainRequest(req: T, network: Network): K;