import Foundation /// Where a captured text came from (`docs/ARCHITECTURE.md` ยง5). public enum CaptureSource: String, Sendable, Codable, Equatable { /// The double-copy gesture. case doubleCopy /// The Services menu. case services /// The menu-bar item. case menu } /// A non-empty text captured for translation. public struct CapturedText: Sendable, Equatable { /// The captured text. public let text: String /// When it was captured. public let capturedAt: Date /// Where it came from. public let source: CaptureSource /// Creates a captured text. public init(text: String, capturedAt: Date, source: CaptureSource) { self.text = text self.capturedAt = capturedAt self.source = source } }