UNPKG

bigblocks

Version:

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

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