//! Async stream pipeline types.
//!
//! The full pipeline:
//! Source → TextStream → SpanStream → AttributeStream → DiagnosticStream → Sink
//!
//! Each stage is a `Stream`. Middleware inserts between stages.
//! This module defines the stage types; full async streaming implementation is TODO.
use MarkingCandidate;
use Diagnostic;
/// A chunk of source text with its byte offset in the original document.
/// A stream source — anything that produces `TextChunk`s.
/// Implemented by: string buffer (WASM/server), file reader (CLI/batch), HTTP body.
/// A stream sink — anything that consumes pipeline output.