import { MutableRefObject } from 'react'; import { DashboardConfig, DashboardGridSettings, DashboardLayoutMode, PortletConfig, RowLayout } from '../../types.js'; interface UseRowLayoutEngineOptions { layoutMode: DashboardLayoutMode; draftRows: RowLayout[] | null; config: DashboardConfig; gridSettings: DashboardGridSettings; configRef: MutableRefObject; onConfigChangeRef: MutableRefObject<((config: DashboardConfig) => void) | undefined>; onSaveRef: MutableRefObject<((config: DashboardConfig) => Promise | void) | undefined>; setDraftRows: (rows: RowLayout[] | null) => void; setThumbnailDirty: (dirty: boolean) => void; } export declare function useRowLayoutEngine({ layoutMode, draftRows, config, gridSettings, configRef, onConfigChangeRef, onSaveRef, setDraftRows, setThumbnailDirty, }: UseRowLayoutEngineOptions): { resolvedRows: RowLayout[]; updateRowLayout: (rows: RowLayout[], save?: boolean, portletsOverride?: PortletConfig[]) => Promise; }; export {};