import type { Plugin, ToolDefinition } from "@opencode-ai/plugin"; import type { TmuxConfig } from "@oh-my-opencode/tmux-core"; 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 & { "chat.headers"?: ChatHeadersHook; }; export type ToolsRecord = Record; export type { TmuxConfig };