export type ActivityItem = { id: number; type: string; context?: Record; allowed_actions?: Array<'update' | 'destroy' | 'like'>; company_id?: number; /** * is not received from the back but have to be provided while saving activities */ asset_id?: number; rig?: any; well?: any; updated_at?: string; segment?: any; liked?: boolean; likes?: any[]; likes_count?: number; mentioned_users?: any[]; }; /** * @typedef {object} ActivityItem * @property {number} id * @property {string} type * @property {Record} [context] * @property {Array<'update' | 'destroy' | 'like'>} [allowed_actions] * @property {number} [company_id] * @property {number} [asset_id] is not received from the back but have to be provided while saving activities * @property {any} [rig] * @property {any} [well] * @property {string} [updated_at] * @property {any} [segment] * @property {boolean} [liked] * @property {any[]} [likes] * @property {number} [likes_count] * @property {any[]} [mentioned_users] */ /** * @param {object} props * @param {ActivityItem} props.feedItem * @param {string[]} [props.editableFeedItemTypes] * @param {(feedItemId: number) => void} [props.removeFeedItem] called after a feed item was removed by a user * @param {(feedItem: ActivityItem) => void} [props.enterEditMode] called when a used clicks "Edit" menu item * @param {any} [props.router] used for alert navigation by host applications * @param {any} props.currentUser used to display Avatar and to determine the ability to edit comments * @param {any} [props.appData] passed to body Template * @param {Record} [props.customFeedItemTypeTemplates] * @param {string} [props.paperClassName] * @param {any} [props.getFeedItemMessage] used only to create a data-testid attribute * @param {(feedItem: ActivityItem) => void} [props.onFeedItemClick] * used to override built-in navigation for clickable alert feed items * @param {ReactNode} [props.extraActions] additional action nodes rendered inside the reactions/actions row, after the built-in like and comment buttons */ declare function FeedItem({ feedItem, editableFeedItemTypes, removeFeedItem, enterEditMode, router, currentUser, appData, customFeedItemTypeTemplates, paperClassName, getFeedItemMessage, onFeedItemClick, extraActions, ...props }: { feedItem: ActivityItem; editableFeedItemTypes?: string[]; removeFeedItem?: (feedItemId: number) => void; enterEditMode?: (feedItem: ActivityItem) => void; router?: any; currentUser: any; appData?: any; customFeedItemTypeTemplates?: Record; paperClassName?: string; getFeedItemMessage?: any; onFeedItemClick?: (feedItem: ActivityItem) => void; extraActions?: ReactNode; }): import("react").JSX.Element; export default FeedItem; //# sourceMappingURL=FeedItem.d.ts.map