import { GridPosition, NodeId } from "../../data/types";
export interface LayoutNodeData {
    id: NodeId;
    position: GridPosition;
}
interface LayoutNodeInfo {
    data: LayoutNodeData;
    above: {
        [id: NodeId]: number;
    };
    below: {
        [id: NodeId]: number;
    };
}
export interface LayoutInfo {
    infos: {
        [id: NodeId]: LayoutNodeInfo;
    };
    positionToId: (NodeId | null)[][];
}
export declare function getLayoutInfo(data: LayoutNodeData[]): LayoutInfo;
export declare function addPosition(layoutInfo: LayoutInfo, nodeData: LayoutNodeData, paddingMap?: {
    [nodeId: NodeId]: number;
}): LayoutNodeData[];
export declare function deletePosition(layoutInfo: LayoutInfo, deletedId: NodeId): LayoutNodeData[];
export declare function movePosition(layoutInfo: LayoutInfo, nodeData: LayoutNodeData): LayoutNodeData[];
export {};
//# sourceMappingURL=grid-helpers.d.ts.map