export default function waitForElement(expectation: () => T, timeout?: number, interval?: number): Promise;