import { AxiosError } from 'axios'; import { ITwitterError, ITwitterErrorDetails } from '../../types/errors/TwitterError'; import { IErrorData as IRawErrorData, IErrorDetails as IRawErrorDetails } from '../../types/raw/base/Error'; /** * The error thrown by Twitter API. * * @public */ export declare class TwitterError extends Error implements ITwitterError { details: ITwitterErrorDetails[]; message: string; name: string; status: number; /** * @param error - The error response received from Twitter. */ constructor(error: AxiosError); } /** * The error details. * * @public */ export declare class TwitterErrorDetails implements ITwitterErrorDetails { code: number; message: string; name?: string; type?: string; /** * @param details - The details of the error. */ constructor(details: IRawErrorDetails); /** * @returns The JSON representation of `this` object. */ toJSON(): ITwitterErrorDetails; }