export type TIsFnAsyncArgs = Parameters; export type TIsFnAsyncReturn = ReturnType; /** * Checks if a function is async * @param {*} fn source function * @returns {boolean} * @example * // How to check if function is async? * const fn = async () => {}; * const isAsync = isFnAsync(fn); * console.log(isAsync); // => true * @example * // Detect whether a route loader was declared as an async function * const shouldShowPendingState = isFnAsync(route.load); */ export declare const isFnAsync: (fn: unknown) => boolean;