import type { VisualizationOptions, VisualizationTheme } from '../../types'; /** * FunnelDataItem is the type for each data item in the funnel chart. */ export type FunnelDataItem = { category: string; value: number; }; /** * FunnelConfig defines the configuration for rendering the funnel chart. */ export interface FunnelConfig { type?: 'funnel'; data: FunnelDataItem[]; theme?: VisualizationTheme; title?: string; conversionRateLabel?: string; style?: { backgroundColor?: string; palette?: string[]; }; } /** * FunnelInstance represents a funnel chart instance with render and destroy methods. */ export interface FunnelInstance { render: (config: FunnelConfig) => void; destroy: () => void; } /** * Funnel chart component using G2 5.0. * * @example * ```ts * const funnel = Funnel({ * container: '#container', * width: 600, * height: 400, * }); * * funnel.render({ * type: 'funnel', * data: [ * { category: '访问', value: 1000 }, * { category: '咨询', value: 600 }, * { category: '下单', value: 300 }, * { category: '成交', value: 120 }, * ], * theme: 'academy' * }); * * funnel.destroy(); * ``` */ export declare const Funnel: (options: VisualizationOptions) => FunnelInstance;