import type { AiSummaryStatus } from '../ai-summary/types';
import type { CnAiBizRequestConfig } from '../../../../../cn-ai-table/types';
export type SummaryMode = 'aiSummary' | 'smartFollowDetail';
export interface SummaryProviderResult {
    status: AiSummaryStatus;
    summary: string;
    /** 智能跟单任务的最近更新时间（仅 smartFollowDetail 模式） */
    gmtModified?: string;
    refresh: () => void;
    clearCache: () => void;
}
export interface UseSummaryProviderOptions {
    mode: SummaryMode;
    recordId: string | number | undefined;
    tableId: string;
    viewData?: any[];
    /** AI 摘要: 格式化行数据用于显示 */
    rowData?: Record<string, string>;
    /** AI 摘要: 记录中预先存在的摘要 */
    initialSummary?: string;
    /** 智能跟单: 原始记录对象 */
    recordData?: any;
    /** 智能跟单: 列定义 */
    columnDefinitions?: any[];
    /** 智能跟单: 会话上下文 */
    conversationId?: string | null;
    /** 摘要请求开关：aiSummary 为 false 时不轮询 `generateAiSummary`；smartFollowDetail 为 false 时不自动拉详情 */
    enabled?: boolean;
    /** 业务侧 AI 请求 URL 配置（仅 AI 字段能力） */
    bizRequestConfig?: Pick<CnAiBizRequestConfig, 'aiColumn'>;
}
export declare function useSummaryProvider({ mode, recordId, tableId, viewData, rowData, initialSummary, recordData, columnDefinitions, conversationId, enabled, bizRequestConfig, }: UseSummaryProviderOptions): SummaryProviderResult;
