type DefinitelyError = Extract extends never ? Error : Extract; /** * A function that checks if the passed parameter is an Error and narrows its type accordingly. * * @param data - The variable to check. * @returns True if the passed input is an Error, false otherwise. * @signature * R.isError(data) * @example * R.isError(new Error('message')) //=> true * R.isError('somethingElse') //=> false * @category Guard */ declare function isError(data: Error | T): data is DefinitelyError; export { isError };