import type { PluginInput } from '@opencode-ai/plugin'; interface MessagePart { type?: string; text?: string; [key: string]: unknown; } interface ChatTransformMessage { info: { id?: string; role?: string; agent?: string; sessionID?: string; }; parts: MessagePart[]; } export declare function createTodoContinuationHook(ctx: PluginInput, config?: { maxContinuations?: number; cooldownMs?: number; autoEnable?: boolean; autoEnableThreshold?: number; }): { tool: Record; handleToolExecuteAfter: (input: { tool: string; sessionID?: string; }, output?: { output?: unknown; }) => Promise; handleMessagesTransform: (output: { messages: ChatTransformMessage[]; }) => Promise; handleEvent: (input: { event: { type: string; properties?: Record; }; }) => Promise; handleChatMessage: (input: { sessionID: string; agent?: string; }) => void; handleCommandExecuteBefore: (input: { command: string; sessionID: string; arguments: string; }, output: { parts: Array<{ type: string; text?: string; }>; }) => Promise; }; export {};