import { GenericFunction } from './shared/types';
/**
 * Returns a callback setter for a callback to be performed when the component will unmount.
 */
declare const useWillUnmount: <TCallback extends GenericFunction>(callback?: TCallback) => import("./shared/types").CallbackSetter<void>;
export default useWillUnmount;
