import type { ChartText, ChartTheme, DrilldownBreadcrumb, RendererType, ResolvedSyncConfig, SyncConfig } from '@primeui/chart-types'; import type { SyncBus } from '@primeui/chart-core'; import type { ComputedRef, MaybeRefOrGetter, Ref } from 'vue'; export interface ChartProviderOptions { chartId: string; renderer: RendererType; width: Ref; height: Ref; devicePixelRatio?: Ref; dir?: Ref<'ltr' | 'rtl'>; fontFamily?: string; fontSize?: MaybeRefOrGetter; locale?: Ref; theme: ComputedRef>; text: ComputedRef; numberFormat: ComputedRef; } export interface DrilldownStateResult { /** Current drill parent ID (null = root) */ currentParentId: Ref; /** Breadcrumb path */ path: Ref; /** Whether drilldown is active (not at root) */ isActive: ComputedRef; /** Whether any dataset supports drilldown */ enabled: ComputedRef; /** Drill into a node. Optional ancestors array for intermediate parents not yet in the path. */ drillInto: (nodeId: string, label: string, ancestors?: DrilldownBreadcrumb[]) => void; /** Navigate to a specific breadcrumb level */ drillToLevel: (index: number) => void; } export interface UseChartSyncOptions { chartId: string; /** Sync config — supports reactive getter so config changes after mount propagate via syncBus.updateConfig. */ sync?: MaybeRefOrGetter; } export interface ChartSyncInfo { bus: SyncBus; chartId: string; config: ResolvedSyncConfig; } export interface UseChartSyncResult { syncInfo: ChartSyncInfo | null; } export interface HoverExtras { snapX?: number; snapY?: number; cursorX?: number; cursorY?: number; cursorFormattedValue?: string; allSeriesHits?: import('@primeui/chart-core').CrosshairSeriesHit[]; }