export interface IEvent { onError(event: {}): void; onSuccess(event: {}): void; }