import { VegaAnyMark, VegaTopLevelSpec, VegaTopLevelUnitSpec, VegaUnitSpec, VegaTimeUnit, VegaMark } from '../types/vega-types';
import { ChartColumn } from '../types/chart';

export declare function isEmpty(spec: VegaTopLevelSpec | undefined | null): boolean;
export declare function isBoxplot(mark: VegaAnyMark): boolean;
export declare function isUnitSpec(spec: VegaTopLevelSpec): spec is VegaTopLevelUnitSpec;
export declare function filterDataLayers(layers: any[]): any[];
export declare function getMarkType(mark: VegaAnyMark | undefined): string;
export declare const defaultScaleType: (column: ChartColumn | undefined, markType: VegaMark | undefined) => "quantitative" | "temporal" | "ordinal" | undefined;
export declare const syncPieDataLabelsSpec: (dataSpec: VegaUnitSpec, labelsSpec: VegaUnitSpec) => VegaUnitSpec;
export declare const syncDataLabelsSpec: (dataSpec: VegaUnitSpec, labelsSpec: VegaUnitSpec) => VegaUnitSpec;
export declare const mergePrimaryUnitVegaSpec: (currentSpec: VegaTopLevelSpec, unitSpec: VegaUnitSpec) => VegaTopLevelSpec;
export declare const mergeSecondaryUnitVegaSpec: (currentSpec: VegaTopLevelSpec, unitSpec: VegaUnitSpec) => VegaTopLevelSpec;
export declare const mergeLabelsSpec: (currentSpec: VegaTopLevelSpec, labelsSpec: VegaUnitSpec) => VegaTopLevelSpec;
export declare const removeLabelsFromSpec: (currentSpec: VegaTopLevelSpec) => VegaTopLevelSpec;
export declare const getBlankSecondaryDataLayer: () => VegaUnitSpec;
export declare const removeSecondaryDataLayerFromSpec: (currentSpec: VegaTopLevelSpec) => VegaTopLevelSpec;
export declare const mapGrainToTimeUnit: (grain: string) => any;
export declare const getTimeUnitForColumn: (column: ChartColumn | undefined) => VegaTimeUnit | undefined;
export declare const getPrimaryUnitSpec: (vegaSpec: VegaTopLevelSpec) => VegaUnitSpec;
export declare const buildTooltipField: (chartColumn: ChartColumn) => {
    field: string;
    aggregate: any;
    title: string;
    type: any;
    format: string | undefined;
};
//# sourceMappingURL=vega-utils.d.ts.map