import { type 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 | undefined) => import("./shared/types").CallbackSetter<undefined>;
export default useWillUnmount;
