///
export type Method = 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
/**
* Low level http handler for interacting with the Rivendell api.
*/
export declare namespace RivendellApi {
interface ApiResponse {
response: Response;
body: T;
}
export class ApiError extends Error {
responseText: string;
response?: Response | undefined;
constructor(message: string, responseText: string, response?: Response | undefined);
}
export function get(uri: string): Promise>;
export function post(uri: string, body: any): Promise>;
export function put(uri: string, body: any): Promise>;
export function delete_(uri: string): Promise>;
export function request(method: Method, uri: string, body?: any): Promise>;
export {};
}