/** * Wraps a callback in a try-catch block and logs any errors to the console */ export declare function safeEventCallback(callback: ((...args: Params) => void) | ((...args: Params) => Promise) | ((...args: Params) => void | Promise), message?: string): ((...args: Params) => void); export declare function safeEventCallback(callback?: undefined | void | never, message?: string): undefined; export declare function safeEventCallback(callback?: undefined | void | never | ((...args: Params) => void) | ((...args: Params) => Promise) | ((...args: Params) => void | Promise), message?: string): undefined | ((...args: Params) => void);