interface HasQuerySelector { querySelector: Document["querySelector"]; } interface NodeLike extends HasQuerySelector, Node { [otherKey: string]: any; } type QuerySelectorReturn = ReturnType; type DefaultResult = Element; type DetectorResultType = { isDetected: true; result: Result; } | { isDetected: false; }; type Detector = (element: QuerySelectorResult) => DetectorResultType | Promise>; declare const isExist: Detector; declare const isNotExist: Detector; export { isNotExist as c, isExist as i }; export type { Detector as D, NodeLike as N, QuerySelectorReturn as Q, DefaultResult as a, DetectorResultType as b };