import React from 'react'; import type { Aggregation, Speed, TimeGranularity } from './types'; type TimebarProps = { /** 时间范围(时间戳) */ timeRange: [number, number]; /** 默认范围 */ defaultTimeLength?: 'all' | 'day' | 'month' | 'year'; /** 时间字段 */ timeField: string; /** 指标字段 */ yField: string; /** * 时间粒度 * * 为 number 时表示自定义时间粒度(ms) * @example 数据按天统计,那么时间粒度为: 'day' */ timeGranularity: TimeGranularity; /** 倍速(每 1/speed 秒播放 timeGranularity 个) */ speed: Speed; aggregation: Aggregation; /** 播放模式:过滤/高亮 */ playMode: 'filter' | 'highlight' | 'show-hide'; }; declare const _default: React.NamedExoticComponent; export default _default;