import type { UiService } from '../domain/ui-service/types.js'; /** Handle app.ts holds for shutdown — structural, so this module needs no transport types at runtime. */ export interface UiHttpHandle { close: () => Promise; } /** * Start the Web UI HTTP+SSE transport-host on demand when CORTEX_UI_HTTP is set, else return null. * The transport module (which pulls @trpc/server + jose) is loaded via a dynamic import that is * only reached inside the enabled branch, so an unset flag keeps those deps out of the runtime graph. */ export declare function startUiHttpIfEnabled(uiService: UiService, env?: NodeJS.ProcessEnv): Promise;