/** * `useWindowDrag()` — pointerdown handler for a custom (frameless) titlebar. * * With `decorations: false` and/or `titleBarStyle: 'hidden'` (see * `WindowConfig`), the OS has no native titlebar left to drag the window by, * so the renderer must opt a region back in explicitly: * * ```tsx * import { useWindowDrag } from 'murasaki' * * function Titlebar() { * const drag = useWindowDrag() * return ( *
* My App *
* ) * } * ``` * * Skips interactive targets — buttons, inputs, links, selects, textareas, or * anything marked `data-murasaki-no-drag` — so titlebar controls (window * buttons, search fields, etc.) keep working underneath the draggable region, * and only starts a drag on the primary mouse button. A silent no-op outside * the native renderer or when the native drag itself cannot start (see * `appWindow.startDragging()`'s doc comment in `murasaki/native`) — this * never throws. */ import type { PointerEvent as ReactPointerEvent } from 'react'; export declare function useWindowDrag(): { onPointerDown: (event: ReactPointerEvent) => void; }; //# sourceMappingURL=window.d.ts.map