import type { HarRequest, PluginConfiguration } from '@scalar/types/snippetz'; /** A body segment is either literal UTF-8 text or a file read when the snippet runs. */ export type BodySegment = { text: string; } | { file: string; }; /** Request values shared by generators that serialize a body explicitly. */ type PreparedRequest = { url: string; method: string; headers: { name: string; value: string; }[]; body: BodySegment[] | undefined; }; /** Prevent names and filenames from terminating a multipart disposition parameter. */ export declare const dispositionValue: (value: string) => string; /** Normalize HAR values without dropping duplicate headers, cookies, query parameters, or empty bodies. */ export declare const prepareRequest: (request?: Partial, configuration?: PluginConfiguration) => PreparedRequest; /** Locate the framing marker that file serializers replace with a runtime boundary. */ export declare const multipartFileBoundary: (request: ReturnType | undefined) => string | undefined; export {}; //# sourceMappingURL=prepare-request.d.ts.map