import type { SnapStrategy } from '@primeui/chart-core'; import type { ChartText, AnimatedPropertyStoreLike, CanvasCompositorLike, AnyFeatureProps, BandScale, BoxArea, CartesianHitTestResult, CartesianLayoutData, ChartTheme, FillValue, CrosshairSeriesHit, DatasetRegistration, FeatureType, FrameDataLabelConfig, HoverConfig, LinearScale, SvgDataLabelContext, LineHitTestResult, LineProps, LineRenderData, LineRenderProps, MarkerOverlayEntry } from '@primeui/chart-types'; import type { ComputedRef, Ref, ShallowRef, VNode } from 'vue'; export type { LineAnimationConfig } from '@primeui/chart-types'; export type ChartLineProps = LineProps; export interface UseLineRendererOptions { chartArea: ComputedRef; renderer: 'svg' | 'canvas'; canvasEl: Ref | ShallowRef; datasets: ComputedRef>; datasetVisibility: ComputedRef>; hover: ComputedRef<{ datasetId: string | null; index: number | null; }>; hoverConfig: ComputedRef; chartId: string; width: ComputedRef; height: ComputedRef; categoryScale: ComputedRef; valueScales: ComputedRef | undefined>; firstValueAxisId: ComputedRef; axisIdProp: ComputedRef; orientation?: ComputedRef<'vertical' | 'horizontal'>; lineStackBasesMap: ComputedRef | undefined>; lineTransformedValues: ComputedRef | undefined>; lineDataKeys: ComputedRef | undefined>; rangeGroups: ComputedRef | undefined>; features: ComputedRef>; labelConfig?: ComputedRef; layoutData?: ComputedRef; compositor?: CanvasCompositorLike; dir: Ref<'ltr' | 'rtl'>; theme: ComputedRef>; text: ComputedRef; numberFormat: ComputedRef; locale: Ref; } export interface UseLineRendererResult { groupRef: Ref; hitTest: (x: number, y: number) => LineHitTestResult | null; findAllNearest: (x: number, y: number, snap?: SnapStrategy, shared?: boolean) => { primary: CartesianHitTestResult; allSeries: CrosshairSeriesHit[]; } | null; lineLayouts: ShallowRef>; liveLayouts: ShallowRef>; lineRenderProps: ShallowRef>>; subscribeTipPositions: (cb: (positions: Map | null) => void) => () => void; markerOverlays: Ref; renderVersion: Ref; getSvgDataLabelContexts: () => SvgDataLabelContext[]; syncWithAnimatedScale: (categoryScale: BandScale, valueScales?: Map) => void; applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void; renderFrameCycle: () => void; }