import React from 'react'; import './SideBarWindow.css'; type subTabsArray = { id: string; tabLabel?: string; tabIcon?: React.ReactNode; hasNotification?: Boolean; notifTabIcon?: React.ReactNode; data?: React.ReactNode; windowTitle?: string | React.ReactNode; width?: string; discussionPanelClassName?: string; disableSidebar?: boolean; enableTab?: boolean; enableInEntryCreatePage?: boolean; isIndependentlyActive?: boolean; onClick: () => void; tabTestId?: string; className?: string; }; type IArray = { id: string; tabLabel?: string; tabIcon?: React.ReactNode; hasNotification?: Boolean; notifTabIcon?: React.ReactNode; data?: React.ReactNode; windowTitle?: string | React.ReactNode; width?: string; discussionPanelClassName?: string; disableSidebar?: boolean; enableTab?: boolean; enableInEntryCreatePage?: boolean; isIndependentlyActive?: boolean; onClick: () => void; tabTestId?: string; className?: string; multipleTabs?: boolean; subTabsInfo?: subTabsArray[]; waitOnClick?: () => Promise; }; interface SideBarWindowProps { /** * An array of tab info objects(id, tabLabel, tabIcon, data) */ tabsInfo?: Array; windowData?: { tabLabel?: string; tabIcon?: React.ReactNode; data?: React.ReactNode; windowTitle?: string | React.ReactNode; tabTestId?: string; }; isInsideEntryCreatePage?: boolean; onSelect?: (data?: any) => void; onClose?: (data?: any) => void; borderOpen?: boolean; borderClose?: boolean; isResizable?: boolean; defaultSelectedIndex?: number; defaultSelectedId?: string; onKeyDownCallback?: Function; onResize?: Function; defaultSelectedSubTabId?: string; defaultSelectedSubTabIndex?: number; /** * A boolean indicating whether the sidebar content is visible. * - `true`: The sidebar content is displayed. * - `false`: The sidebar content is hidden. * This prop is controlled by the parent component, allowing the parent to manage the visibility of the sidebar. */ isSidebarContentVisible?: boolean; } interface WindowContentProps { data?: React.ReactNode; windowTitle?: string | React.ReactNode; width?: string; discussionPanelClassName?: string; isResizable?: boolean; onResize?: Function; activeTabId: number; isSubTab?: boolean; } export declare const getSelectedTabIndex: (tabsInfo: Array, tabId?: string, tabIndex?: number) => number; export declare const GetWindowContent: (props: WindowContentProps) => React.JSX.Element; declare const SideBarWindow: (props: SideBarWindowProps) => React.JSX.Element; export default SideBarWindow;