UNPKG

bigblocks

Version:

Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React

27 lines 1.01 kB
import type { MarketListing } from "../types/listings.js"; import { AssetType, type BroadcastResult, type MarketError } from "../types/market.js"; interface UseBuyListingOptions { app?: string; feeRate?: number; onSuccess?: (result: BroadcastResult) => void; onError?: (error: MarketError) => void; } export interface BuyListingResult { txid: string; fee: number; price: number; assetType: AssetType; tokenAmount?: string; } export declare function useBuyListing(options?: UseBuyListingOptions): { buyListing: import("@tanstack/react-query").UseMutateFunction<BuyListingResult, MarketError, MarketListing, unknown>; buyListingAsync: import("@tanstack/react-query").UseMutateAsyncFunction<BuyListingResult, MarketError, MarketListing, unknown>; isLoading: boolean; isError: boolean; isSuccess: boolean; error: MarketError | null; data: BuyListingResult | undefined; reset: () => void; }; export {}; //# sourceMappingURL=useBuyListing.d.ts.map