export declare class Awaiter { protected promise: Promise; protected result: { value?: any; error?: any; }; protected timeoutHandler: any; protected resolver: (result: T) => any; protected rejector: (error: Error) => any; protected isAwaitedFlag: boolean; constructor(timeout?: number, customTimeout?: () => Error); watchdog(timeout?: number, customTimeout?: () => Error): void; static wrap(promise: Promise): Awaiter; wait(): Promise; get resolved(): Boolean; get isAwaited(): Boolean; resolve(value?: T): void; reject(error: Error): void; }