import type { InstantSearch, Widget, IndexWidget } from '../../types'; export type WidgetTreeParam = { name: string; value?: string; type?: string; }; export type WidgetTreeNode = { type: string; params: WidgetTreeParam[]; children: WidgetTreeNode[]; }; /** * Turns a `widgetParams`-style record into the serialized `WidgetTreeParam[]` * shape used throughout the usage events. Shared between the widget tree and * the root `ais.instantSearch` node so every node reports params identically. */ export declare function serializeWidgetParams(widgetParams: Record): WidgetTreeParam[]; export declare function buildWidgetTree(widgets: Array, instantSearchInstance: InstantSearch, parent?: IndexWidget): WidgetTreeNode[];