/** * Custom hook that monitors the availability of a jQuery plugin function. * * This hook continuously checks if a specified jQuery plugin function is available * on the jQuery.fn object using requestAnimationFrame for efficient polling. * It includes a timeout mechanism to prevent infinite checking and handles * errors gracefully with console warnings. * * @param {string} functionName The name of the jQuery plugin function to check for availability. * @returns {boolean} A boolean indicating whether the jQuery plugin function is ready/available. * * @example * ```tsx * const MyComponent = () => { * const isEasyPieChartReady = useJQueryFnReady('easyPieChart'); * * if (!isEasyPieChartReady) { * return
Loading chart library...
; * } * * return
Chart library is ready!
; * }; * ``` * * @since 1.0.0 */ declare const useJQueryFnReady: (functionName: string) => boolean; export { useJQueryFnReady };