export type HuJsonSectionShape = "object" | "array"; export declare function parseHuJson(raw: string): T; /** * Merge `items` into the `key` section (`{...}` object or `[...]` array) of a * HuJSON document while preserving existing comments, formatting and trailing * commas. Each item is a pre-rendered line, e.g. `"tag:ci": ["tag:admin"]` or * `{ "target": ["tag:ci"], "attr": ["funnel"] }`. Returns the original text * unchanged when the target cannot be located. */ export declare function ensureHuJsonSection(raw: string, key: string, items: string[], shape?: HuJsonSectionShape): string; export declare function ensureHuJsonKey(raw: string, key: string, entries: Record): string; export declare function ensureHuJsonArrayItem(raw: string, key: string, item: unknown): string; //# sourceMappingURL=hujson.d.ts.map