import type { Dayjs } from 'dayjs';

/**
 * 全局参数配置
 */
interface Props {
  /**
   * Start date time 00:00:00, end date time 23:59:59
   *
   * Default: true
   */
  showTime?:
    | boolean
    | {
        defaultValue: [Dayjs, Dayjs] | null | undefined;
      };

  /**
   * 预设时间范围快捷选择
   *
   * Default: true
   */
  ranges?:
    | boolean
    | (
        | { [key: string]: [Dayjs, Dayjs] }
        | { [key: string]: () => [Dayjs, Dayjs] }
      );
}
const props: Props = { showTime: true, ranges: true };

export default { props };
