import { Id } from '../../models/types' ; import { Period } from '../../models/period' ; import { Expense } from '../../models/expense' ; export interface ExpensesRepository { getExpense ( id ) : Promise < Expense > ; getExpenses ( accountId , period ) : Promise < Expense [ ] > ; getExpensesByCategory ( accountId , period , category ) : Promise < Expense [ ] > ; createExpense ( expense ) : Promise < void > ; updateExpense ( expense ) : Promise < void > ; deleteExpense ( id ) : Promise < void > ; }