import { ComponentType, FC } from 'react'; /** * Higher-Order Component that protects a page/component by requiring authentication. * It leverages the `useAuth` hook, so all redirect logic is centralized there. * * @example * const OrdersPage = () =>
Orders
; * export const ProtectedOrdersPage = withAuth(OrdersPage); */ export declare const withAuth:

(WrappedComponent: ComponentType

) => FC

;