export type OAuth2ErrorCode = "invalid_request"; export interface OAuth2ErrorOptions { errorDescription?: string; errorUri?: string; statusCode?: number; } export declare class OAuth2Error extends Error { error: T; errorDescription: string | undefined; errorUri: string | undefined; statusCode: number; constructor(errorCode: T, options?: OAuth2ErrorOptions); toJSON(): { error_uri?: string; error_description?: string; error: T; }; toString(): string; } //# sourceMappingURL=OAuth2Error.d.ts.map