/** * @file * * Resolves the absolute path of the installed Obsidian executable on the host machine. * * Used by desktop transports (`CLI`, `CDP`) to auto-launch Obsidian when it is * not already running. Supports installer-based installs (e.g. * `%LOCALAPPDATA%\Programs\Obsidian\Obsidian.exe` on Windows, * `/Applications/Obsidian.app` on macOS) and `PATH`-based installs (e.g. * `scoop` shims on Windows, package manager installs on Linux). * * The path is verified to exist on disk before being returned. If Obsidian * cannot be located, a descriptive `Error` is thrown so the caller can surface * an actionable message instead of spawning a non-existent binary (which on * Windows causes `start` to show a `ShellExecute` dialog box rather than * failing with an exit code). */ /** * Resolves the absolute path to the Obsidian executable on the host machine. * * @returns The absolute path to the Obsidian executable. * @throws Error if Obsidian cannot be located. */ export declare function resolveObsidianExecutable(): Promise;