import '../../models/user_model.dart'; typedef CreateUserResult = ({UserModel user, String secret}); abstract class UserService { /// Returns all users. Future> getUsers(); /// Creates a new user and returns the user along with the generated secret. Future createUser( String username, { String? phoneNumber, }); /// Resets the secret for [userId] and returns the new secret. Future resetSecret(String userId); /// Logs out the user with the given [userId] by incrementing their token version. Future logoutUser(String userId); }