type Scope = Element | Window | Document // borrowed from DOM querySelectorAll declare function $(selectors: K, scope?: Scope): HTMLElementTagNameMap[K][]; declare function $(selectors: K, scope?: Scope): SVGElementTagNameMap[K][]; declare function $(selectors: string, scope?: Scope): E[]; declare function $(selectors: W, scope?: Scope): [W]; declare function $(selectors: D, scope?: Scope): [D]; export default $