import { ReactNode } from "react"; import { LocalizeString } from "ez-localize"; export interface EntityDisplayComponentProps { /** Entity type e.g. "water_point" */ entityType: string; /** _id of entity */ entityId?: string; /** code of entity if _id not present */ entityCode?: string; /** True to render in well if present */ displayInWell?: boolean; /** Gets an entity by id (entityType, entityId, callback). Required if entityId */ getEntityById?: (entityType: string, entityId: string, callback: (entity: any) => void) => void; /** Gets an entity by code (entityType, entityCode, callback). Required if entityCode */ getEntityByCode?: (entityType: string, entityCode: string, callback: (entity: any) => void) => void; /** Renders an entity as a React element */ renderEntityView: (entityType: string, entity: any) => ReactNode; /** Called when the user clicks the edit button with the loaded entity. Only shown when provided and canEdit returns true. */ onEdit?: (entity: any) => void; /** Called when the user clicks the view button with the loaded entity. Only shown when provided. */ onView?: (entity: any) => void; /** If provided, controls whether the edit button is visible for the given entity. Defaults to true if onEdit is set. */ canEdit?: (entity: any) => boolean; T: LocalizeString; } /** Loads and displays an entity. */ export default function EntityDisplayComponent(props: EntityDisplayComponentProps): import("react/jsx-runtime").JSX.Element | null;