import { MaybeRef } from '../types';
type CustomEvent = {
    x: number;
    y: number;
    dx: number;
    dy: number;
    stop?: boolean;
};
type CaptureState = {
    el: HTMLElement | undefined;
    x: number;
    y: number;
};
export declare function useMouseCapture<T extends HTMLElement>(elRef: MaybeRef<T | undefined>, cb: (ev: CustomEvent, state: CaptureState) => void): void;
export {};
