import { ChartClickEvent, CommonChart, Coordinate2D, XaxisType, YaxisType, ChartProvider } from '@oneteme/jquery-core'; import { ElementRef, EventEmitter, NgZone } from '@angular/core'; import ApexCharts from 'apexcharts'; export type ChartCustomEvent = 'previous' | 'next' | 'pivot'; export interface ApexChartRuntimeEvents { onZoomed?: (chartContext: any, xaxis: any) => void; onMouseMove?: (event: any, chartContext: any, config: any) => void; onMouseLeave?: () => void; } /** * Crée les boutons personnalisés pour la barre d'outils */ export declare function customIcons(event: (arg: ChartCustomEvent) => void, canPivot?: boolean): any[]; export declare function determineXAxisDataType(value: any): string; /** * Détermine le type d'axe X en fonction des données */ export declare function getType(commonChart: CommonChart): string; /** * Initialise les options de base communes à tous les graphiques */ export declare function initCommonChartOptions(node: ElementRef, customEvent: EventEmitter, ngZone: NgZone, chartType: string, canPivot?: boolean, chartClick?: EventEmitter, runtimeEvents?: ApexChartRuntimeEvents): { shouldRedraw: boolean; chart: { type: string; toolbar: { show: boolean; tools: { download: boolean; selection: boolean; zoom: boolean; zoomin: boolean; zoomout: boolean; pan: boolean; reset: boolean; customIcons: any[]; }; }; events: { mouseMove: (event: any, chartContext: any, config: any) => void; mouseLeave: () => void; zoomed: (chartContext: any, payload: any) => void; dataPointSelection: (event: any, chartContext: any, config: any) => void; }; zoom: { enabled: boolean; type: string; autoScaleYaxis: boolean; allowMouseWheelZoom: boolean; }; }; series: any[]; noData: { text: string; }; xaxis: {}; plotOptions: {}; }; /** * Met à jour les options communes du graphique en fonction de la configuration fournie */ export declare function updateCommonOptions(options: any, config: ChartProvider): any; /** * Met à jour les options du graphique de manière sécurisée */ export declare function updateChartOptions(chartInstance: ApexCharts | null, ngZone: NgZone, options: any, redrawPaths?: boolean, animate?: boolean, updateSyncedCharts?: boolean, chartElement?: HTMLElement): Promise; export declare function transformSeriesVisibility(series: any[]): any[]; export declare function setupScrollPrevention(chartElement: HTMLElement, chartInstance: () => ApexCharts | null): (() => void) | null; export declare function fixToolbarSvgIds(chartElement: HTMLElement): void; /** * Configure un observateur pour surveiller les changements de la toolbar et corriger les IDs */ export declare function setupToolbarObserver(chartElement: HTMLElement): MutationObserver | null; /** * Fonction commune pour la destruction propre des graphiques */ export declare function destroyChart(chartInstance: any): void;