import { ReadStream } from 'fs'
import { User } from './User'

export interface UserRepositoryInterface {
  streamAll(): Promise<ReadStream>
  streamTeam(memberEmail?: string): Promise<ReadStream>
  findOneByUuid(uuid: string): Promise<User | null>
  findOneByEmail(email: string): Promise<User | null>
  save(user: User): Promise<User>
  remove(user: User): Promise<User>
}
