import type { HiConfig } from '../../config/schema.js'; import type { AvailableModel } from '../routing/model-resolver.js'; import type { RuntimeSignalSink } from '../events/event-sink.js'; import type { NativeProjectContext } from '../intent/repo-context.js'; import type { ChildSessionPort, HostAssistantResult } from '../host/port.js'; import type { HostCapabilityContract } from '../../contracts/host-capability.js'; import type { ProcessExecutor } from '../process/executor.js'; import type { WorkspaceExecutor } from '../workspace/executor.js'; import type { BrowserExecutor, BrowserExecutionContext } from '../browser/executor.js'; import { MissionStore } from '../mission/mission-store.js'; import { BackgroundRegistry } from '../background/registry.js'; import { RuntimePersistence } from '../state/persistence.js'; import { ConcurrencyScheduler } from '../scheduler/concurrency.js'; import { TaskRuntime } from '../task/task-runtime.js'; import { ProcessRuntime } from '../process/runtime.js'; import { WorkspaceRuntime } from '../workspace/runtime.js'; import { ChatHumanDecisionTransport } from '../human-decision/transport.js'; import { LocalPreviewManager } from '../browser/local-preview.js'; export interface RuntimeServicePorts { nativeContext: NativeProjectContext; childSession: ChildSessionPort; readAssistantResult?: (sessionID: string, limit?: number) => Promise; hostCapabilities: readonly HostCapabilityContract[]; process: ProcessExecutor; workspace: WorkspaceExecutor; createBrowser: (persist: (bytes: Uint8Array, context: BrowserExecutionContext) => string) => BrowserExecutor; bootstrapBrowser?: () => Promise<{ available: boolean; attempted?: boolean; cachePath?: string; version?: string; executablePath?: string; reason?: string; }>; onBrowserAvailability?: (available: boolean) => void; } export declare function createRuntimeServices(input: { ports: RuntimeServicePorts; projectRoot: string; packageRoot: string; getConfig: () => HiConfig; getModels: () => AvailableModel[]; getHostConfig: () => Record; }): { store: MissionStore; background: BackgroundRegistry; humanDecisionTransport: ChatHumanDecisionTransport; persistence: RuntimePersistence; scheduler: ConcurrencyScheduler; eventSink: RuntimeSignalSink; tasks: TaskRuntime; processExecutor: ProcessExecutor; processRuntime: ProcessRuntime; workspaceExecutor: WorkspaceExecutor; workspaceRuntime: WorkspaceRuntime; browserExecutor: BrowserExecutor; setBrowserAvailable: (value: boolean) => void; ensureBrowserAvailable: () => Promise<{ available: boolean; attempted: boolean; reason?: undefined; } | { available: boolean; attempted: boolean | undefined; reason: string | undefined; }>; getBrowserBootstrapStatus: () => { available: boolean; attempted?: boolean; cachePath?: string; version?: string; executablePath?: string; reason?: string; } | undefined; previewManager: LocalPreviewManager; scopedStores: import("./runtime-scoped-stores.js").RuntimeScopedStores; };