import GenericError from "./GenericError"; import { IError } from "./IError"; import { ScopeAccessTokenPair } from "../IAccessToken"; export declare class MalformattedTokenRequestError extends GenericError { message: string; static get code(): number; static get httpCode(): number; constructor(message?: string); } export declare class InvalidResponseTypeError extends GenericError { message: string; static get code(): number; static get httpCode(): number; constructor(message?: string); } export declare class InvalidClientOrProviderError extends GenericError { message: string; static get code(): number; static get httpCode(): number; constructor(message?: string); } export declare class ErrorGettingTokenFromProviderError extends GenericError { innerError: IError | Error; message: string; static get code(): number; static get httpCode(): number; constructor(innerError: IError | Error, message?: string); } export declare class ProviderDoesNotAllowRegistrationError extends GenericError { message: string; static get code(): number; static get httpCode(): number; constructor(message?: string); } export declare class CouldNotFindTokenForScopeError extends GenericError { query: ScopeAccessTokenPair; static get code(): number; static get httpCode(): number; message: string; constructor(query: ScopeAccessTokenPair, message?: string); } export declare class CouldNotLocateStateError extends GenericError { message: string; static get code(): number; static get httpCode(): number; constructor(message?: string); } export declare class NotAuthorizedToUseScopesError extends GenericError { scopes?: string[]; message: string; static get code(): number; static get httpCode(): number; constructor(scopes?: string[], message?: string); } export declare class InvalidAccessTokenError extends GenericError { message: string; static get code(): number; static get httpCode(): number; constructor(message?: string); } export declare class InvalidGrantTypeError extends GenericError { message: string; static get code(): number; static get httpCode(): number; constructor(message?: string); } export declare class AccessTokenNotFoundError extends GenericError { message: string; static get code(): number; static get httpCode(): number; constructor(message?: string); } export declare class ClientOrProviderDoesNotHaveAccessToGroupError extends GenericError { message: string; static get code(): number; static get httpCode(): number; constructor(message?: string); }