import type { Plugin, ToolDefinition } from "@opencode-ai/plugin" export type PluginContext = Parameters[0] export type PluginInstance = Awaited> type ChatHeadersHook = PluginInstance extends { "chat.headers"?: infer T } ? T : (input: unknown, output: unknown) => Promise export type PluginInterface = Omit< PluginInstance, "experimental.session.compacting" | "chat.headers" > & { "chat.headers"?: ChatHeadersHook } export type ToolsRecord = Record export type TmuxConfig = { enabled: boolean layout: "main-horizontal" | "main-vertical" | "tiled" | "even-horizontal" | "even-vertical" main_pane_size: number main_pane_min_width: number agent_pane_min_width: number }