import { CancelTokenSource } from 'axios';
interface RequestConfig {
    url: string;
    handler: (data: any) => any;
    beforeReconnect?: () => void;
    params?: object;
    contentType?: 'json' | 'text';
}
export declare const sliceJsonStr: (text: string) => string[];
export declare const createAxiosToken: () => CancelTokenSource;
export declare const sliceData: (data: string, loaded: number, loadedSize: any) => string;
declare const useSetChunkRequest: () => {
    setChunkRequest: (config: RequestConfig) => import('react').MutableRefObject<any>;
    createAxiosToken: () => {
        id: number;
        token: import('axios').CancelToken;
        cancel(): void;
    };
};
export default useSetChunkRequest;
