import { C as CompressionType, R as ReadIniOptions, W as WriteIniOptions } from "./packem_shared/types.d-B-T1rDxl.js"; export type { I as IniEncodeOptions, a as IniLineEnding } from "./packem_shared/types.d-B-T1rDxl.js"; import 'node:fs'; import 'fdir'; /** * Asynchronously reads an INI file and parses it into an object. * @template R The expected type of the parsed object. Defaults to `Record<string, unknown>`. * @param path The path to the INI file. Can be a file URL or a string path. * @param options Optional configuration. See {@link ReadIniOptions}. * @returns A promise that resolves with the parsed object. * @example * ```javascript * import { readIni } from "@visulima/fs/ini"; * * const config = await readIni("./config.ini"); * ``` */ declare const readIni: >(path: URL | string, options?: ReadIniOptions) => Promise; /** * Synchronously reads an INI file and parses it into an object. * @template R The expected type of the parsed object. Defaults to `Record<string, unknown>`. * @param path The path to the INI file. Can be a file URL or a string path. * @param options Optional configuration. See {@link ReadIniOptions}. * @returns The parsed object. * @example * ```javascript * import { readIniSync } from "@visulima/fs/ini"; * * const config = readIniSync("./config.ini"); * ``` */ declare const readIniSync: (path: URL | string, options?: ReadIniOptions) => Record; /** * Asynchronously writes an object to an INI file. * * When an existing file is present and `preserveStyle` is `true` (the default), the original file's * whitespace-around-`=` style and line endings are auto-detected and retained, and any line whose * parsed value is unchanged is kept verbatim — preserving trailing whitespace and inline `;`/`#` * comments. Explicit `whitespace` / `eol` options always win over detection. * @param path The path to the INI file. Can be a file URL or a string path. * @param data The data to serialize. * @param options Optional configuration. See {@link WriteIniOptions}. * @returns A promise that resolves when the file has been written. * @example * ```javascript * import { writeIni } from "@visulima/fs/ini"; * * await writeIni("./config.ini", { server: { port: 8080 } }); * ``` */ declare const writeIni: (path: URL | string, data: Record, options?: WriteIniOptions) => Promise; /** * Synchronously writes an object to an INI file. * * When an existing file is present and `preserveStyle` is `true` (the default), the original file's * whitespace-around-`=` style and line endings are auto-detected and retained, and any line whose * parsed value is unchanged is kept verbatim — preserving trailing whitespace and inline `;`/`#` * comments. Explicit `whitespace` / `eol` options always win over detection. * @param path The path to the INI file. Can be a file URL or a string path. * @param data The data to serialize. * @param options Optional configuration. See {@link WriteIniOptions}. * @example * ```javascript * import { writeIniSync } from "@visulima/fs/ini"; * * writeIniSync("./config.ini", { server: { port: 8080 } }); * ``` */ declare const writeIniSync: (path: URL | string, data: Record, options?: WriteIniOptions) => void; export { type ReadIniOptions, type WriteIniOptions, readIni, readIniSync, writeIni, writeIniSync };