export type BadRequestErrorOutput = { statusCode?: number; message?: string; }; export declare function isBadRequestErrorOutput(obj: unknown): obj is BadRequestErrorOutput; export declare class BadRequestError extends Error { readonly statusCode: number; readonly errorMessage?: string; constructor(output: BadRequestErrorOutput); } export type UnauthorizedErrorOutput = { statusCode?: number; message?: string; error?: string; }; export declare function isUnauthorizedErrorOutput(obj: unknown): obj is UnauthorizedErrorOutput; export declare class UnauthorizedError extends Error { readonly statusCode: number; readonly errorMessage?: string; readonly error?: string; constructor(output: UnauthorizedErrorOutput); } export type ForbiddenErrorOutput = { statusCode?: number; message?: string; error?: string; }; export declare function isForbiddenErrorOutput(obj: unknown): obj is ForbiddenErrorOutput; export declare class ForbiddenError extends Error { readonly statusCode: number; readonly errorMessage?: string; readonly error?: string; constructor(output: ForbiddenErrorOutput); } export type UnprocessableErrorOutput = { statusCode?: number; message?: Array; error?: string; }; export declare function isUnprocessableErrorOutput(obj: unknown): obj is UnprocessableErrorOutput; export declare class UnprocessableError extends Error { readonly statusCode: number; readonly messages: Array; readonly error?: string; constructor(output: UnprocessableErrorOutput); } export declare function handleError(response: Response): Promise; //# sourceMappingURL=errors.d.ts.map