import { ChartType, type ChartConfig } from '../types/savedCharts';
/**
 * Input for detecting unused dimensions in a cartesian chart.
 */
export type UnusedDimensionsInput = {
    /** The chart configuration */
    chartType: ChartType;
    /** The chart config object (contains layout for cartesian charts) */
    chartConfig: ChartConfig['config'] | undefined;
    /** Pivot/group by dimension field IDs */
    pivotDimensions: string[];
    /** All dimension field IDs in the metric query */
    queryDimensions: string[];
};
/**
 * Detects dimensions in the query that are not used in the chart configuration.
 *
 * For cartesian charts, dimensions should be used in one of:
 * - x-axis (xField)
 * - y-axis (yField) - though typically metrics go here
 * - group by / pivot (pivotDimensions)
 *
 * If a dimension is in the query but not used in any of these places,
 * it may cause incorrect results when using backend pivoting.
 *
 * @returns Array of unused dimension field IDs, or empty array if none
 */
export declare function getUnusedDimensions(input: UnusedDimensionsInput): {
    unusedDimensions: string[];
};
/**
 * Checks if a chart has unused dimensions that may cause incorrect results.
 * This is a convenience wrapper around getUnusedDimensions.
 */
export declare function hasUnusedDimensions(input: UnusedDimensionsInput): boolean;
//# sourceMappingURL=chartValidation.d.ts.map