import type StructuredQuery from "@metabase/embedding-sdk-react/dist/frontend/src/metabase-lib/v1/queries/StructuredQuery";
import type { DatasetColumn, DatasetData, PivotTableColumnSplitSetting, VisualizationSettings } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase-types/api";
import type { CustomColumnWidth, HeaderItem } from "./types";
export declare function updateValueWithCurrentColumns(storedValue: PivotTableColumnSplitSetting, columns: DatasetColumn[]): PivotTableColumnSplitSetting;
export declare function addMissingCardBreakouts(setting: PivotTableColumnSplitSetting, availableColumns: DatasetColumn[]): PivotTableColumnSplitSetting;
export declare function isColumnValid(col: DatasetColumn): boolean;
export declare function isFormattablePivotColumn(column: DatasetColumn): boolean;
interface GetLeftHeaderWidthsProps {
    rowIndexes: number[];
    getColumnTitle: (columnIndex: number) => string;
    leftHeaderItems?: HeaderItem[];
    font: {
        fontFamily?: string;
        fontSize?: string;
    };
}
export declare function getLeftHeaderWidths({ rowIndexes, getColumnTitle, leftHeaderItems, font, }: GetLeftHeaderWidthsProps): {
    leftHeaderWidths: number[];
    totalLeftHeaderWidths: number;
};
type ColumnValueInfo = {
    values: string[];
    hasSubtotal: boolean;
};
export declare function getColumnValues(leftHeaderItems: HeaderItem[]): ColumnValueInfo[];
export declare function isSensible({ cols }: {
    cols: DatasetColumn[];
}): boolean;
export declare function checkRenderable([{ data }]: [{
    data: DatasetData;
}], settings: VisualizationSettings, query: StructuredQuery): void;
export declare const leftHeaderCellSizeAndPositionGetter: (item: HeaderItem, leftHeaderWidths: number[], rowIndexes: number[]) => {
    height: number;
    width: number;
    x: number;
    y: number;
};
export declare const topHeaderCellSizeAndPositionGetter: (item: HeaderItem, topHeaderRows: number, valueHeaderWidths: CustomColumnWidth) => {
    height: number;
    width: number;
    x: number;
    y: number;
};
export declare const getWidthForRange: (widths: CustomColumnWidth, start?: number, end?: number) => number;
export declare const getCellWidthsForSection: (valueHeaderWidths: CustomColumnWidth, valueIndexes: number[], startIndex: number) => number[];
export {};
