UNPKG

nuxt-users

Version:

A comprehensive user management module for Nuxt 3 and Nuxt 4 applications with authentication, authorization, database support, and CLI tools

21 lines (20 loc) 675 B
import type { User } from '../../types.js'; interface Pagination { page: number; limit: number; total: number; totalPages: number; hasNext: boolean; hasPrev: boolean; } export declare const useUsers: () => { users: import("vue").Ref<User[], User[]>; pagination: import("vue").Ref<Pagination | null, Pagination | null>; loading: import("vue").Ref<boolean, boolean>; error: import("vue").Ref<string | null, string | null>; fetchUsers: (page?: number, limit?: number) => Promise<void>; updateUser: (updatedUser: User) => void; addUser: (newUser: User) => void; removeUser: (userId: number) => Promise<void>; }; export {};