/** * @file * * The package's CLI. Two commands: * * - The **default** (no subcommand) — a thin CLI over {@link connectToCdp}: launches * (or attaches to) a CDP-enabled Obsidian instance with the runtime helper * namespace bootstrapped, prints the chosen CDP port/URL, and stays alive until * interrupted so an external tool (raw CDP `ws`, DevTools, …) can attach. * - **`bootstrap-demo-vault`** — installs a demo vault's injected community plugins * headlessly (see `demo-vault-bootstrap.ts`). This is the copy-pasteable remedy * `buildDemoVaultPopulate`'s throw names, replacing the GUI-only "open * `demo-vault/` in Obsidian once" step that a fresh clone or CI cannot perform. * * Anything that is not a recognized subcommand falls through to the default * command, so `obsidian-integration-testing --vault …` keeps working unchanged. */ /** * Dispatches to the requested subcommand, falling through to the default CDP * command for anything that is not one. * * @returns A {@link Promise} that resolves once the chosen command has finished. */ export declare function main(): Promise;