import { IGroup } from "../entities/Group" ; export default interface IGroupsStorage { findOne ( id ) : Promise < IGroup | null > ; findOneByName ( name ) : Promise < IGroup | null > ; findMany ( ) : Promise < IGroup [ ] > ; oneExistsWithName ( name ) : Promise < boolean > ; allExistWithIds ( ids ) : Promise < boolean > ; createOne ( group ) : Promise < IGroup > ; updateOne ( id , patch ) : Promise < IGroup > ; deleteOne ( id ) : Promise < void > ; }