import { errors } from '@balena/pinejs'; export declare const translateError: (err: Error | number | string) => string; export declare function captureException(err: Error, message?: string, options?: { tags?: { [key: string]: string; }; extra?: AnyObject; }): void; /** Captures and returns an InternalRequestError */ export declare const ThisShouldNeverHappenError: (errorMessage: string, options?: Parameters[2]) => errors.InternalRequestError; export declare const handleHttpErrors: (req: import("express").Request, res: import("express").Response, err: Error) => boolean;