import { Plugin } from 'chart.js';
/**
 * Configuration for outer label plugin (arc and polar)
 */
interface OuterLabelConfig {
    /** Pre-formatted label strings (one per data segment/sector) */
    formattedLabels: string[];
    /** Index to hide for pie charts in 'sunburst' mode (e.g., active sunburst parent) */
    hideIndex?: number | null;
    /** For polar charts: rotation offset in radians */
    rotationOffset?: number;
    /** For polar charts: chart diameter (calculated from layout helper) */
    chartDiameter?: number;
    /** Chart type: 'arc' (pie/donut) or 'polar' */
    type?: 'arc' | 'polar';
}
/**
 * Calculate the sum of all values in a chart data array
 * @param data - Array of chart segments with label and value properties
 * @returns The sum of all numeric values, coercing invalid values to 0
 */
export declare function calculateSumTotal(data: Array<{
    label: string;
    value: number;
}>): number;
/**
 * Create a Chart.js plugin that renders outer labels for arc (pie/donut) and polar charts.
 * @param host - The chart component element (for CSS variable access)
 * @param options - Plugin configuration (type: 'arc' | 'polar')
 * @returns Chart.js plugin
 */
export declare function createArcOuterLabelPlugin(host: HTMLElement, options: OuterLabelConfig): Plugin<'pie' | 'doughnut' | 'polarArea'>;
export {};
//# sourceMappingURL=outer-labels.d.ts.map