Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 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"; } function isD1Database(item) { return item != null && isNotJSRPC(item) && typeof item.prepare === "function" && typeof item.batch === "function" && typeof item.exec === "function"; } function isAiBinding(item) { return item != null && isNotJSRPC(item) && typeof item.run === "function" && typeof item.gateway === "function" && typeof item.toMarkdown === "function"; } function isR2Bucket(item) { return item != null && isNotJSRPC(item) && typeof item.head === "function" && typeof item.put === "function" && typeof item.createMultipartUpload === "function"; } function isRateLimit(item) { return item != null && isNotJSRPC(item) && typeof item.limit === "function"; } exports.isAiBinding = isAiBinding; exports.isD1Database = isD1Database; exports.isDurableObjectNamespace = isDurableObjectNamespace; exports.isJSRPC = isJSRPC; exports.isQueue = isQueue; exports.isR2Bucket = isR2Bucket; exports.isRateLimit = isRateLimit; //# sourceMappingURL=isBinding.js.map