part of '../printer.dart';

abstract class IPrinterRepository {
  Future<Either<PrinterFailure, bool>> connectBluetooth(String macAddress);
  Future<Either<PrinterFailure, bool>> disconectBluetooth();
  Future<Either<PrinterFailure, bool>> isBluetoothEnabled();
  Future<Either<PrinterFailure, List<BluetoothInfo>>>
  getPairedBluetoothDevices();
  Future<Either<PrinterFailure, Unit>> createPrinter(Printer printer);
  Future<Either<PrinterFailure, Unit>> updatePrinter(Printer printer, int id);
  Future<Either<PrinterFailure, Unit>> deletePrinter(int id);
  Future<Either<PrinterFailure, Printer>> getPrinterByCode(String code);
}
