package org.raddatz.familienarchiv.ocr;

import java.util.List;

public sealed interface OcrStreamEvent {

    record Start(int totalPages) implements OcrStreamEvent {}

    record Preprocessing(int pageNumber) implements OcrStreamEvent {}

    record Page(int pageNumber, List<OcrBlockResult> blocks) implements OcrStreamEvent {}

    record Error(int pageNumber, String message) implements OcrStreamEvent {}

    record Done(int totalBlocks, int skippedPages) implements OcrStreamEvent {}
}
