/**
 * Todo Continuation Handler
 *
 * Monitors session.idle events and automatically continues execution
 * if there are incomplete todos remaining.
 *
 * Features:
 * - Countdown toast before resuming (gives user chance to cancel)
 * - Skips if background tasks are running
 * - Respects abort/cancel from user
 */
import type { PluginInput } from "@opencode-ai/plugin";
type OpencodeClient = PluginInput["client"];
/**
 * Handle session.idle event - start countdown if todos remain
 */
export declare function handleSessionIdle(client: OpencodeClient, directory: string, sessionID: string, mainSessionID?: string): Promise<void>;
/**
 * Handle user message - cancel countdown (user is interacting)
 * Uses grace period to avoid cancelling countdown from our own injected messages
 */
export declare function handleUserMessage(sessionID: string): void;
/**
 * Handle session error - detect abort/cancel
 */
export declare function handleSessionError(sessionID: string, error: unknown): void;
/**
 * Handle abort/cancel - prevent automatic continuation
 */
export declare function handleAbort(sessionID: string): void;
/**
 * Clean up session state
 */
export declare function cleanupSession(sessionID: string): void;
/**
 * Check if there's a pending continuation countdown
 */
export declare function hasPendingContinuation(sessionID: string): boolean;
export {};
