import { type ComputedRef, type Ref, type VNode } from 'vue'; import type { AnimatedPropertyStoreLike, CanvasCompositorLike } from '@primeui/chart-types'; import type { normalizeDataLabelConfig, SnapStrategy } from '@primeui/chart-core'; import type { BandScale, BoxArea, CartesianHitTestResult, CartesianLayoutData, ColorScaleInfo, CrosshairSeriesHit, CustomMarkerEntry, HoverConfig, LinearScale, ZoomState } from '../types'; type LabelConfig = ReturnType | null; export interface CartesianLayerHandle { type: string; hitTest(x: number, y: number): CartesianHitTestResult | null; findNearest?(x: number, y: number): CartesianHitTestResult | null; findAllNearest?(x: number, y: number, snap?: SnapStrategy, shared?: boolean): { primary: CartesianHitTestResult; allSeries: CrosshairSeriesHit[]; } | null; getPointPosition(datasetId: string, index: number): { x: number; y: number; width: number; height: number; shape: 'rect' | 'circle'; } | null; dataLabelVNodes?: Ref; markerOverlays?: Ref; applyPropertyAnimations?(store: AnimatedPropertyStoreLike): void; renderFrameCycle?(): void; syncWithAnimatedScale?(categoryScale: BandScale, valueScales?: Map, valueXScales?: Map): void; boostActive?: Ref; getColorScaleInfo?(): ColorScaleInfo | null; scaleResult?: Ref<{ xScale: BandScale; yScale: BandScale; xCategories: string[]; yCategories: string[]; } | null>; } export interface CartesianFrameShared { canvasEl: Ref; width: ComputedRef; height: ComputedRef; plotClipId: string; cartesianArea: ComputedRef; layoutData: ComputedRef; labelConfig: ComputedRef; hoverConfig: ComputedRef; zoomState: ComputedRef; adaptiveDataLabelFontSize: ComputedRef; adaptiveDataLabelRotation: ComputedRef; compositor: CanvasCompositorLike; animStore: Ref; } export interface CartesianFrame extends CartesianFrameShared { handles: Map; register(handle: CartesianLayerHandle): void; unregister(type: string): void; } export declare function provideCartesianFrame(shared: CartesianFrameShared): CartesianFrame; export declare function useCartesianFrame(): CartesianFrame | null; export declare function useCartesianFrameRegistration(handle: CartesianLayerHandle): void; export {};