import type { Identifier } from 'dnd-core'; import { type CSSProperties, type MutableRefObject } from 'react'; import { type DragLayerMonitor } from 'react-dnd'; import { type Point, type PreviewPlacement } from './offsets'; export type usePreviewState = { display: false; } | usePreviewStateFull; export type usePreviewStateFull = { display: true; } & usePreviewStateContent; export type usePreviewStateContent = { ref: MutableRefObject; itemType: Identifier | null; item: T; style: CSSProperties; monitor: DragLayerMonitor; }; export type usePreviewOptions = { placement?: PreviewPlacement; padding?: Point; }; export declare const usePreview: (options?: usePreviewOptions) => usePreviewState;