import { type HookEvent } from "./shared/event-utils"; import { type LoopState, type LoopStore } from "./state"; export interface LoopHandlerOptions { completionPromise?: string; detectCompletion?: (event: HookEvent, state: LoopState) => boolean; sendContinuationMessage?: (sessionId: string, message: string) => Promise | void; } export declare function buildLoopContinuationMessage(state: LoopState, completionPromise: string): string; export declare function createLoopHandler(store: LoopStore, options?: LoopHandlerOptions): (input: unknown) => Promise;