import { TGroupListByUserResponse, TUserMeResponse } from '@zkdb/common'; import { Result } from '../../utils/result'; /** * Interface for user operations. * @interface IUser */ export interface IUser { /** * Retrieves the user's information. * @returns A Result containing the user's record or null if not found. */ info(): Promise>; /** * Lists all groups associated with the user. * @returns A Result containing a list of group responses. */ listGroup(): Promise>; /** * Checks if the user exists in the system. * @returns A Result containing true if the user exists, false otherwise. */ exist(): Promise>; }