import { type Network } from "../config/index.js"; import { type Account, type TransferResult } from "../transactions/builder.js"; export interface SbtcBalance { balance: string; balanceSats: string; balanceBtc: string; } export interface SbtcPegInfo { totalSupply: string; totalSupplySats: string; totalSupplyBtc: string; pegRatio: string; } export interface SbtcDepositInfo { depositAddress: string; minDeposit: string; maxDeposit: string; instructions: string[]; } export interface SbtcWithdrawalRecipient { version: number; hashbytesHex: string; } export interface SbtcWithdrawalRequest { id: number; amountSats: string; maxFeeSats: string; sender: string; blockHeight: string; recipient: SbtcWithdrawalRecipient; status: "pending" | "accepted" | "rejected"; } export declare class SbtcService { private network; private hiro; private contracts; constructor(network: Network); /** * Get sBTC balance for an address */ getBalance(address: string): Promise; /** * Transfer sBTC to a recipient * @param fee Optional fee in micro-STX. If omitted, fee is auto-estimated. */ transfer(account: Account, recipient: string, amount: bigint, memo?: string, fee?: bigint, sponsored?: boolean): Promise; /** * Get sBTC deposit instructions * Note: sBTC deposits require interacting with the Bitcoin network directly */ getDepositInfo(): Promise; /** * Get sBTC peg information */ getPegInfo(): Promise; /** * Initiate an sBTC withdrawal request (peg-out) through sbtc-withdrawal. * Locks (amount + maxFee) of sBTC until signer acceptance/rejection. */ initiateWithdrawal(account: Account, amount: bigint, maxFee: bigint, recipient: SbtcWithdrawalRecipient, fee?: bigint, sponsored?: boolean): Promise; /** * Extract withdrawal request id from initiate-withdrawal transaction result. * Returns null if tx is still pending or result is unavailable. */ getWithdrawalRequestIdFromTx(txid: string): Promise; /** * Fetch withdrawal request details from sbtc-registry. */ getWithdrawalRequest(requestId: number, senderAddress: string): Promise; } export declare function getSbtcService(network: Network): SbtcService; //# sourceMappingURL=sbtc.service.d.ts.map