{"version":3,"file":"trace-factory-validation-Dc8epn87.cjs","names":[],"sources":["../src/trace-factory-validation.ts"],"sourcesContent":["/**\n * Validate the two stages of Autotel's public factory wrappers without\n * coupling helper modules to the large functional tracing implementation.\n */\nexport function assertTraceFactory(\n  helperName: string,\n  value: unknown,\n  stage: 'factory' | 'result' = 'factory',\n): asserts value is (...args: never[]) => unknown {\n  if (typeof value === 'function') return;\n\n  throw new TypeError(\n    stage === 'factory'\n      ? `${helperName}: expected a factory (ctx) => (...args) => result`\n      : `${helperName}: factory must return a function; expected (ctx) => (...args) => result`,\n  );\n}\n"],"mappings":";;;;;;AAIA,SAAgB,mBACd,YACA,OACA,QAA8B,WACkB;CAChD,IAAI,OAAO,UAAU,YAAY;CAEjC,MAAM,IAAI,UACR,UAAU,YACN,GAAG,WAAW,qDACd,GAAG,WAAW,wEACpB;AACF"}