import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { WithLatestFromAsyncIterable } from '../../asynciterable/operators/withlatestfrom.js'; /** * @ignore */ export function withLatestFromProto( this: AsyncIterableX, source2: AsyncIterable ): AsyncIterableX<[T, T2]>; export function withLatestFromProto( this: AsyncIterableX, source2: AsyncIterable, source3: AsyncIterable ): AsyncIterableX<[T, T2, T3]>; export function withLatestFromProto( this: AsyncIterableX, source2: AsyncIterable, source3: AsyncIterable, source4: AsyncIterable ): AsyncIterableX<[T, T2, T3, T4]>; export function withLatestFromProto( this: AsyncIterableX, source2: AsyncIterable, source3: AsyncIterable, source4: AsyncIterable, source5: AsyncIterable ): AsyncIterableX<[T, T2, T3, T4, T5]>; export function withLatestFromProto( this: AsyncIterableX, source2: AsyncIterable, source3: AsyncIterable, source4: AsyncIterable, source5: AsyncIterable, source6: AsyncIterable ): AsyncIterableX<[T, T2, T3, T4, T5, T6]>; export function withLatestFromProto( this: AsyncIterableX, ...sources: AsyncIterableX[] ): AsyncIterableX; export function withLatestFromProto( this: AsyncIterableX, ...args: any[] ): AsyncIterableX { return new WithLatestFromAsyncIterable(this, args); } AsyncIterableX.prototype.withLatestFrom = withLatestFromProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { withLatestFrom: typeof withLatestFromProto; } }