import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { SkipWhileAsyncIterable } from '../../asynciterable/operators/skipwhile.js'; /** * @ignore */ export function skipWhileProto( this: AsyncIterableX, predicate: (value: T, index: number, signal?: AbortSignal) => value is S ): AsyncIterableX; export function skipWhileProto( this: AsyncIterableX, predicate: (value: T, index: number, signal?: AbortSignal) => boolean | Promise ): AsyncIterableX; export function skipWhileProto( this: AsyncIterableX, predicate: (value: T, index: number, signal?: AbortSignal) => boolean | Promise ): AsyncIterableX { return new SkipWhileAsyncIterable(this, predicate); } AsyncIterableX.prototype.skipWhile = skipWhileProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { skipWhile: typeof skipWhileProto; } }