// Generated by dts-bundle v0.7.3 // Dependencies for this module: // ../../../react import * as React from 'react'; global { interface Window { social: any; } } export interface ILikesAndCommentsProps { user: IUser; userRole?: "Administrator" | "Editor" | "Reader"; top?: number; itemId: string; item?: IAItem; webpartId?: string; tenant: string; component: string; instance: IInstance; token: string; environment?: IEnvironment; source: 'Home' | 'Mobile' | 'SharePoint'; imageUploadUrl: string; likesEnabled: boolean; commentsEnabled: boolean; likesOnCommentsEnabled?: boolean; color?: string; highlightColor: string; style?: React.CSSProperties; padding: number; likes?: ILike[]; commentCount?: number; isMobile: boolean; dataAutomationIdPrefix?: string; loadCommentsOnMount?: boolean; commentOpenedFromLink?: string; newCommentPopupIsShowing?: (isShowing: boolean) => void; likesUpdated: (likes: ILike[]) => void; commentsUpdated: (comments: number) => void; commentClicked?: () => void; commentCanceled?: () => void; onOpenIAMessage?: (instance: string, messageId: string) => void; onContentImageClicked?: (imageUrl: any) => void; reactionOptions?: string[]; showEmojiPickerExpandButton?: boolean; } export interface ILikesAndCommentsState { showSpinner: boolean; showAllComments: boolean; likes: ILike[]; comments: IComment[]; showLikeButtonLoader: boolean; allCommentsCount: number; reply: IReply; isMobile: boolean; lastCommentRerender: Date; isAddingComment: boolean; } export class IALikesAndComments extends React.Component { constructor(props: ILikesAndCommentsProps); componentDidMount(): void; componentWillReceiveProps(props: ILikesAndCommentsProps): void; render(): JSX.Element; } export interface IComment { id: string; user: IUser; itemId: string; content: string; created: Date; likes: ILike[]; source: string; mentions?: IUser[]; reply?: IReply; isDeleted?: boolean; isEdited?: boolean; } export interface IUser { displayName?: string; userPrincipalName?: string; jobTitle?: string; image?: string; id?: string; userName?: string; title?: string; name?: string; email?: string; photo?: string; loginName?: string; } export interface IReply { user: IUser; commentId: string; } export interface ILike { id?: any; user?: IUser; type?: string; } export interface IAItem { id: number; type: "Message" | "News" | "Notification"; title: string; topStory?: boolean; rollupImage?: string; pageImage?: string; imageGalleryData?: string; teaser?: string; creationDate?: Date; startDate?: Date; author: IUser; content: string; categories?: any[]; likes?: ILike[]; comments?: IComment[]; listId?: string; site?: string; hideLikes?: boolean; hideComments?: boolean; videoUrl?: string; instance?: string; } export declare type IEnvironment = "Development" | "Test" | "Production"; export interface IInstance { domain?: any; id?: any; instanceName?: string; title?: string; translationEnabled?: boolean; hasUniquePermissions?: UniquePermissionsResult; hasSpecialPermissions?: boolean; settings?: IInstanceSettings; pushEnabled?: boolean; modified?: Date; approvalEnabled?: boolean; approvers?: IUser[]; siteCollection?: string; checked?: boolean; } export declare enum UniquePermissionsResult { No = 0, Yes = 1, NoAccess = 2, Error = 3 } export interface IInstanceSettings { design?: IAppDesign; menu?: IAppPage[]; push?: IAppPush; useAppSettings?: boolean; pushByDefault?: boolean; plingByDefault?: boolean; enablePushFromPling?: boolean; targetingRequired?: boolean; categoriesRequired?: boolean; targetingRequiredToolTip?: string; categoriesRequiredToolTip?: string; notificationRequiredToolTip?: string; shouldByDefaultExpireAfterAmountOfDays?: number; enablePrinting?: boolean; enableReadUnreadMessage?: boolean; highlightUnread?: string; openMessageLink?: string; enableTeaser?: boolean; enablePinMessages?: boolean; pinSortOrder?: number[]; publishToFeedByDefault?: boolean; disableAddPost?: boolean; disableAddNewsLink?: boolean; hideTagsInPanel?: boolean; notificationRequiredUserRole?: "Administrator" | "Members"; shareSettingRequiredUserRole?: "Administrator" | "Members"; reactionOptions?: string[]; showEmojiPickerExpandButton?: boolean; } export interface IAppPage { title?: string; icon?: string; components?: IAppComponent[]; loaded?: boolean; selectedValues?: IItemData[]; targeting?: ITargeting; targetingExistingStructure?: ITargetingExistingStrucuture; } export interface IAppDesign { navigationBarColor: string; navigationBarContentColor: string; logo?: string; icon?: string; tabBarColor: string; tabBarContentColor: string; tabBarHighlightColor: string; menuStyle: "Burger" | "TabBar"; menuColor: string; menuContentColor: string; menuHighlightColor: string; contentAreaColor: string; contentAreaContentColor: string; contentAreaHighlightColor: string; } export interface IAppPush { instances: IInstance[]; } export interface IAppComponent { type?: string; title?: string; instance?: IInstance; url?: string; display?: IMessageDisplayMode; categories?: ICategory[]; showTitle?: boolean; numberOfCards?: number; numberOfDays?: number; backgroundColor?: string; borderColor?: string; borderRadius?: number; textColor?: string; higlightColor?: string; dateBadgeBackgroundColor?: string; dateBadgeTextColor?: string; showDropShadow?: boolean; showFilter?: boolean; showSearch?: boolean; showImage?: boolean; showCardTitle?: boolean; showTeaser?: boolean; showContact?: boolean; showStartDate?: boolean; showLocation?: boolean; showPeriode?: IEventPeriod; showLikes?: boolean; showComments?: boolean; showViews?: boolean; showFunctionButton?: boolean; showCategories?: boolean; filterByCategory?: boolean; useTargeting?: boolean; siteCollection?: string; showAdd?: boolean; birthdayIcon?: string; birthdayType?: string; birthdayProperties?: string[]; showNavigator?: boolean; loadLinksExternally?: boolean; yearsAnniversary?: {}; contentOrganizers?: string[]; selectall?: boolean; onlyShowIfThereIsContent?: boolean; placeholderText?: string; searchResultId?: string; showPaging?: boolean; showPinnedMessages?: boolean; onlyShowPinnedMessages?: boolean; aiContentLanguage?: string; aiSites?: any[]; descriptionHeadline?: string; descriptionText?: string; descriptionIcon?: string; autoRotate?: boolean; noContentText?: string; } export interface IItemData { label: string; id: string; field?: string; name?: string; } export interface ITargeting { enabled: boolean; custom1?: Array<{ label: string; id: string; }>; custom2?: Array<{ label: string; id: string; }>; department?: Array<{ label: string; id: string; }>; jobTitle?: Array<{ label: string; id: string; }>; location?: Array<{ label: string; id: string; }>; targetingFields?: Array<{ field: string; values: Array<{ label: string; id: string; }>; }>; groupData?: string; operator?: string; targetingGroups?: any[]; } export interface ITargetingExistingStrucuture { nodes: INode[]; useDefaultStructure: boolean; } export interface ICategory { id: string; name: string; } export declare type IEventPeriod = "upcomming" | "day" | "week" | "month" | "fullView" | "all"; export declare type IMessageDisplayMode = "Card view" | "List view" | "CompactListView" | "CarouselView" | "SplitCarouselView" | "RotatorView" | "TilesView" | "fullView" | "Calendar"; export interface INode { id: string; defaultLabel: string; labels: string[]; childNodes: INode[]; checked: boolean; expand?: boolean; columnName?: string; markedChild?: boolean; title?: string; }