import { AiMessage, ChatMessage } from '../types/chat.types';
type Props = {
    system?: string;
    model: string | null;
    context?: Record<string, any>;
    toolContainers?: string[];
    prevMessages?: ChatMessage[];
    sessionKey?: string;
};
export declare const useAiChat: ({ system, model, context, toolContainers, prevMessages, sessionKey, }: Props) => {
    chatContainerRef: import('react').RefObject<HTMLUListElement | null>;
    clearMessages: () => void;
    handleSendMessage: (written: string) => void;
    interruptSending: () => void;
    isSending: boolean;
    messages: (AiMessage | import('../..').UserMessage)[];
    model: string | null;
    retryLastMessage: () => void;
    setMessages: import('react').Dispatch<import('react').SetStateAction<ChatMessage[]>>;
};
export {};
//# sourceMappingURL=use-chat.d.ts.map