import { Response } from 'node-fetch'; export declare class MatrixBotError extends Error { errcode?: string; constructor(message: string, errcode?: string); } export declare function throwResponseError(response: Response): Promise;