import { Output } from 'boom'; export interface ValidationDetail { message: string; path: string; type: string; context: { [key: string]: any; }; } export interface FelError extends Error { code: number; cause?: Error; isBoom: true; isServer: boolean; error_id: string; root_error_id: string; output?: Output; details?: Array; } export interface CreateErrorParams { code?: number; message?: string; cause?: any; root_error_id?: string; stack_from?: Function; } export declare function createError(params?: CreateErrorParams): FelError;