type OAuth2ErrorType = 'invalid_request' | 'invalid_client' | 'invalid_grant' | 'invalid_token' | 'invalid_scope' | 'unauthorized_client' | 'unsupported_grant_type' | 'unsupported_response_type' | 'insufficient_scope' | 'redirect_uri_mismatch' | 'access_denied' | 'server_error' | 'temporarily_unavailable' | (string & {}); declare class OAuth2Error extends Error { readonly status: number; readonly error: OAuth2ErrorType; constructor(status: number, error: OAuth2ErrorType, message?: string); } declare class AuthenticationError extends Error { constructor(message: string); } export { AuthenticationError, OAuth2Error, type OAuth2ErrorType };