import type { Server } from 'node:http'; import type { PluginInput } from '@opencode-ai/plugin'; import type { PluginConfig } from '../config'; import { type DashboardConfig } from './dashboard'; import type { InterviewSessionRuntime } from './runtime'; import { createInterviewService } from './service'; export declare function createDashboardManager(ctx: PluginInput, config: PluginConfig, dashboardPort: number, outputFolder: string, options?: { runtime?: InterviewSessionRuntime; sessionClient?: DashboardConfig['sessionClient']; /** Already-listening server for the dashboard role to adopt. */ server?: Server; }): { service: ReturnType; registerCommand: (config: Record) => void; handleCommandExecuteBefore: (input: { command: string; sessionID: string; arguments: string; }, output: { parts: Array<{ type: string; text?: string; }>; }) => Promise; handleEvent: (input: { event: { type: string; properties?: Record; }; }) => Promise; dispose: () => Promise; };