import { AppState, EventMap } from '../types'; import { Store } from '../store'; import { EventBus } from '../event-bus'; /** * Check if an element is part of the Annotation UI */ export declare function isAnnotationElement(element: Element | null): boolean; /** * Check if an event originated from within Annotation UI (including shadow DOM) */ export declare function isAnnotationEvent(event: Event): boolean; /** * Get the target element from a mouse event, excluding Annotation elements */ export declare function getTargetElement(event: MouseEvent): Element | null; /** * Get current text selection */ export declare function getSelectedText(): string | null; /** * Create DOM event handlers bound to store and event bus */ export declare function createEventHandlers(store: Store, eventBus: EventBus): { attach: () => void; detach: () => void; isActive: () => boolean; }; export type EventHandlers = ReturnType; //# sourceMappingURL=events.d.ts.map