/** * Returns the error message of the given error. * * @param error - The error from which to extract the error message. * @returns The extracted error message. */ export declare function getErrorMessage(error: unknown): string; /** * Converts the given unknown error type to an explicit error type. If given error is already an instance of Error then it is returned unchanged. * * @param error - The error to convert to an Error instance. * @returns The error instance. */ export declare function toError(error: unknown): Error;