import { Utils } from '../BaseUtils'; export declare class CustomError extends Error { constructor(message: string, statusCode?: number); statusCode: number; } export declare class ServiceError extends CustomError { constructor(message: string, props: ErrorHandlerProps); } export declare class ControllerError extends CustomError { constructor(message: string, props: ErrorHandlerProps); } export declare class ErrorUtils extends Utils { useBugsnag: boolean; constructor(props?: ConstructorProps); /** * @description Error handler * @param {object} props * @param {object|string|number|boolean|unknown} props.error * @param {string} [props.service] - Identifies the source service. * @param {string} [props.process] - Identifies the source process. * @param {string} [props.action] - Identifies the source action. * @param {boolean} [props.log] - Specifies whether to include a console error log. * @param {boolean} [props.statusCode] - Sets the HTTP status code for the error or defaults to 500. * @param {boolean} [props.bugsnag] - Specifies whether to report error to BugSnag. * @returns {Error} */ errorHandler: (props: ErrorHandlerProps) => Error; } //# sourceMappingURL=index.d.ts.map