import {waitForOptions} from './wait-for'

/**
 * @deprecated `waitForElement` has been deprecated.
 * Use a `find*` query (preferred: https://testing-library.com/docs/dom-testing-library/api-queries#findby)
 * or use `waitFor` instead: https://testing-library.com/docs/dom-testing-library/api-async#waitfor
 */
export function waitForElement<T>(
  callback: () => T,
  options?: waitForOptions,
): Promise<T>
