declare type Callback = (args?: any) => void; /** * Reliably enhances a React component method. An example of when this might * be used would be within a React.Children map. * * @param {any} child The React.Children child. * @param {string} method The name of the method to enhance. * @param {function} callback The enhanced callback function. */ declare const enhanceComponentMethod: (child: any, method: string) => (callback?: Callback | undefined) => (...args: any) => any; export default enhanceComponentMethod;