import { TurmsNotification } from '../model/proto/notification/turms_notification'; declare type ConstructorParams = { requestId?: string; code: number; reason?: string; cause?: Error; }; export default class ResponseError extends Error { private readonly _requestId?; private readonly _code; private readonly _reason?; private readonly _cause?; private constructor(); static get isResponseError(): boolean; get requestId(): string; get code(): number; get reason(): string; toString(): string; static from(param: ConstructorParams): ResponseError; static fromNotification(notification: TurmsNotification): ResponseError; static illegalParam(reason: string): never; static notFalsy(name: string, notEmpty?: boolean): never; static illegalParamPromise(reason: string): Promise; static notFalsyPromise(name: string, notEmpty?: boolean): Promise; } export {}; //# sourceMappingURL=response-error.d.ts.map