TransformationHookManager.prototype.hasHooks(): boolean
Returns true if at least one hook of any type has been registered.
The TransformationPipeline calls this as a fast-path guard before
each hook execution block. When no hooks are registered the pipeline
avoids constructing context objects and awaiting async calls entirely,
keeping the hot transform loop overhead at zero.