import type { IChartApi, IPriceLine, IPriceScaleApi, ISeriesApi, ITimeScaleApi, SeriesType } from 'lightweight-charts'; import type { PriceLineParams } from '../../internal/lines'; import type { Reference } from '../../internal/utils.js'; import type { PriceScaleParams } from '../../internal/price-scale'; import type { TimeScaleParams } from '../../internal/time-scale'; import { SeriesParams } from '../../internal/series.js'; export type Context = IChartApi | ISeriesApi; export declare function context(value: T): void; export declare function context(): T; export declare function useSeriesEffect(callback: () => [params: T, ref: Reference> | undefined]): void; export declare function useLineEffect(callback: () => [params: PriceLineParams, ref: Reference | undefined]): void; export declare function useTimeScaleEffect(callback: () => [params: TimeScaleParams, ref: Reference | undefined]): void; export declare function usePriceScaleEffect(callback: () => [params: PriceScaleParams, ref: Reference | undefined]): void;