import{oa as f,ra as m,sa as p,ta as d}from"./chunk-Q5JRYDN7.js";import{a as o}from"./chunk-E7C5DUH2.js";var n;try{n=(await import("@typespec/streams")).getStreamOf}catch{n=o(()=>{throw new Error("@typespec/streams was not found")},"getStreamOf")}function y(r,e){let t=e.body;if(!t)return;let s=t.contentTypes;if(!s.length)return;let u=t.property;if(!u)return;let a=c(r,u);if(a)return{bodyType:t.type,originalType:a.model,streamType:a.streamOf,contentTypes:s}}o(y,"getStreamMetadata");function c(r,e){let t=e.model?n(r,e.model):void 0;if(t)return{model:e.model,streamOf:t};if(e.sourceProperty)return c(r,e.sourceProperty)}o(c,"getStreamFromBodyProperty");export{y as getStreamMetadata,f as unsafe_DefaultRouteProducer,p as unsafe_getRouteProducer,d as unsafe_setRouteOptionsForNamespace,m as unsafe_setRouteProducer};
