import React from "react"; import type { ClickEvent, DblClickEvent, MouseDownEvent, MouseUpEvent, MoveEvent, SpanSelectEvent, PressAndWheelEvent, SyncEvent_Move, ContextMenuEvent } from "./types"; export declare const makeInteractionsBus: () => { addEventListener: (syncKey: string, callback: (syncKey: string, payload: T) => void) => () => void; dispatchEvent: (syncKey: string, payload: T) => void; }; export type InteractionsBus = ReturnType>; export declare const InteractionsBus: { dblclick: { addEventListener: (syncKey: string, callback: (syncKey: string, payload: DblClickEvent) => void) => () => void; dispatchEvent: (syncKey: string, payload: DblClickEvent) => void; }; click: { addEventListener: (syncKey: string, callback: (syncKey: string, payload: ClickEvent) => void) => () => void; dispatchEvent: (syncKey: string, payload: ClickEvent) => void; }; contextmenu: { addEventListener: (syncKey: string, callback: (syncKey: string, payload: ContextMenuEvent) => void) => () => void; dispatchEvent: (syncKey: string, payload: ContextMenuEvent) => void; }; move: { addEventListener: (syncKey: string, callback: (syncKey: string, payload: MoveEvent) => void) => () => void; dispatchEvent: (syncKey: string, payload: MoveEvent) => void; }; mousedown: { addEventListener: (syncKey: string, callback: (syncKey: string, payload: MouseDownEvent) => void) => () => void; dispatchEvent: (syncKey: string, payload: MouseDownEvent) => void; }; mouseup: { addEventListener: (syncKey: string, callback: (syncKey: string, payload: MouseUpEvent) => void) => () => void; dispatchEvent: (syncKey: string, payload: MouseUpEvent) => void; }; spanselect: { addEventListener: (syncKey: string, callback: (syncKey: string, payload: SpanSelectEvent) => void) => () => void; dispatchEvent: (syncKey: string, payload: SpanSelectEvent) => void; }; documentmouseup: { addEventListener: (syncKey: string, callback: (syncKey: string, payload: import("./types").InteractionsEvent) => void) => () => void; dispatchEvent: (syncKey: string, payload: import("./types").InteractionsEvent) => void; }; pressandwheel: { addEventListener: (syncKey: string, callback: (syncKey: string, payload: PressAndWheelEvent) => void) => () => void; dispatchEvent: (syncKey: string, payload: PressAndWheelEvent) => void; }; sync_move: { addEventListener: (syncKey: string, callback: (syncKey: string, payload: SyncEvent_Move) => void) => () => void; dispatchEvent: (syncKey: string, payload: SyncEvent_Move) => void; }; }; export declare const useGenericInteractionsEvent: (eventName: K, syncKey: string, callback: (payload: Parameters<(typeof InteractionsBus)[K]["dispatchEvent"]>[1], syncKey: string) => void) => void; export declare const InteractionsIdContext: React.Context; export declare const useInteractionsEvent: (eventName: K, callback: (payload: Parameters<(typeof InteractionsBus)[K]["dispatchEvent"]>[1], syncKey: string) => void) => void; //# sourceMappingURL=interactionsBus.d.ts.map