import { Boom as InternalBoom } from '@meshwatch/types'; import { FormErrorKeys, FormErrorsBoom } from '../validation/types'; export declare function validationBoom(errors?: T): InternalBoom; export declare function boomify(error: Error, options?: { statusCode?: number; message?: string; override?: boolean; }): InternalBoom; export declare function isBoom>(body: T | FormErrorsBoom): body is FormErrorsBoom; declare abstract class ServiceException extends Error { httpStatusCode: number; constructor(message: string, httpStatusCode: number, name: string); } export declare class DatabaseException extends ServiceException { constructor(message: string); } export declare class NotFoundException extends ServiceException { constructor(message: string); } export declare class ForbiddenException extends ServiceException { constructor(message: string); } export declare class BadRequestException extends ServiceException { constructor(message: string); } export declare class UnreachableCaseError extends ServiceException { constructor(val: never); } export {};