/** * Either extracts the error message out of an error, or converts * the value passed in into a string. */ export declare function getErrorMessage(e: unknown | Error): string; /** * Check if a parameter is defined. If not, it throws an error. * @param parameter Parameter to be checked. * @param parameterName Name of the parameter. */ export declare function requireDefinedParameter(parameter: unknown, parameterName: string): void; export declare function isError(err: unknown): err is Error; /** * Takes an error, and continues yielding errors by tracing the chain of * '.cause' properties on the error object. * Finally yields a "rootCause" object for Rollbar to log as a custom * property. */ export declare function causalChain(err: Error): Generator; //# sourceMappingURL=Errors.d.ts.map