// Minimale Type-Declaration fuer funnel-graph-js (v17-Fix).
// Die Library liefert selbst keine .d.ts mit, und es gibt kein separates
// @types/funnel-graph-js-Paket - ohne diese Datei bricht "npm run build"
// beim Type-Checking ab ("implicitly has an 'any' type"), obwohl der Code
// zur Laufzeit einwandfrei funktioniert. Deckt nur die tatsaechlich in
// app/admin/dashboard/sponsors/[id]/page.tsx genutzte API-Oberflaeche ab.
declare module 'funnel-graph-js' {
  export interface FunnelGraphData {
    labels: string[];
    colors: string[][] | string[];
    values: number[];
  }

  export interface FunnelGraphOptions {
    container: HTMLElement | string;
    gradientDirection?: 'horizontal' | 'vertical';
    data: FunnelGraphData;
    displayPercent?: boolean;
    direction?: 'horizontal' | 'vertical';
    height?: number;
    width?: number;
  }

  export default class FunnelGraph {
    constructor(options: FunnelGraphOptions);
    draw(): void;
    updateWidth(): void;
    updateHeight(): void;
  }
}
