declare class TwitterError extends Error {
    code: number | string | null;
    constructor({ body, statusCode }: {
        body?: any;
        statusCode?: null | number | string;
    }, message?: string | null, code?: null);
}
declare class WebhookURIError extends TwitterError {
}
declare class UserSubscriptionError extends TwitterError {
}
declare class RateLimitError extends Error {
    resetAt: number;
    code: number | string | null;
    constructor({ body, req, headers, statusCode }: {
        body: any;
        req?: any;
        headers?: any;
        statusCode: null | number | string;
    }, message?: null, code?: null);
}
declare class TooManySubscriptionsError extends TwitterError {
}
declare class AuthenticationError extends TwitterError {
}
declare class BearerTokenError extends TwitterError {
}
declare const tryError: (response: any, defaultError?: (response: any) => TwitterError) => boolean;
export { TwitterError, WebhookURIError, UserSubscriptionError, TooManySubscriptionsError, RateLimitError, AuthenticationError, BearerTokenError, tryError, };
//# sourceMappingURL=index.d.ts.map