import { AiFrontendToolRunner } from '../tools';
import { AiAttachment, AiContext, AiMessage, AiProviderSettings, AiToolCall, AiUsage } from '../types';
declare const useAiChat: (runClientTool?: AiFrontendToolRunner, providerSettings?: AiProviderSettings) => {
    messages: AiMessage[];
    streamingText: string;
    liveThinking: string;
    liveTools: AiToolCall[];
    isStreaming: boolean;
    usage: AiUsage | undefined;
    initConversation: () => Promise<void>;
    sendMessage: (message: string, context: AiContext, attachments?: AiAttachment[]) => Promise<void>;
    clearConversation: () => void;
    compact: () => Promise<void>;
};
export default useAiChat;
