export interface HandlerOptions {
    isComplete?: boolean | null;
    percent?: number;
    progress?: number;
    contentLength?: number | null;
}
type HandlerFunction = (data: any, options?: HandlerOptions) => any;
interface RequestConfig {
    url: string;
    handler: HandlerFunction;
    errorHandler?: (error: any) => void;
    beforeReconnect?: () => void;
    params?: object;
    watch?: boolean;
    watchable?: boolean;
    contentType?: 'json' | 'text';
}
declare const useSetChunkFetch: () => {
    setChunkFetch: (this: unknown, config: RequestConfig) => import('react').MutableRefObject<any>;
};
export default useSetChunkFetch;
