var y=(i,n,p)=>{for(let[e,c]of Object.entries(i)){let r=async function(s,t,a){let f=new c(s);if(typeof t=="function")this.send(f,t);else if(typeof a=="function"){if(typeof t!="object")throw new Error(`Expected http options but got ${typeof t}`);this.send(f,t||{},a)}else return this.send(f,t)},o=(e[0].toLowerCase()+e.slice(1)).replace(/Command$/,"");n.prototype[o]=r}let{paginators:m={},waiters:d={}}=p??{};for(let[e,c]of Object.entries(m))n.prototype[e]===void 0&&(n.prototype[e]=function(r={},o,...s){return c({...o,client:this},r,...s)});for(let[e,c]of Object.entries(d))n.prototype[e]===void 0&&(n.prototype[e]=async function(r={},o,...s){let t=o;return typeof o=="number"&&(t={maxWaitTime:o}),c({...t,client:this},r,...s)})};export{y as a};
