/** * Talks to the local That Open Revit add-in (revit-flow). The add-in runs a * 127.0.0.1 command listener and, on startup, writes its port + token to * %APPDATA%\ThatOpen\revit-addin.json so the CLI can discover it. Revit-specific * work (create central, create local, sync) happens inside the add-in; the CLI * only drives it — the same "CLI does everything" model as the rest of `thatopen`. */ export interface AddinInfo { port: number; token: string; pid: number; } /** The add-in's discovery file, or null. Unlike discoverAddin this never exits. */ export declare function tryDiscoverAddin(): AddinInfo | null; /** Is there an add-in listening right now? Asks it, rather than trusting the file: * Revit exiting leaves the file behind. */ export declare function addinAlive(): Promise; /** Waits for Revit to finish starting. Revit takes its time, and the add-in's * listener comes up well before the splash screen goes away. */ export declare function waitForAddin(timeoutMs: number): Promise; export declare function discoverAddin(): AddinInfo; export declare function callAddin(cmd: string, body?: Record): Promise>; /** * Push the logged-in user's credentials (API url + token) into the add-in so it * talks to the right account and environment (dev/prod). Idempotent; called * before each command. */ export declare function configureAddin(apiUrl: string, accessToken: string): Promise;