import type { Observable } from '../../external/rxjs/index.js'; export type { Observable } from '../../external/rxjs/index.js'; export type ObserverCallback = (value: T) => void; /** * TypeScript helper to infer type of the value of an Observable. Including potentially becoming 'undefined' if the Observable type is possibly 'undefined'. */ export type UmbObserverValueType = (ObservableType extends Observable ? U : never) | (undefined extends ObservableType ? undefined : never); export declare class UmbObserver { #private; constructor(source: Observable, callback?: ObserverCallback); /** * provides a promise which is resolved ones the observer got a value that is not undefined. * Notice this promise will resolve immediately if the Observable holds an empty array or empty string. * */ asPromise(): Promise>; hostConnected(): void; hostDisconnected(): void; destroy(): void; }