UNPKG

@ssttevee/streamsearch

Version:

A port of streamsearch for es modules using Web APIs

11 lines (10 loc) 709 B
import { Token } from './search'; export declare function splitChunks(chunks: Uint8Array[], needle: Uint8Array | string): Uint8Array[]; export declare function split(buf: Uint8Array, needle: Uint8Array | string): Uint8Array[]; export declare function chunksIterator(iter: AsyncIterable<Token>): AsyncIterableIterator<Uint8Array[]>; export declare function stringIterator(iter: AsyncIterable<Token>): AsyncIterableIterator<string>; export declare function allStrings(iter: AsyncIterable<Token>): Promise<string[]>; export declare function arrayIterator(iter: AsyncIterable<Token>): AsyncIterableIterator<Uint8Array>; export * from './search'; export * from './readable'; export * from './queueable';