import { _ModuleSupport } from 'ag-charts-community'; import { AbstractModuleInstance, type DynamicContext } from 'ag-charts-core'; import type { SharedToolbarSection } from './sharedToolbarTypes'; export interface SharedToolbarWithSection extends Pick<_ModuleSupport.Toolbar, 'destroy' | 'addListener' | 'removeListener' | 'setHidden' | 'addToolbarListener' | 'updateButtons' | 'updateButtonByIndex' | 'toggleActiveButtonByIndex' | 'toggleButtonEnabledByIndex' | 'clearActiveButton'> { layout: (layoutBox: _ModuleSupport.BBox, padding?: number) => void; } export declare class SharedToolbar extends AbstractModuleInstance { private readonly ctx; static readonly SECTION_ORDER: Array; private readonly container; private sharedToolbar?; private readonly activeSections; private readonly sectionButtons; private firstLayoutSection?; private cachedWidth?; private cachedWidthSignature?; constructor(ctx: DynamicContext<_ModuleSupport.ChartRegistry>); getSharedToolbar(section: SharedToolbarSection): SharedToolbarWithSection; private createSharedToolbar; private toolbarWithSection; private invalidateWidthCache; private measureWidth; private widthSignature; private getIndex; private getSectionIndex; }