import User from '../infra/typeorm/entities/User' ; import ICreateUserDTO from '../dtos/ICreateUserDTO' ; import IUpdateUserDTO from '../dtos/IUpdateUserDTO' ; interface IUsersRepository { create ( data ) : Promise < User > ; save ( data ) : Promise < User > ; findAll ( authUser ) : Promise < User [ ] > ; findById ( id ) : Promise < User | undefined > ; findByEmail ( email ) : Promise < User | undefined > ; findByUsername ( username ) : Promise < User | undefined > ; search ( term ) : Promise < User [ ] > ; } export default IUsersRepository ;