import { type ReactNode } from "react"; import { type XYCoord } from "@evil-internetmann/react-dnd"; import { type ReachedResizingLimit } from "./DragLayerPreview/types.js"; type ResizeDirection = "height" | "width" | "none"; type WidthState = { initialIndex: number; currentIndex: number; limitReached: ReachedResizingLimit; }; export type LayoutResizeState = { resizeDirection: ResizeDirection; resizeItemIdentifiers: string[]; heightLimitReached: ReachedResizingLimit; widthState: null | WidthState; initialDashboardDimensions: DOMRect; isItemNested: undefined | boolean; }; export type LayoutResizeHandlers = { resizeStart: (direction: Exclude, resizeIdentifiers: string[], isItemNested: boolean, getDashboardDimensions?: () => DOMRect) => void; resizeEnd: () => void; setScrollCorrection: (scrollCorrection: XYCoord) => void; getScrollCorrection: () => XYCoord; setWidthState: (widthState: WidthState) => void; toggleHeightLimitReached: (limit: ReachedResizingLimit) => void; }; export type LayoutResizeContext = LayoutResizeState & LayoutResizeHandlers; export type LayoutResizeStateProviderProps = { children: ReactNode; }; export declare function LayoutResizeStateProvider({ children }: LayoutResizeStateProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useResizeContext(): LayoutResizeContext; export declare function useResizeHandlers(): LayoutResizeHandlers; export declare function useResizeItemStatus(identifier: string): { isActive: boolean; isResizingColumnOrRow: boolean; heightLimitReached: ReachedResizingLimit; widthLimitReached: ReachedResizingLimit; initialDashboardDimensions: DOMRect; }; export declare function useResizeWidthItemStatus(identifier: string): { isWidthResizing: boolean; isActive: boolean; widthState: WidthState | null; }; export declare function useResizeWidthStatus(): { isResizingWidth: false; } | ({ isResizingWidth: true; isItemNested: boolean; } & WidthState); export {}; //# sourceMappingURL=LayoutResizeContext.d.ts.map