import { default as React } from 'react'; interface EntityViewWrapperProps { /** * Function to fetch entity data by ID */ fetchEntity: (id: string) => Promise; /** * Route to navigate to if entity is not found */ fallbackRoute: string; /** * Component to render with entity data */ children: (entity: T) => React.ReactNode; /** * Optional ID field name in location.state (default: 'id') */ idField?: string; } /** * A wrapper component that handles fetching entity data using either URL parameters or location state * This provides backward compatibility during migration from state-based to URL parameter-based routing */ declare function EntityViewWrapper({ fetchEntity, fallbackRoute, children, idField }: EntityViewWrapperProps): import("react/jsx-runtime").JSX.Element; export default EntityViewWrapper;