import { type IVisualizationSizeInfo } from "@gooddata/sdk-ui-ext";
import { type ILayoutItemPath } from "../../../../types.js";
import { type BaseDraggableLayoutItemSize } from "../../../dragAndDrop/types.js";
/**
 * The hook will take an item path, finds its parent layout and uses this information to return a function
 * that can be used to modify the default widget size. If the parent layout uses a "row" direction,
 * the original size is returned. If the parent layout uses a "column" direction, the original size is
 * returned with the default width set to the parent layout width.
 *
 * @param itemLayoutPath - path of the item for which we want to change sizing info
 */
export declare const useUpdateWidgetDefaultSizeByParent: (itemLayoutPath: ILayoutItemPath) => <T extends BaseDraggableLayoutItemSize | IVisualizationSizeInfo>(size: T) => T;
//# sourceMappingURL=useUpdateWidgetDefaultSizeByParent.d.ts.map