import * as bitcoin from "bitcoinjs-lib"; import { Command } from "commander"; import { ECPairInterface } from "ecpair"; import { EncodingFormat, RevertOptions } from "../src/chains/bitcoin/inscription/encode"; export interface BitcoinKeyPair { address: string; key: ECPairInterface; } export interface TransactionInfo { amount: string; commitFee: number; depositFee: number; encodedMessage?: string; format: EncodingFormat; gateway: string; network: string; operation: string; rawInscriptionData: string; receiver?: string; revealFee: number; revertOptions: RevertOptions; sender: string; } /** * Sets up a Bitcoin key pair using either a provided private key or one stored in the account data */ export declare const setupBitcoinKeyPair: (privateKey: string | undefined, name: string, network: bitcoin.Network) => BitcoinKeyPair; /** * Displays transaction details to the user and asks for confirmation before proceeding */ export declare const displayAndConfirmTransaction: (info: TransactionInfo) => Promise; /** * Displays memo transaction details to the user and asks for confirmation before proceeding */ export declare const displayAndConfirmMemoTransaction: (amount: number, networkFee: number, depositFee: number, gateway: string, sender: string, memo: string, network: "signet" | "mainnet") => Promise; /** * Broadcasts a raw Bitcoin transaction to the network */ export declare const broadcastBtcTransaction: (txHex: string, api: string) => Promise; export declare const createBitcoinCommandWithCommonOptions: (name: string) => Command; export declare const createBitcoinMemoCommandWithCommonOptions: (name: string) => Command; export declare const createBitcoinInscriptionCommandWithCommonOptions: (name: string) => Command; /** * Parses a Bitcoin amount string and converts it to satoshis as a number */ export declare const parseAmount: (amount: string) => number;