import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { single } from '../../asynciterable/single.js'; import { OptionalFindOptions } from '../../asynciterable/findoptions.js'; /** * @ignore */ export function singleProto( this: AsyncIterable, options?: OptionalFindOptions ): Promise { return single(this, options as any); } AsyncIterableX.prototype.single = singleProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { single: typeof singleProto; } }