// SPDX-FileCopyrightText: 2026 FocusFlow contributors
// SPDX-License-Identifier: AGPL-3.0-only

part of '../../../export_controller.dart';

/// Writer interface for readable exports.
abstract interface class ExportWriter {
  /// Start writing an export for [context].
  Future<void> begin(ExportContext context);

  /// Write one task record.
  Future<void> writeTask(core.Task task);

  /// Finish writing the export.
  Future<void> end();
}
