UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

19 lines (18 loc) 629 B
import type { AuthUser } from "../../interfaces/models/User"; import { type UpdateUserParams } from "../../store/api/userApi"; /** * Redux-powered hook that provides current user management actions * Focused on current user operations only */ export declare function useUserActions(): { setUser: (user: AuthUser | null) => void; clearUser: () => void; updateUser: ({ projectId, userId, update, currentUser }: { projectId: string; userId: string; update: UpdateUserParams; currentUser?: any; }) => Promise<AuthUser>; clearError: () => void; }; export default useUserActions;