var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });

// src/utils/models.ts
function extractDefaultEventsHandlerFromModel(modelInstance, functionType) {
  if (typeof modelInstance.options?.[functionType] === "function") {
    return modelInstance.options[functionType];
  } else if (typeof modelInstance.options?.[functionType] === "object" && // eslint-disable-next-line ts/no-unnecessary-type-assertion
  modelInstance.options[functionType].handler === "function") {
    return modelInstance.options[functionType].handler;
  }
  return;
}
__name(extractDefaultEventsHandlerFromModel, "extractDefaultEventsHandlerFromModel");
export {
  extractDefaultEventsHandlerFromModel
};
