import type { Readable } from "node:stream"; /** * Parses a stream of UTF-8 encoded JSON bytes and returns the parsed value. * This should be used when parsing very large JSON payloads. * * @param stream The stream of UTF-8 encoded JSON bytes. * @returns The parsed JSON value. */ export declare function parseJsonStream(stream: Readable): Promise; /** * Builds the LPS (Longest Prefix Suffix) table used by the Knuth-Morris-Pratt * string search algorithm. For each index `i` in the pattern, `lps[i]` holds * the length of the longest prefix of `pattern[0..i]` that is also a suffix * of that substring. * * For example, given the pattern `ABCABD`, the substring at index 4 is * `ABCAB`. Its prefixes include `A`, `AB`, `ABC`, `ABCA` and its suffixes * include `B`, `AB`, `CAB`, `BCAB`. The longest prefix that is also a * suffix is `AB` (length 2), so `lps[4] = 2`. * * @param pattern The pattern to build the table for. * @returns An array where entry `i` is the LPS length for `pattern[0..i]`. */ export declare function buildLpsTable(pattern: Uint8Array): number[]; //# sourceMappingURL=bytes.d.ts.map