import { type CreateSavedChartVersion, type ReplaceCustomFields, type SkippedReplaceCustomFields } from '../types/savedCharts';
import { type VizTableConfig } from '../visualizations/types';
export declare function maybeReplaceFieldsInChartVersion({ fieldsToReplace, chartVersion, }: {
    fieldsToReplace: ReplaceCustomFields[string];
    chartVersion: CreateSavedChartVersion;
}): {
    hasChanges: boolean;
    chartVersion: CreateSavedChartVersion;
    skippedFields: SkippedReplaceCustomFields[string];
};
/**
 * Extracts custom labels from a VizTableConfig columns configuration.
 * Returns a record mapping field references to their custom labels,
 * but only for fields where the label differs from the reference.
 */
export declare function getCustomLabelsFromVizTableConfig(config: VizTableConfig | undefined): Record<string, string>;
/**
 * Extracts hidden field references from a VizTableConfig columns configuration.
 * Returns an array of field references that are marked as not visible.
 */
export declare function getHiddenFieldsFromVizTableConfig(config: VizTableConfig | undefined): string[];
/**
 * Extracts column order from a VizTableConfig columns configuration.
 * Returns an array of field references sorted by their order property.
 */
export declare function getColumnOrderFromVizTableConfig(config: VizTableConfig | undefined): string[];
//# sourceMappingURL=charts.d.ts.map