UNPKG

@lens-protocol/react

Version:

Interacting with the Lens Protocol API using React.

22 lines (21 loc) 689 B
import { InviteWalletsRequest, WalletAlreadyInvitedError } from '@lens-protocol/domain/use-cases/wallets'; import { UseDeferredTask } from "../helpers/tasks.js"; export type InviteArgs = InviteWalletsRequest; /** * Invite one or many wallet addresses to join Lens Protocol. * * You MUST be authenticated via {@link useLogin} to use this hook. * * @example * ```tsx * const { called, loading, data, error, execute: invite } = useInviteWallets(); * * invite({ * wallets: ['0x1234567890123456789012345678901234567890'], * }) * ``` * * @category Misc * @group Hooks */ export declare function useInviteWallets(): UseDeferredTask<void, WalletAlreadyInvitedError, InviteArgs>;