declare global { interface Element { query(selector: string): T; queryAll(selector: string): T[]; on(event: string, callback: Function): void; } interface Array { on(event: string, callback: Function): void; } interface NodeList { on(event: string, callback: Function): void; } } export declare function $(selector: string): T; export declare function $$(selector: string): T[];