import { type ExoticComponent, type PropsWithChildren, type ReactNode } from 'react'; import { type LegendProps, type ProviderSlotProp } from '../types/chart-layout.js'; /** * Function that selects legend and graph from children, and returns them identified. * @param children - Children for the ChartLayout. One should have the Graph area, and the other one the Legend area. * @returns An object with each children identified. */ export declare function extractLayoutSlots(children?: ReactNode): { provider: ExoticComponent | ProviderSlotProp; legendArea?: ReactNode; legendProps?: LegendProps; graphArea?: ReactNode; };