package design import "context" type TextExtractionRequest struct { ImageURL string Prompt string Width float64 Height float64 } type ExtractedTextLayer struct { Text string OriginalText string X float64 Y float64 Width float64 Height float64 FontSize float64 FontFamily string FontWeight string Color string TextAlign string LineHeight float64 LetterSpacing float64 StrokeColor string StrokeWidth float64 Opacity float64 Rotation float64 Confidence float64 } type TextExtraction struct { Layers []ExtractedTextLayer } type TextExtractor interface { ExtractText(ctx context.Context, req TextExtractionRequest) (TextExtraction, error) }