function isJSRPC(item) { try { return !!item[`__some_property_that_will_never_exist__${Math.random()}`]; } catch { return false; } } const isNotJSRPC = (item) => !isJSRPC(item); function isDurableObjectNamespace(item) { return item != null && isNotJSRPC(item) && typeof item.idFromName === "function"; } function isQueue(item) { return item != null && isNotJSRPC(item) && typeof item.send === "function" && typeof item.sendBatch === "function"; } export { isDurableObjectNamespace, isJSRPC, isQueue }; //# sourceMappingURL=isBinding.js.map