/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import type { ChartType } from './types'; type Group = { title: string; charts: ChartType[]; sort?: number; }; export declare class ChartGroup { charts: Map; addGroup(name: string, group: Group): void; add(name: string, charts: ChartType | ChartType[]): void; getChartTypes(): { label: string; value: string; children: { key: string; label: string; value: string; }[]; }[]; getCharts(): Record; getChart(type?: string): ChartType; getDefaultChartType(): string; } export declare const useChartTypes: () => { label: string; value: string; children: { key: string; label: string; value: string; }[]; }[]; export declare const useDefaultChartType: () => string; export declare const useCharts: () => Record; export declare const useChart: (type?: string) => ChartType; export {};