import URLSearchParams from "@ungap/url-search-params";
import { AxiosAdapter } from "axios";
export declare type StreamingFetchFunction = (args: StreamingFetcher.Args) => Promise<void>;
export declare namespace StreamingFetcher {
    interface Args {
        url: string;
        method: string;
        headers?: Record<string, string | undefined>;
        queryParameters?: URLSearchParams;
        body?: unknown;
        timeoutMs?: number;
        withCredentials?: boolean;
        adapter?: AxiosAdapter;
        onData: (data: unknown) => void;
        onError?: (err: unknown) => void;
        onFinish?: () => void;
        abortController?: AbortController;
        terminator?: string;
    }
}
export declare const streamingFetcher: StreamingFetchFunction;
