1 | import { AsyncIterableX } from '../../asynciterable/asynciterablex';
|
2 |
|
3 |
|
4 |
|
5 | export declare function firstProto<T, S extends T>(this: AsyncIterableX<T>, predicate?: (value: T, index: number) => value is S): Promise<S | undefined>;
|
6 | export declare function firstProto<T>(this: AsyncIterableX<T>, predicate?: (value: T, index: number) => boolean | Promise<boolean>): Promise<T | undefined>;
|
7 | declare module '../../asynciterable/asynciterablex' {
|
8 | interface AsyncIterableX<T> {
|
9 | first: typeof firstProto;
|
10 | }
|
11 | }
|