/**
 * State Update Utilities
 *
 * Helper functions for common state update patterns to reduce code duplication.
 */
import type React from 'react';
import type { ChatMessage, WidgetState } from '../types';
/**
 * Add a message to the state
 */
export declare function addMessage(setState: React.Dispatch<React.SetStateAction<WidgetState>>, message: ChatMessage): void;
/**
 * Update a specific message in the state
 */
export declare function updateMessage(setState: React.Dispatch<React.SetStateAction<WidgetState>>, messageId: string, updates: Partial<ChatMessage>): void;
/**
 * Remove a message from the state
 */
export declare function removeMessage(setState: React.Dispatch<React.SetStateAction<WidgetState>>, messageId: string): void;
//# sourceMappingURL=stateUtils.d.ts.map