/** * Hook for managing error state and dispatching errors * * @returns Tuple of [error, dispatchError, clearError] * * @example * ```tsx * const [error, dispatchError, clearError] = useError(); * * const handleApiCall = async () => { * try { * await riskyApiCall(); * } catch (err) { * dispatchError(err); * } * }; * * return ( *
* {error &&
{error.message}
} * *
* ); * ``` */ export declare function useError(): [Error | undefined, (error: unknown) => void, () => void]; //# sourceMappingURL=useError.d.ts.map