import React from 'react';
import type { UseChatPollingOptions, PollParams } from '../types/chat-polling';
/**
 * 轮询 Hook
 *
 * 封装 adapter.query 的定时轮询逻辑，支持：
 * - 可配置间隔与最大次数
 * - requestToken 竞态保护
 * - 组件卸载安全（isMountedRef）
 */
export declare function useChatPolling({ adapter, pollingConfig, onEvent }: UseChatPollingOptions): {
    startPolling: (params: PollParams) => void;
    stopPolling: () => void;
    activeTokenRef: React.RefObject<number>;
};
