/** * Wrap a callback calling preventDefault and stopPropagation on the event before passing it */ export declare function prevent void; stopPropagation: () => void; }>(cb?: (e: T) => void): undefined | ((e: T) => void); /** * Check if an event is within a rectangle */ export declare function isEventInRect(event: { clientX: number; clientY: number; }, rect: DOMRect): boolean;