import { t as ConfigObject } from "../../types-lRv_6IzV.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;
/**
* Retrieve file metadata
*/
declare function getFileInfo(filepath: string): FileInfo | null;
//#endregion
export { FileInfo, deepMerge, ensureDir, fileExists, getFileInfo, readJSON, readTOML, resolveHome, writeJSON, writeTOML };