export function isAsyncGenerator(obj) {
    if (obj == null) {
        return false;
    }
    const asyncIterator = obj?.[Symbol.asyncIterator];
    if (typeof asyncIterator !== 'function') {
        return false;
    }
    const instance = obj;
    return typeof instance.next === 'function';
}
//# sourceMappingURL=is-async-generator.js.map