1/**
2 * Low-level byte search used by the multipart parser.
3 *
4 * @stability unstable
5 * @since 4.0.0
6 */
7import * as internal from "./internal/search.ts"
8
9/**
10 * Creates an incremental byte search for a string boundary.
11 *
12 * @stability unstable
13 * @category constructors
14 * @since 4.0.0
15 */
16export const make: (
17 needle: string,
18 callback: (index: number, chunk: Uint8Array) => void
19) => { readonly write: (chunk: Uint8Array) => void; readonly end: () => void } = internal.make