import { default as React } from 'react';

interface EntityViewWrapperProps<T> {
    /**
     * Function to fetch entity data by ID
     */
    fetchEntity: (id: string) => Promise<T>;
    /**
     * 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<T>({ fetchEntity, fallbackRoute, children, idField }: EntityViewWrapperProps<T>): import("react/jsx-runtime").JSX.Element;
export default EntityViewWrapper;
