import Foundation struct CloudOCRRequest { let jpegData: Data } struct CloudOCRTextResponse { let markdown: String } protocol CloudOCRClient { func recognizeText(from request: CloudOCRRequest) async throws -> CloudOCRTextResponse? } struct StubCloudOCRClient: CloudOCRClient { func recognizeText(from request: CloudOCRRequest) async throws -> CloudOCRTextResponse? { nil } }