import type { Attribute, Measure } from '@sisense/sdk-data';
import type { JSONArray } from '@sisense/sdk-data';
import type { StyledColumn, StyledMeasureColumn } from '../../../../../domains/visualizations/core/chart-data-options/types.js';
import type { NlqTranslationError } from '../../../types.js';
import type { DimensionItemJSON, DimensionTranslationItem, MeasureItemJSON, MeasureTranslationItem } from '../../types.js';
/**
 * Shared adapters and utilities for data options translation.
 * Used by chart and pivot-table translators.
 *
 * @internal
 */
export type AxisType = 'dimension' | 'measure';
export declare function adaptDimensionsToStyledColumn(items: DimensionTranslationItem[]): (Attribute | StyledColumn)[];
export declare function adaptMeasuresToStyledMeasureColumn(items: MeasureTranslationItem[]): (Measure | StyledMeasureColumn)[];
export declare function toJSONArray(value: DimensionItemJSON | DimensionItemJSON[] | MeasureItemJSON | MeasureItemJSON[]): JSONArray;
/**
 * Maps inner translation errors to dataOptions axis context.
 */
export declare function withAxisContext(axisKey: string): (e: NlqTranslationError) => NlqTranslationError;
