import { Context } from '@curveball/core'; import { HttpError } from '@curveball/http-errors'; interface OAuthError extends HttpError { errorCode: string; } export declare function serializeError(ctx: Context, err: OAuthError): void; export declare class InvalidRequest extends Error implements OAuthError { httpCode: number; errorCode: string; } export declare class UnsupportedGrantType extends Error implements OAuthError { httpCode: number; errorCode: string; } export declare class UnauthorizedClient extends Error implements OAuthError { httpCode: number; errorCode: string; } export {};