export declare function awaitForElement(idx: string): { cancel: () => void; promise: Promise; };