import type { MutableRefObject } from 'react';
import { ToolCall } from '../ai-chat-panel/chatPanel.constants';
type Role = 'user' | 'assistant';
interface ChatMessage {
    role: Role;
    content: string;
    tool?: ToolCall;
}
interface OnSubmitProps {
    params?: any;
    input: string;
    setInput: (input: string) => void;
    abortRef: MutableRefObject<AbortController | null>;
}
export declare const useChat: (api: string, headers?: any) => {
    onSubmit: ({ params, input, setInput, abortRef }: OnSubmitProps) => Promise<void>;
    messages: ChatMessage[];
};
export {};
