import { n as ConfigObject } from "../../types-KR94Pl4P.js"; //#region src/services/settings/fsStore.d.ts interface FileInfo { size: number; lastModified: Date; } /** * Expand ~ to the current user's home directory */ declare function resolveHome(filepath: string): string; /** * Ensure the directory exists */ declare function ensureDir(dirPath: string): void; /** * Read a JSON file */ declare function readJSON(filepath: string): ConfigObject; /** * Write a JSON file */ declare function writeJSON(filepath: string, data: ConfigObject, backup?: boolean): void; /** * Read a TOML file */ declare function readTOML(filepath: string): ConfigObject; /** * Write a TOML file */ declare function writeTOML(filepath: string, data: ConfigObject, backup?: boolean): void; declare function deepMerge(target: ConfigObject, source: ConfigObject): ConfigObject; /** * Check whether the file exists */ declare function fileExists(filepath: string): boolean; /** * Read raw file contents (utf-8) */ declare function readFile(filepath: string): string; /** * Retrieve file metadata */ declare function getFileInfo(filepath: string): FileInfo | null; /** * Check whether a directory exists */ declare function dirExists(dirPath: string): boolean; /** * List files in a directory */ declare function listFiles(dirPath: string): string[]; /** * Copy a file (atomic operation) */ declare function copyFile(src: string, dest: string): void; /** * Move/rename a file */ declare function moveFile(src: string, dest: string): void; /** * Delete a file */ declare function deleteFile(filepath: string): void; /** * Find a settings variant file by name in a directory * Supports multiple naming conventions: settings.{name}.json, settings-{name}.json, settings_{name}.json * Also handles "default" as a special case and direct .json file paths */ declare function findVariantPath(directory: string, profile: string, defaultPath?: string): string | null; //#endregion export { FileInfo, copyFile, deepMerge, deleteFile, dirExists, ensureDir, fileExists, findVariantPath, getFileInfo, listFiles, moveFile, readFile, readJSON, readTOML, resolveHome, writeJSON, writeTOML };