import type { BoxArea, LinearScale, ZoomOriginalDomains, ZoomProps, ZoomState, ZoomUpdate } from '@primeui/chart-types'; import type { ComputedRef, Ref, ShallowRef } from 'vue'; export interface UseZoomPanOptions { zoomConfig: Ref; containerRef: Ref; getPlotArea: () => BoxArea | null; getScales: () => { x?: LinearScale; y?: LinearScale; } | null; getOriginalDomains: () => ZoomOriginalDomains; getDrawnZoomState?: () => ZoomState | null | undefined; isCartesian: Ref; } export interface UseZoomPanResult { zoomState: ShallowRef; resetZoom: () => void; zoomStep: (direction: 'in' | 'out', factor?: number) => boolean; canZoomStep: (direction: 'in' | 'out', factor?: number) => boolean; panStep: (direction: 'left' | 'right', stride?: number) => boolean; canPanStep: (direction: 'left' | 'right', stride?: number) => boolean; updateZoom: (state: ZoomState, update?: ZoomUpdate) => void; getZoomState: () => ZoomState; isZoomed: ComputedRef; isDragging: Ref; selectionRect: Ref<{ x: number; y: number; width: number; height: number; } | null>; }