/** * Electron app registry — maps site names to launch metadata. * * Builtin apps are defined here. User-defined apps are loaded * from ~/.opencli/apps.yaml (additive only, does not override builtins). */ export interface ElectronAppEntry { /** CDP debug port (unique per app) */ port: number; /** macOS process name for detection via pgrep */ processName: string; /** Candidate executable names inside Contents/MacOS/, tried in order */ executableNames?: string[]; /** macOS bundle ID for path discovery */ bundleId?: string; /** Human-readable name for prompts */ displayName?: string; /** Additional launch args beyond --remote-debugging-port */ extraArgs?: string[]; } export declare const builtinApps: Record; /** Merge builtin + user-defined apps. User entries are additive only. */ export declare function loadApps(userApps?: Record & { displayName?: string; }>): Record; export declare function getElectronApp(site: string): ElectronAppEntry | undefined; export declare function isElectronApp(site: string): boolean; /** Get all registered apps (builtin + user-defined). */ export declare function getAllElectronApps(): Record; /** Reset loaded apps (for testing). */ export declare function _resetRegistry(): void;