import { Option } from '@suntech-innovation/option'; import { MarketStatus } from '../../../entities'; import { ScaleConfig } from '../utils'; export type Timestamp = number; export interface DateRange { from: T; to: T; } export declare class ChartRangeDebug { from: string; to: string; constructor(range: DateRange); } export interface ChartOffset { left: number; right: number; } export interface ChartRangeConfig { date: DateRange; price: DateRange; } export type ChartPoint = [date: Timestamp, price: Option, status: Option]; export declare class ChartPointHelper { static getDate(point: ChartPoint): number; static getPrice(point: ChartPoint): Option; static getMarketStatus(point: ChartPoint): Option; } export type ChantZoneFiguresStore = Map; export declare enum ChantZoneFigureKey { FOOTBALL_1ST_HALF_END = "FOOTBALL_1ST_HALF_END", NOT_STARTED = "NOT_STARTED", SAFE = "SAFE" } export interface ChantZoneFigure { color?: string; from: number; to: number; } export declare enum ChartLineStrategy { DOT_DOT = 0, TILL_PRICE_CHANGED = 1 } export interface ChartConfig { debug?: boolean; hasHorizontalLines?: boolean; minPriceStep?: number; priceAxisPosition?: 'right' | 'left'; priceColor?: string; scale?: boolean; showCursor?: boolean; zeroPosition?: number; zoom?: boolean; drawDateAxis?: boolean; drawPricesAxis?: boolean; scaleConfig?: Partial; }