export interface DetailObject { nativeEvent: Event; target: EventTarget | null; data: unknown; } /** * Type guard to check if the detail is a DetailObject. * @param detail - The detail to check. * @returns True if the detail is a DetailObject, false otherwise. */ export declare const isDetailObject: (detail: unknown) => detail is DetailObject; export declare class DelegateEvent { /** * @deprecated Use `nativeEvent` instead. */ readonly originalEvent: T; /** * The native event object. */ readonly nativeEvent: T; /** * The current target of the event. */ readonly currentTarget: EventTarget | null; /** * The delegate target of the event. */ readonly delegateTarget: EventTarget | null; /** * The original target of the event. */ readonly target: EventTarget | null; /** * The detail data associated with the event. */ readonly detail: unknown; private _stop; private _abort; /** * Creates a new DelegateEvent instance. * @param ev - The event object that was triggered * @param delegateTarget - The delegate target associated with the event. */ constructor(ev: T, delegateTarget: EventTarget | null); /** * Prevents the default action of the event. */ preventDefault(): void; /** * Stops the propagation of the event. */ stopPropagation(): void; /** * Stops the propagation of the event and prevents any further listeners from being called. */ stopImmediatePropagation(): void; get stop(): boolean; get abort(): boolean; }