import { type UseChatHelpers } from '@ai-sdk/react';
import { type UIMessage } from 'ai';
export type Chat = UseChatHelpers<ChatMessage>;
export type ChatMessage = UIMessage<{}, MessageDataPart>;
export type MessageDataPart = {
    toolName: ToolName;
    comment?: TComment;
    table?: TTableCellUpdate;
};
export type TComment = {
    comment: {
        blockId: string;
        comment: string;
        content: string;
    } | null;
    status: 'finished' | 'streaming';
};
export type TTableCellUpdate = {
    cell: {
        content: string;
        id: string;
    } | null;
    status: 'finished' | 'streaming';
};
export type ToolName = 'comment' | 'edit' | 'generate';
export declare const useChat: () => UseChatHelpers<ChatMessage>;
