import 'package:leonteva_pmu/domain/models/card.dart'; typedef OnErrorCallback = void Function(String? error); abstract class ApiInterface { Future?> loadData({OnErrorCallback? onError}); }