import { NoteData } from './note-data' ; export interface NoteRepository { add ( noteData ) : Promise < NoteData > ; findAllNotesFrom ( userId ) : Promise < NoteData [ ] > ; findById ( noteId ) : Promise < NoteData > ; remove ( noteId ) : Promise < void > ; updateTitle ( noteId , newTitle ) : Promise < void > ; updateContent ( noteId , newContent ) : Promise < void > ; }