import { ChartOptions, DeepPartial, IChartApiBase, IHorzScaleBehavior, Time } from "lightweight-charts"; import { ChartSubscriptions } from "./chart.types"; import { TimescaleSubscriptions } from "../timescale"; export type ChartFactoryReturnType = { chart: IChartApiBase; chartSubscriptions: ChartSubscriptions; timescaleSubscriptions: TimescaleSubscriptions; }; type getOptionsType = [T] extends [never] ? ChartOptions : T extends IHorzScaleBehavior ? ReturnType : never; type getScaleBehaviorType = T extends IHorzScaleBehavior ? T : never; export declare class ChartFactory { create = never>(container: string | HTMLElement, options?: DeepPartial>, horzScaleBehavior?: getScaleBehaviorType): ChartFactoryReturnType; } export {};