import { type ReactNode, type RefObject } from 'react'; import { WidgetContainerStyleOptions } from '../../../../types'; import { TitleEditorConfig, WidgetHeaderConfig } from '../widget-header/types.js'; export interface WidgetContainerProps { dataSetName?: string; styleOptions?: WidgetContainerStyleOptions; /** * Header configuration (e.g. toolbar menu items). Passed to {@link WidgetHeader} as `config`. */ headerConfig?: WidgetHeaderConfig; /** Inline title editor config (when rename is enabled). Passed to {@link WidgetHeader}. */ titleEditor?: TitleEditorConfig; title?: string; description?: string; topSlot?: ReactNode; bottomSlot?: ReactNode; children: ReactNode; onRefresh?: () => void; /** * Ref attached to the content area below the header (topSlot + chart + bottomSlot). * Use to measure the available height for narrative-to-chart ratio calculations. * @internal */ contentAreaRef?: RefObject; } /** @internal */ export declare const WidgetContainer: React.FC; /** @internal */ export declare const RawWidgetContainer: React.FC;