UNPKG

@react-libraries/virtual-window

Version:
17 lines (16 loc) 605 B
import { Dispatch } from "react"; import { ActionType, WindowParams, BaseType } from "../Types/types"; export declare type WindowDispatch = Dispatch<ActionType>; declare type Props = WindowParams & { ref: React.RefObject<HTMLElement>; titleSize: number; overlapped: boolean; baseX: BaseType; baseY: BaseType; }; export declare const useWindow: (windowParams: Props | (() => Props)) => { params: WindowParams; dispatch: Dispatch<ActionType>; handleWindow: (e: React.MouseEvent<HTMLElement, MouseEvent> | React.TouchEvent<HTMLElement>) => void; }; export {};