export type ISelectorResult = null | undefined | Node | Iterable; export type ISelector = ((node: Node) => ISelectorResult) | ((this: Document, node: Node) => ISelectorResult) | ISelector[];