import Promise$1 from 'apprt-core/CancelablePromise'; /** * Helper to wait until expected property state is resolved. * * @function * @alias module:waitForProperty * @param {Mutable|Accessor|Stateful} mutable instance which property is observed. * @param {String} property name of the property to wait for. * @param {Function|undefined|value} [comparatorOrExpectedValue] comparator function which tests the given value state, or a value to wait for. * If undefined the method will resolve if the property value is not undefined and not null. * @param {Object} [config] config object. Currently only a timeout can be configured. The default timeout is 10000msec. * @returns {Promise} promise the promise which transports the property value. * @example * const watchable = new Watchable(); * watchable.property = 0; * setTimeout(()=>{ * watchable.property = 1; * }); * * // block until property has value 1 * const value = await waitForProperty(watchable, "property", * (v) => v === 1, * {timeout:100}); * assert.equal(value, 1); * @deprecated use {@link test-utils/waitFor} instead. */ declare function waitForProperty(mutable: Mutable | Accessor | Stateful, property: string, comparatorOrExpectedValue?: Function | undefined | value, { timeout }?: Object): Promise$1; export { waitForProperty as default };