import { type ProcessedSeries, type SeriesId, type ChartSeriesDefaultized, type ChartSeriesLayout } from '@mui/x-charts/internals'; import { type SankeyLayout } from "../SankeyChart/index.js"; export type UseSankeySeriesReturnValue = ChartSeriesDefaultized<'sankey'>; export type UseSankeySeriesContextReturnValue = ProcessedSeries['sankey']; export type UseSankeySeriesLayoutReturnValue = ChartSeriesLayout<'sankey'>; /** * Get access to the internal state of sankey series. * * @param {SeriesId} seriesId The id of the series to get. * @returns {UseSankeySeriesReturnValue} the sankey series */ export declare function useSankeySeries(seriesId: SeriesId): UseSankeySeriesReturnValue | undefined; /** * Get access to the internal state of sankey series. * * When called without arguments, it returns all sankey series. * * @returns {UseSankeySeriesReturnValue[]} the sankey series */ export declare function useSankeySeries(): UseSankeySeriesReturnValue[]; /** * Get access to the internal state of sankey series. * * @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved. * @returns {UseSankeySeriesReturnValue[]} the sankey series */ export declare function useSankeySeries(seriesIds: SeriesId[]): UseSankeySeriesReturnValue[]; /** * Get access to the internal state of sankey series. * The returned object contains: * - series: a mapping from ids to series attributes. * - seriesOrder: the array of series ids. * @returns the sankey series */ export declare function useSankeySeriesContext(): UseSankeySeriesContextReturnValue; /** * Get access to the sankey layout. * @returns {SankeyLayout | undefined} the sankey layout */ export declare function useSankeyLayout(): SankeyLayout | undefined;