/** * Shared helpers for vanilla stories (examples and tests). */ import { SimpleTableVanilla } from "../src/index"; import type { HeaderObject, Row } from "../src/index"; /** Instance type of the table (class is a value; use InstanceType for the type of instances). */ type TableInstance = InstanceType; export interface RenderVanillaTableResult { wrapper: HTMLDivElement & { _table?: TableInstance; }; h2: HTMLHeadingElement; tableContainer: HTMLDivElement; table: TableInstance; } export declare function renderVanillaTable(headers: HeaderObject[], data: Row[], options?: Record): RenderVanillaTableResult; export declare function addParagraph(wrapper: HTMLElement, text: string, beforeElement?: Element | null): HTMLParagraphElement; export interface ControlPanelSection { heading: string; buttons: { label: string; onClick: () => void; }[]; } /** * Adds a gray control panel with section headings and buttons above a given element (e.g. table container). */ export declare function addControlPanel(wrapper: HTMLElement, sections: ControlPanelSection[], insertBefore: Element): HTMLDivElement; export {};