import{o as e}from"./rolldown-runtime-FhOqtrmT.js";import{d as t,n}from"./cn-BOQea7EA.js";import{Ki as r,ia as i}from"./vendor-react-Vbe32VU9.js";function a(e){return!!e}var o=e(i(),1);function s(e={}){let{instanceId:i,clusterId:a}=r({strict:!1});return t({id:n,...e})}function c(e={}){let{instanceId:i,clusterId:a}=r({strict:!1});return{instanceClient:t({id:n,...e}),entityType:`instance`}}function l(e={}){let{instanceId:t,clusterId:n}=r({strict:!1});return(0,o.useMemo)(()=>u({instanceId:t,clusterId:n,...e}),[e.instanceId??t,e.clusterId??n,e.operationsUrl,e.port,e.secure,e.disableFabricConnect,e.forceFabricConnect])}function u({instanceId:e,clusterId:r,...i}){let a=n;if(!a)throw Error(`id could not be automatically calculated in useInstanceClientIdParams`);return{instanceClient:t({id:a,...i}),entityId:a,entityType:`instance`}}export{a,c as i,s as n,l as r,u as t};
//# sourceMappingURL=useInstanceClient-B-0rgxDK.js.map