///
///
/**
* Wait for a condition to be fulfilled.
*
* @param cb Receives the currently mounted component wrapped in JQuery and will
* wait for it until it either returns a truthy value or undefined.
* Returning a falsy value or throwing an exception will cause this
* to keep waiting.
* @param timeout Time in ms to wait until condition is fulfilled.
*
* @example
* await $wait(() => 1 === 1);
* await $wait(() => 1 === 1, 2000);
* await $wait(() => expect(1).to.equal(1))
* await $wait(() => { expect(1).to.equal(1); })
* await $wait($container => $container.text() === 'foobar');
*/
export declare function $wait(cb: ($container: JQuery) => unknown, timeout?: number): Promise;
/**
* Wait for a condition to be fulfilled.
*
* @param cb Receives the currently mounted component wrapped in JQuery and will
* wait for it until it either returns a truthy value or undefined.
* Returning a falsy value or throwing an exception will cause this
* to keep waiting.
* @param message A custom message that will be thrown if the condition is not met.
* @param timeout Time in ms to wait until condition is fulfilled.
*
* @example
* await $wait(() => 1 === 1, '1 should be 1');
* await $wait(() => expect(1).to.equal(1), '1 should be 1 before 2 secs', 2000)
*/
export declare function $wait(cb: ($container: JQuery) => unknown, message?: string, timeout?: number): Promise;
/**
* Wait for an element to exist in the currently rendered component.
*
* This function listens to mutations in the container via DOMObserver and will
* only check that the element is present when a mutation occurs. If no mutation
* occurs before `timeout`, or if the element is not present before `timeout`
* then it will throw.
*
* @param selector A CSS selector.
* @param timeout
*
* @example
* $waitForElement('div.myClass')
* $waitForElement('div > p + p')
*/
export declare function $waitForElement(selector: string, timeout?: number): Promise;
/**
* Wait for an element to exist in the currently rendered component.
*
* This function listens to mutations in the container via DOMObserver and will
* only check that the element is present when a mutation occurs. If no mutation
* occurs before `timeout`, or if the element is not present before `timeout`
* then it will throw.
*
* @param selector A CSS selector.
* @param message A custom message that will be thrown if the element does not appear.
* @param timeout
*
* @example
* $waitForElement('div.myClass')
* $waitForElement('div > p + p')
*/
export declare function $waitForElement(selector: string, message: string, timeout?: number): Promise;
/**
* Wait for an element to exist in the currently rendered component.
*
* This function listens to mutations in the container via DOMObserver and will
* only check that the element is present when a mutation occurs. If no mutation
* occurs before `timeout`, or if the element is not present before `timeout`
* then it will throw.
*
* @param cb Will receive the container for the currently rendered component,
* wrapped in JQuery, and is supposed to return a JQuery collection. The
* collection will be checked that it has at least one element in it.
* @param timeout
*
* @example
* $waitForElement($container => $container.find('.foobar'))
* $waitForElement($container => $container.find('div').children().find('p').get(1))
*/
export declare function $waitForElement(cb: ($container: JQuery) => JQuery, timeout?: number): Promise;
/**
* Wait for an element to exist in the currently rendered component.
*
* This function listens to mutations in the container via DOMObserver and will
* only check that the element is present when a mutation occurs. If no mutation
* occurs before `timeout`, or if the element is not present before `timeout`
* then it will throw.
*
* @param cb Will receive the container for the currently rendered component,
* wrapped in JQuery, and is supposed to return a JQuery collection. The
* collection will be checked that it has at least one element in it.
* @param message A custom message that will be thrown if the element does not appear.
* @param timeout
*
* @example
* $waitForElement($container => $container.find('.foobar'))
* $waitForElement($container => $container.find('div').children().find('p').get(1))
*/
export declare function $waitForElement(cb: ($container: JQuery) => JQuery, message: string, timeout?: number): Promise;