/** * Basic event class which holds event type and data properties and which can be used as it is or * could be extended by any custom event class. */ export declare class Event { readonly type: string | Symbol; readonly data?: T; private _defaultPrevented; private _defaultPreventedReason; /** * Create new event. * @param type Event string type * @param data Data shipped along with event notification, if any */ constructor(type: string | Symbol, data?: T); /** * Flag which indicates that somewhere within event listeners default event action has been prevented * @returns {boolean} */ get defaultPrevented(): boolean; /** * Optional reason notion of why default action was prevented. */ get defaultPreventedReason(): string; /** * Prevent event default action */ preventDefault(reason?: string): void; /** * Get a string representation of the event * @returns {string} */ readonly toString: () => string; }