Declare.HookSourceDeclaration hooks, to be run when a constant is saved. Use with care, as imperative effects may become not supported in the future.
Hooks allow users of the API to perform arbitrary actions at proof/definition saving time. For example, to register a constant as a Coercion, perform some cleanup, update the search database, etc...