import * as t from './types';
export declare function stringify(data: any, errorMessage: () => string): string;
export declare function parseJson(args: {
    url: string;
    text: string;
}): t.Json;
export declare function toRawHeaders(input?: t.HttpHeaders): Headers;
export declare function fromRawHeaders(input: Headers): t.HttpHeaders;
export declare function headerValue(key: string, headers?: t.HttpHeaders): string;
export declare function isFormData(headers?: t.HttpHeaders): boolean;
export declare function isStream(value?: ReadableStream<Uint8Array>): boolean;
export declare const response: {
    fromPayload(payload: t.HttpRespondPayload, modifications?: {
        data?: any;
        headers?: t.HttpHeaders | undefined;
    }): Promise<t.HttpResponse>;
    fromFetch(res: t.HttpFetchResponse): Promise<t.HttpResponse>;
    toContentType(headers: t.HttpHeaders): t.HttpContentType;
};
