/** * Client-side helper for handing a local trail off to a running Principal * desktop app (electron-app) over its MCP bridge HTTP surface. * * Preferred over the Unix-socket handoff (viewer-ipc.ts) when the desktop app * is running: the bridge's `POST /api/file-city/trail/activate` route reads the * same on-disk trail store the app persists to, so a *local* trail id resolves * and opens in the app without a network fetch or GitHub token. Returns false * (caller falls back to the standalone viewer) when the app isn't running, the * probe times out, or the app doesn't have that trail. * * Duplicated rather than shared because cli and electron-app are independent * packages in separate repos — the HTTP route is the contract, this module * speaks it from the producer side. */ /** * Ask a running desktop app to open `trailId` from its local store. Returns * true only when the app actually surfaced the trail — i.e. it found the id AND * opened/focused a window (or broadcast the payload to an open one). A 404 (app * running but trail not in its store) or a no-window result returns false so the * caller can fall back to the standalone viewer. */ export declare function handoffToBridge(trailId: string): Promise; /** * Ask a running desktop app to open `topicId` from its local store. Mirrors * `handoffToBridge` but targets the topic activate route. */ export declare function handoffTopicToBridge(topicId: string): Promise; //# sourceMappingURL=bridge-ipc.d.ts.map