import type { PluginInput } from "@opencode-ai/plugin"; import type { RalphLoopState } from "./types"; import type { RalphLoopEventHandlerOptions } from "./event-handler-types"; export type EventHandlerRuntime = { readonly inFlightSessions: Set; readonly runtimeErrorRetriedSessions: Map; readonly recentHandledSyntheticIdleAt: Map; }; export declare function getVerificationSessionID(state: RalphLoopState): string | undefined; export declare function matchesLoopSession(state: RalphLoopState, sessionID: string, verificationSessionID: string | undefined): { readonly parent: boolean; readonly verification: boolean; }; export declare function maxIterationsReached(state: RalphLoopState): boolean; export declare function handleIdleEvent(ctx: PluginInput, options: RalphLoopEventHandlerOptions, runtime: EventHandlerRuntime, props: Record | undefined, sessionID: string): Promise;