import { FC } from 'react'; declare enum Exchange { BINANCE = "binance", KUCOIN = "kucoin" } interface ExchangeConfig { name: string; value: string; restApiUrl: string; wsUrl: string; getWsUrl?: (symbol?: string) => Promise; } declare const SUPPORTED_EXCHANGES: Record; interface IOrderLine { text: string; tooltip?: Array; quantity?: string; price: Number; color?: string; } /** * This is the generic type useful for declaring a nominal type, * which does not structurally matches with the base type and * the other types declared over the same base type * * Usage: * @example * type Index = Nominal; * // let i: Index = 42; // this fails to compile * let i: Index = 42 as Index; // OK * @example * type TagName = Nominal; */ declare type Nominal = T & { [Symbol.species]: Name; }; declare type ResolutionString = Nominal; interface OrderLine extends IOrderLine { id: string; lineStyle?: number; } interface TVChartContainerProps { symbol?: string; interval?: ResolutionString; libraryPath?: string; timescaleMarks?: any[]; orderLines?: OrderLine[]; onTick?: (event: any) => void; getLatestBar?: (data: any) => void; exchange?: string; style?: React.CSSProperties; } declare const TVChartContainer: FC; export { Exchange, type ExchangeConfig, type OrderLine, SUPPORTED_EXCHANGES, TVChartContainer as default };