import { AnyWidget } from './construct'; export declare enum Scope { Direct = 0, Delegate = 1, UntilMatch = 2, } export interface EventConfig { event?: string | string[]; preventDefault?: boolean; selector?: string; scope?: Scope; options?: boolean | AddEventListenerOptions; } export declare const On: (conf: EventConfig) => (proto: AnyWidget, method: string) => void;