import { PanelGroupDefinition, PanelGroupItemLayout } from '@perses-dev/core'; export declare function getYForNewRow(group: PanelGroupDefinition): number; export type UnpositionedPanelGroupItemLayout = Omit; /** * Inserts a new panel into the layout with placement determined by a specified * reference panel. The new panel is placed: * - To the right of the reference panel if there is space available without * moving other panels. * - Otherwise, directly below the reference panel. If other panels are below * this location, they will also shift downward because the grid uses * vertical-based compacting. * * @param newLayout - Layout for new panel to insert into the grid. * @param referenceLayout - Layout for reference panel used to determine the * placement of the new panel. * @param itemLayouts - Full grid layout. * @returns - Item layouts modified to insert the new panel. */ export declare function insertPanelInLayout(newLayout: UnpositionedPanelGroupItemLayout, referenceLayout: PanelGroupItemLayout, itemLayouts: PanelGroupItemLayout[]): PanelGroupItemLayout[]; /** * This function generates a unique panel key based on UUID or timestamp and random suffix. */ export declare const generatePanelKey: () => string; //# sourceMappingURL=panelUtils.d.ts.map