export declare function eventWrapper(cb: () => T): T | undefined;