///
///
import { Transaction } from '@opcat-labs/opcat';
import { FixedArray } from '../smart-contract/types/index.js';
/**
* Converts a Uint8Array to a hexadecimal string.
* @param {Uint8Array} bytes - The input array of bytes.
* @returns {string} The hexadecimal representation of the input bytes.
*/
export declare function uint8ArrayToHex(bytes: Uint8Array): string;
/**
* Converts a hexadecimal string to a Uint8Array.
* @param {string} hex - The hexadecimal string.
* @returns {Uint8Array} The resulting Uint8Array.
*/
export declare function hexToUint8Array(hex: string): Uint8Array;
/**
* create a FixedArray and fill it with initial value
* @param value
* @param len
* @returns
*/
export declare function fillFixedArray(value: T, len: Length): FixedArray;
/** @ignore */
export declare function requireTrue(res: boolean, message: string): void;
/** @ignore */
export declare function getTxId(input: Transaction.Input): string;
/** @ignore */
export declare function cloneDeep(obj: T, hash?: WeakMap): T;
/**
* convert satoshi to hex in little-endian order
* @param value
* @returns
*/
export declare function satoshiToHex(value: bigint): string;
/**
* convert utf8 text to hex string
* @param text
* @returns
*/
export declare function textToHex(text: string): string;
export declare function duplicateFilter(uniqueFn: (item: T) => any): (value: T, index: number, arr: T[]) => boolean;
export declare function isFinal(sequenceNumber: number): boolean;
export declare function toHex(val: Buffer | string | Uint8Array): string;
/**
* Converts a Opcat address to its public key hash (PKH) in hex format.
* @param address - The Opcat address to convert.
* @returns The public key hash as a hex string.
*/
export declare function addrToPkh(address: string): string;
export declare function pushData(data: Buffer): Buffer;
export declare function splitChunks>(buffer: T, chunkSize: number): T[];
//# sourceMappingURL=common.d.ts.map