import { Observable } from '../Observable'; export declare function toPromise(this: Observable): Promise; export declare function toPromise(this: Observable, PromiseCtor: typeof Promise): Promise;