import { xy } from '@synnaxlabs/x';
import { MutableRefObject, RefObject } from 'react';
import { Stage, Trigger } from './triggers';
export interface UseEvent {
    target: HTMLElement;
    triggers: Trigger[];
    stage: Stage;
    cursor: xy.XY;
}
export interface UseProps {
    triggers?: Trigger[];
    region?: RefObject<HTMLElement>;
    loose?: boolean;
    callback?: (e: UseEvent) => void;
}
export declare const use: ({ triggers, callback: f, region, loose }: UseProps) => void;
export interface UseHeldReturn {
    triggers: Trigger[];
    held: boolean;
}
export interface UseHeldProps {
    triggers: Trigger[];
    loose?: boolean;
}
export declare const useHeldRef: ({ triggers, loose, }: UseHeldProps) => MutableRefObject<UseHeldReturn>;
export declare const useHeld: ({ triggers, loose }: UseHeldProps) => UseHeldReturn;
//# sourceMappingURL=hooks.d.ts.map