UNPKG

bigblocks

Version:

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

20 lines 865 B
import type { UseFollowUserResult, UseUnfollowUserResult } from "../types/hooks.js"; import type { BroadcastResult, SocialError } from "../types/social.js"; interface UseFollowUserOptions { app?: string; onSuccess?: (result: BroadcastResult & { action: "follow" | "unfollow"; }) => void; onError?: (error: SocialError) => void; } export declare function useFollowUser(options?: UseFollowUserOptions): UseFollowUserResult; export declare function useUnfollowUser(options?: UseFollowUserOptions): UseUnfollowUserResult; export declare function useToggleFollow(options?: UseFollowUserOptions): { follow: UseFollowUserResult; unfollow: UseUnfollowUserResult; toggle: (idKey: string, currentlyFollowing: boolean) => void; isLoading: boolean; error: SocialError | null; }; export {}; //# sourceMappingURL=useFollowUser.d.ts.map