declare module "moltbot/plugin-sdk" { interface HookEvent { type: "command" | "session" | "agent" | "gateway" | "tool_result_persist"; action?: string; sessionKey?: string; timestamp?: string; messages?: string[]; context?: { sessionEntry?: { messages?: Array<{ role: string; content: string; }>; }; sessionId?: string; sessionKey?: string; sessionFile?: string; commandSource?: string; senderId?: string; workspaceDir?: string; bootstrapFiles?: string[]; cfg?: any; }; } type HookHandler = (event: HookEvent) => Promise; function registerPluginHooksFromDir(api: any, dir: string): void; }