//#region src/profiles/ini.d.ts /** * Minimal INI parser and writer for the Databricks config file format. * * This matches the behavior of {@link https://pkg.go.dev/gopkg.in/ini.v1 | go-ini} * with `SpaceBeforeInlineComment: true`, which is how the Go SDK loads * databrickscfg files. Key behavioral details: * * - Inline comments are only recognized when `#` or `;` is preceded by a * space. The parser checks for `" #"` first; only if absent does it check * for `" ;"`. This matches Go's `strings.Index` precedence. * - Both `=` and `:` are key-value delimiters (Go default). Only the first * delimiter on a line splits key from value. * - Section names are the raw text between `[` and the last `]` on the line, * with no trimming. * - Keys and values are trimmed of surrounding whitespace. * - Lines without a delimiter throw an error (matching go-ini default). * * @module */ /** Parsed INI data as an ordered map of section names to key-value maps. */ type IniData = Map>; /** * Parses an INI-formatted string into structured data. * * Keys before any section header are assigned to the "DEFAULT" section. */ declare function parseIni(content: string): IniData; /** * Formats structured INI data back into a string. * * Each section's keys are aligned so that all `=` signs appear in the same * column, matching the output format of go-ini's `PrettyFormat` default. * Sections are separated by blank lines (`PrettySection` default). */ declare function formatIni(data: IniData): string; //#endregion export { IniData, formatIni, parseIni }; //# sourceMappingURL=ini.d.ts.map