import type { FoldRegion } from './foldUtils'; export declare const HTTP_FOLD_ID: { readonly headers: "http-headers"; readonly body: "http-body"; }; export type HttpFoldSectionOptions = { label?: string; defaultCollapsed?: boolean; }; export type HttpFoldOptions = { headers?: HttpFoldSectionOptions; body?: HttpFoldSectionOptions; /** Must match the startingLineNumber passed to CodeSnippetRoot. Default: 1 */ startingLineNumber?: number; }; /** * Detects header and body sections in an HTTP request/response and returns fold regions. * * Expected structure: * - Line 1: Request line (e.g. `GET /path HTTP/1.1`) or status line (e.g. `HTTP/1.1 200 OK`) * - Lines 2–N: Headers (key: value) * - Empty line: separator * - Remaining lines: Body (optional) * * Returns up to two fold regions (headers, body). Sections that don't exist are omitted. */ export declare function getHttpFolds(code: string, options?: HttpFoldOptions): FoldRegion[];