export declare class ResponseError extends Error {
    response: Response;
    status: number;
    constructor(response: Response, message?: string);
}
export interface PostDataHTTPOptions extends Omit<RequestInit, 'body'> {
    url: string;
    method?: 'POST' | 'PUT' | 'PATCH';
}
export type PostDataFetcher = (input: string, init: RequestInit) => Promise<Response>;
export declare function postData({ url, method, ...httpOptions }: PostDataHTTPOptions, data: RequestInit['body'], fetcher?: PostDataFetcher): Promise<Response>;
//# sourceMappingURL=postData.d.ts.map