import type React from 'react';
/**
 * Displays an error in the chat queue with special handling for cancellation errors.
 *
 * @param error - The error to display
 * @param keyPrefix - Prefix for the React component key
 * @param addToChatQueue - Callback to add error message to chat
 * @param getNextComponentKey - Function to generate unique React keys
 */
export declare const displayError: (error: unknown, keyPrefix: string, addToChatQueue: (component: React.ReactNode) => void, getNextComponentKey: () => number) => void;
//# sourceMappingURL=message-helpers.d.ts.map