import type { Dispatch, SetStateAction } from 'react';
import type { ConversationMessage, ChatState, JsonValue } from '../../types';
import type { ActionRequestEvent, ActionLoopContext } from './types';
export declare function handleActionLoop(client: ActionLoopContext['client'], initialEvent: ActionRequestEvent, streamState: ActionLoopContext['streamState'], onMessageUpdate: ActionLoopContext['onMessageUpdate'], setState: ActionLoopContext['setState'], widgetId: string, conversationId: string, getMessages: ActionLoopContext['getMessages']): Promise<void>;
export declare function setupActionResumeCallbacks(messages: ConversationMessage[], client: ActionLoopContext['client'], conversationId: string, setState: Dispatch<SetStateAction<ChatState>>, onMessageUpdate: (message: ConversationMessage) => void, createStreamState: () => ActionLoopContext['streamState'], registerCallback: (toolCallId: string, callback: (newState: Record<string, JsonValue>) => Promise<void>) => void): void;
//# sourceMappingURL=action-handler.d.ts.map