bigblocks
Version:
Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React
24 lines • 804 B
TypeScript
import type { PostResponse, PostsResponse, RepliesParams } from "bmap-api-types";
interface UseFetchPostOptions {
txid: string;
enabled?: boolean;
}
interface UseFetchPostResult {
post: PostResponse | null;
isLoading: boolean;
error: Error | null;
refetch: () => void;
}
export declare function useFetchPost({ txid, enabled, }: UseFetchPostOptions): UseFetchPostResult;
interface UseFetchRepliesOptions extends Partial<RepliesParams> {
enabled?: boolean;
}
interface UseFetchRepliesResult {
replies: PostsResponse | null;
isLoading: boolean;
error: Error | null;
refetch: () => void;
}
export declare function useFetchReplies({ txid, page, limit, enabled, }: UseFetchRepliesOptions): UseFetchRepliesResult;
export {};
//# sourceMappingURL=useFetchPost.d.ts.map