import type { DataSchemaContext, NlqTranslationInput, NlqTranslationResult } from '../../../types.js'; import type { DataSourceJSON, WidgetConfigJSON } from '../../types.js'; import type { WidgetMeta } from './to-widget-props.js'; type WidgetEnvelopeJSON = { readonly id: string; readonly title?: string; readonly description?: string; readonly dataSource?: DataSourceJSON; readonly config?: WidgetConfigJSON; readonly highlightSelectionDisabled?: boolean; }; /** * Strips widget envelope fields and delegates to a chart/pivot sub-translator, * then maps component props to widget props with metadata. * * @internal */ export declare const translateEnvelopeWidgetFromJSON: (widgetJSON: TWidgetJSON, context: DataSchemaContext, translate: (input: NlqTranslationInput) => NlqTranslationResult, toWidgetProps: (props: TComponentProps, meta: WidgetMeta) => TWidgetProps) => NlqTranslationResult; export {};