export type MultipartPart = { name: string; filename: string | null; type: string | null; body: Uint8Array; }; export type MultipartFramedPart = MultipartPart & { headers: Uint8Array; leading: Uint8Array; separator: Uint8Array; trailing: Uint8Array; }; export type MultipartEnvelope = { complete: boolean; preamble: Uint8Array; epilogue: Uint8Array; delimiters: Uint8Array[]; parts: MultipartFramedPart[]; }; /** The boundary named by any multipart media type. */ export declare function multipartBoundary(contentType: string | null | undefined): string | null; /** Used both by the byte reader and by consumers guarding placeholder spans within a part. */ export declare function multipartDelimiterPattern(boundary: string): string; /** Infer only a boundary with a corresponding closing line; Content-Type remains authoritative when supplied. */ export declare function inferMultipartBoundary(bytes: Uint8Array): string | null; /** Raw MIME framing and interpreted parts. A malformed tail ends reading and leaves `complete` false. */ export declare function multipartEnvelope(bytes: Uint8Array, boundary: string): MultipartEnvelope; /** The request's parts, in order, using the same framing reader as wire comparison. */ export declare function multipartParts(bytes: Uint8Array, boundary: string): MultipartPart[];