import type { PluginInput } from "@opencode-ai/plugin"; interface MessageInfo { id?: string; role?: string; sessionID?: string; parentID?: string; error?: unknown; } export interface SessionRecoveryHook { handleSessionRecovery: (info: MessageInfo) => Promise; isRecoverableError: (error: unknown) => boolean; setOnAbortCallback: (callback: (sessionID: string) => void) => void; setOnRecoveryCompleteCallback: (callback: (sessionID: string) => void) => void; } export declare function createSessionRecoveryHook(ctx: PluginInput): SessionRecoveryHook; export {};