export interface CancelableEvent { /** * The type of the event */ readonly type: T; /** * The target for the event */ readonly target: U; /** * Can the event be canceled? */ readonly cancelable: boolean; /** * Was the event canceled? */ readonly defaultPrevented: boolean; /** * Cancel the event */ preventDefault(): void; } /** * A simple factory that creates an event object which can be cancelled * * @param options The options for the event */ declare function createCancelableEvent(options: { type: T; target: U; }): CancelableEvent; export default createCancelableEvent;