//#region src/useBeforeUnmount/useBeforeUnmount.d.ts /** * Runs the latest callback when the component unmounts. * * @param fn - Cleanup callback. * * @example * ```tsx * useBeforeUnmount(() => { * subscription.close(); * }); * ``` */ declare const useBeforeUnmount: (fn: () => void) => void; //#endregion export { useBeforeUnmount }; //# sourceMappingURL=useBeforeUnmount.d.cts.map