import { Subscription } from 'rxjs'; export declare function getOrDefault(value: any, def: any): any; export declare function getByKeyOrDefault(obj: any, key: string, def: any): any; export declare function getOptionById(options: any[], value: string, key?: string): any; export declare function unsubscriptionTimeout(timeout: number, sub: Subscription): void; export declare function unsubscribe(sub: Subscription): void; export declare function promiseTimeout(ms: any, promise: any): Promise; export declare function timePromise(ms: any): Promise; export declare function to(promise: Promise): Promise;