/** * Hook that returns whether the component is currently mounted * * @returns True if component is mounted, false otherwise * * @example * ```tsx * const Component = () => { * const isMounted = useMountedState(); * const [data, setData] = useState(null); * * useEffect(() => { * fetchData().then((result) => { * if (isMounted()) { * setData(result); * } * }); * }, []); * }; * ``` */ export declare function useMountedState(): () => boolean; //# sourceMappingURL=useMountedState.d.ts.map