///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
import { PermissionBits } from 'librechat-data-provider';
import type { Types, DeleteResult } from 'mongoose';
import type { IAccessRole } from '~/types';
import { RoleBits } from '~/common';
export declare function createAccessRoleMethods(mongoose: typeof import('mongoose')): {
createRole: (roleData: Partial) => Promise;
updateRole: (accessRoleId: string | Types.ObjectId, updateData: Partial) => Promise;
deleteRole: (accessRoleId: string | Types.ObjectId) => Promise;
getAllRoles: () => Promise;
findRoleById: (roleId: string | Types.ObjectId) => Promise;
seedDefaultRoles: () => Promise>;
findRoleByIdentifier: (accessRoleId: string | Types.ObjectId) => Promise;
getRoleForPermissions: (resourceType: string, permBits: PermissionBits | RoleBits) => Promise;
findRoleByPermissions: (resourceType: string, permBits: PermissionBits | RoleBits) => Promise;
findRolesByResourceType: (resourceType: string) => Promise;
};
export type AccessRoleMethods = ReturnType;