/** * @file * * Reads and queries the user's Obsidian local configuration (`obsidian.json`). * * Used by the CDP transport's **attach** mode (targeting an already-running, * user-scope Obsidian). Harness-owned isolated instances write their own * `obsidian.json` directly into a temporary user-data dir and do not use these * helpers. */ /** * Removes a vault entry from Obsidian's `obsidian.json` config file. * * @param vaultPath - The absolute path to the vault folder. * @returns `true` if the vault was found and removed, `false` otherwise. */ export declare function didRemoveVaultFromConfig(vaultPath: string): boolean; /** * Returns the platform-specific path to the **user's** Obsidian config (user-data) * directory — `%APPDATA%\obsidian` on Windows, `~/Library/Application Support/obsidian` * on macOS, `$XDG_CONFIG_HOME/obsidian` (or `~/.config/obsidian`) on Linux. * * This is the user-scope directory; harness-owned isolated instances use their * own temporary user-data dir instead. * * @returns The absolute path to the `obsidian/` config directory. */ export declare function getObsidianConfigDirectory(): string; /** * Returns the hex vault ID for a given vault path from Obsidian's registry. * * @param vaultPath - The absolute path to the vault folder. * @returns The vault ID, or `undefined` if the vault is not registered. */ export declare function getVaultId(vaultPath: string): string | undefined; /** * Checks whether a vault path is registered in Obsidian's vault registry. * * @param vaultPath - The absolute path to the vault folder. * @returns `true` if the vault is registered, `false` otherwise. */ export declare function isVaultRegistered(vaultPath: string): boolean;