declare namespace Jymfony.Contracts.Kernel.Event { import Event = Jymfony.Contracts.EventDispatcher.Event; /** * Event triggered on unhandled promise rejection. */ export class UnhandledRejectionEvent extends Event { private _reason: Error; private _promise: Promise; /** * Constructor. */ // @ts-ignore __construct(reason: Error, promise: Promise): void; constructor(reason: Error, promise: Promise); /** * Gets the unhandled error. */ public readonly reason: Error; /** * Gets the rejected promise. */ public readonly promise: Promise; } }