import type { ChartKnowledgeJSON } from '@antv/ckb'; import type { BasicDataPropertyForAdvice } from '../ruler'; import type { DataRows, Specification } from '../types'; export declare type CKBConfig = { /** * charts to exclude in the default CKB from @antv/ckb * priority: exclude > include */ exclude?: string[]; /** * charts to include in the default CKB from @antv/ckb * priority: exclude > include */ include?: string[]; /** * charts customized by users * not affected by `exclude` and `include` */ custom?: Record; }; declare type SpecMapping = (data: DataRows, dataProps: BasicDataPropertyForAdvice[]) => Specification | null; export interface CustomizedCKBJSON extends ChartKnowledgeJSON { toSpec?: SpecMapping; } export {};