import { CustomData, IChartApiBase, ICustomSeriesPaneView, ISeriesApi, SeriesPartialOptionsMap, SeriesType } from "lightweight-charts"; import { SeriesSubscriptions } from "./series.types"; export type SeriesFactoryReturnType = { series?: ISeriesApi; seriesSubscriptions?: SeriesSubscriptions; }; export type RequiresCustomData = T extends 'Custom' ? CustomData : never; export type RequiresCustomSeriesView = T extends 'Custom' ? [customSeriesView: ICustomSeriesPaneView] : []; export declare class SeriesFactory { #private; create(type: T, chart: IChartApiBase, seriesOptions: SeriesPartialOptionsMap[T], ...customSeriesView: RequiresCustomSeriesView): SeriesFactoryReturnType; }