/**
 * Internal dependencies
 */
import type { Hooks, StoreKey } from './types';
/**
 * Returns whether a hook is currently being executed.
 *
 */
export type DoingHook = (
/**
 * The name of the hook to check for.
 * If omitted, will check for any hook being executed.
 */ hookName?: string) => boolean;
/**
 * Returns a function which, when invoked, will return whether a hook is
 * currently being executed.
 *
 * @param hooks    Hooks instance.
 * @param storeKey
 *
 * @return Function that returns whether a hook is currently
 *                     being executed.
 */
declare function createDoingHook(hooks: Hooks, storeKey: StoreKey): DoingHook;
export default createDoingHook;
//# sourceMappingURL=createDoingHook.d.ts.map