using System.IO; using System.Threading; using System.Threading.Tasks; namespace xAiApi.Interfaces.Extractors { /// /// a Service for Extracting File Content ... /// public interface IXFileContentExtractor { /// /// Check if this extractor supports the specified MIME type ... /// bool CanExtract(string mimeType); /// /// Extract text content from file stream ... /// Task ExtractAsync( Stream fileStream, string mimeType, CancellationToken cancellationToken = default ); } }