import 'dart:async';
import 'package:dartz/dartz.dart';
import 'package:flowy_sdk/protobuf/flowy-collaboration/document_info.pb.dart';
import 'package:flowy_sdk/protobuf/flowy-error/errors.pb.dart';

abstract class IDoc {
  Future<Either<DocumentDelta, FlowyError>> readDoc();
  Future<Either<DocumentDelta, FlowyError>> composeDelta({required String json});
  Future<Either<Unit, FlowyError>> closeDoc();
}
