import type { InstantSearch, Widget, IndexWidget } from '../../types'; export type WidgetMetadata = { type: string | undefined; widgetType: string | undefined; params: string[]; } | { type: string; middleware: true; internal: boolean; }; export declare function extractWidgetPayload(widgets: Array, instantSearchInstance: InstantSearch, payload: { widgets: WidgetMetadata[]; }, parent?: IndexWidget): void;