import { BehaviorSubject } from 'rxjs'; import { ElementRef } from '@angular/core'; export declare enum CurrentDisplayList { message = "message", poll = "poll", participants = "participants", default = "message" } export declare enum DescriptionPanelActionEnum { edit = "edit", delete = "delete", copy = "copy", default = "" } export declare const appState: BehaviorSubject; export interface AppStateInterface { filters: BehaviorSubject; scId: number; descriptionPanel: BehaviorSubject; userAgreement: BehaviorSubject; navigationBar: BehaviorSubject<{ disable: boolean; }>; progressBar: BehaviorSubject; settingsShow?: boolean; mainContentDOMElementState?: null | MainContentDOMElementStateInterface; messages?: BehaviorSubject; ad?: BehaviorSubject; files?: BehaviorSubject; emNumber?: BehaviorSubject; buildingList?: BehaviorSubject; multipleChatsMessage?: BehaviorSubject<{ text: string; }>; } export interface FileInterface { value?: File | any; id?: string; loadStatus?: StatusEnum; } export interface UserAgreementInterface { show: boolean; agree: boolean; } export interface DescriptionPanelInterface { listElement: any; action: DescriptionPanelActionEnum; } export interface ProgressBarInterface { show: boolean; value: number; } export interface BuildingListInterface { checkboxOn: boolean; buildingIds?: string[]; } export interface AdInterface { heading: string; details?: string; date?: { dateStart: Date; dateEnd: Date; }; change?: boolean; bmId?: number; } export interface EmNumberInterface { emNumberName: string; emNumber?: string; checkboxOn?: BehaviorSubject; change?: boolean; emNumberId?: number; } export interface AdFileInterface { value?: File | any; id?: string; loadStatus?: StatusEnum; } export interface MainContentDOMElementStateInterface { scrollHeight: number; scrollTop: number; clientHeight: number; } export interface MessagesStateInterface { messageContent: BehaviorSubject; messageCheckboxOn?: boolean; fileUpload?: boolean; selectedMessageList?: SelectedMessageListInterface[]; unsentMessages?: UnsentMessagesInterface[]; action?: ActionEnum; excludedDOMElements?: ElementRef[]; filesStorage?: any[]; replyMessage?: { messageContent: { text: string; }; }; mentionsMessages?: BehaviorSubject<{ [key: string]: MessageInterface[]; }>; } export interface AppStateFiltersInterface { chatFilter?: { buildingIds?: number[]; checkChatId?: BehaviorSubject; }; currentDisplayList?: BehaviorSubject; search?: BehaviorSubject; } export interface SelectedMessageListInterface extends MessageInterface { timeId: number; status?: string; } export interface UnsentMessagesInterface extends MessageInterface { htmlCodeMessage: string; status?: string; } export interface SocketMessageInterface extends MessageInterface { type: string; updated: boolean; } export interface MessageInterface { id: number; messageContent: any; user: UserInterface; dateTime: number; chatId: number; replyMessage?: MessageInterface; mentionedUsers?: MessageInterface[]; type?: string; reply?: boolean; mention?: boolean; } export interface UserInterface { id: number; firstName?: string; lastName?: string; userOwnRole?: string; registrationDate?: string; } export interface MessageContentInterface { text: string; } export interface FileMessageContentInterface { id: string; url: string; mimeType: string; originalFileName: string; size: { sizeByte: number; unit: string; convertSize: number; }; } export declare enum ActionEnum { editMessage = "editMessage", deleteMessage = "deleteMessage", replyMessage = "replyMessage", sendMessage = "sendMessage", goToQuote = "goToQuote", default = "" } export declare enum StatusEnum { unsent = "unsent", loaded = "loaded", notLoaded = "notLoaded", default = "" } //# sourceMappingURL=app-state.d.ts.map