import { fabric } from 'fabric'; import { Region, VLMLabel } from '../../types'; interface UseTextLayoutsParams { canvas: fabric.Canvas | undefined; imageToCanvasCoords: (imageX: number, imageY: number) => { x: number; y: number; }; activeLabelValue?: { label: VLMLabel; region: Region; } | null; onAppendTextToActive?: (text: string) => void; } /** * Hook for managing text layout rectangles (OCR recognition results) * @param params - Text layouts configuration parameters * @returns Object containing updateTextLayers function and refs */ export declare const useTextLayouts: ({ canvas, imageToCanvasCoords, activeLabelValue, onAppendTextToActive, }: UseTextLayoutsParams) => { updateTextLayers: (rect: fabric.Rect, region: Region) => void; textLayersMapRef: import('react').RefObject>; textLayoutContentMapRef: import('react').RefObject>; }; export {};