import * as H from 'history'; import { RouterProps as BasicRouteProps } from 'react-router-dom'; import * as React from 'react'; import { GlobalHeaderProps, MenuDataItem, ProSettings, SeparateMenusTypes } from '@admin-layout/client'; import { PermissionType } from 'common'; export interface LinkProps extends React.AnchorHTMLAttributes { to: H.Location; replace?: boolean; innerRef?: React.Ref; } export type MergerSettingsType = Partial & { primaryColor?: string; colorWeak?: boolean; }; export interface IRoute extends MenuDataItem { routes?: IRoute[]; } export type WithFalse = T | false; export interface RouterTypes

extends Omit { computedMatch?: any; route?: IRoute; location: BasicRouteProps['location'] | { pathname?: string; }; } export interface MessageDescriptor { id: any; description?: string; defaultMessage?: string; } export interface SidebarMenuProps { menuData: MenuDataItem[]; routeParams: Record; settings: { primaryColor: string; }; collapsed?: boolean; siderPinned?: boolean; setSiderPinned?: (siderPinned: boolean) => void; actor?: any; deviceSettings?: any; } export interface SidebarProps { isSideMenuOpen: boolean; closeSideMenu: () => void; menuData: any; collapsed: boolean; setCollapsed: (collapsed: boolean) => void; routeParams: { orgName?: string; [key: string]: string; }; settings?: any; sideBarMarginTop?: string; showHeader?: boolean; upperMenuDividerName?: string; middleMenuDividerName?: string; lowerMenuDividerName?: string; location?: any; siderPinned?: boolean; setSiderPinned?: (siderPinned: boolean) => void; layoutSettings?: any; deviceSettings?: any; menuHeaderRender?: any; isSideMenuLayout?: boolean; /** When set, the sidebar (when fixed) is offset from top by this many px. Used when NavbarSlotStrip is rendered above. */ navbarSlotStripHeight?: number; actor?: any; authorities?: Record; picture?: string; } export interface BottomMenuDropDownProps { menus: any; collapsed: boolean; routeParams: { orgName?: string; [key: string]: string; }; layoutSettings?: any; } export interface GlobalHeaderRightProps { theme?: string; layout?: any; upperMenus: any; routeParams: { orgName?: string; [key: string]: string; }; formatMessage?: any; collapsed?: boolean; settings?: ProSettings; toggleSideMenu?: any; location?: any; } export interface ILogoProps { logo: any; settings: any; scrolled: any; location: any; } export type PrivateHeaderProps = { scrolled?: boolean; drawerRef?: any; setSettingToggle?: any; settingToggle?: any; navTheme?: any; location?: any; layout?: any; title?: any; menuData?: IRoute[]; routeParams?: any; settings?: any; transition?: any; onSettingChange?: (settings: MergerSettingsType) => void; pageTitleInfo?: any; searchOptionsShown?: boolean; setSearchOptionsShown?: (optionsShown: boolean) => void; authorities: Record; picture?: string; componentVisibility?: Record; containerRef?: React.RefObject; }; export interface MainHeaderProps extends Partial { rightContentRender?: WithFalse<(props: any) => React.ReactNode>; showSettings?: boolean; showMenu?: boolean; toggleSideMenu?: () => void; } export type IRightMenuProps = { match?: any; menuData?: IRoute[]; scrolled?: boolean; navTheme?: string; getMenuSeparation?: (menuData: [] | any) => SeparateMenusTypes; routeParams: { orgName?: string; }; settings?: Partial; authorities: Record; picture?: string; isMobile?: boolean; }; export interface DividerProps extends React.HTMLAttributes { /** * Text to display in the middle of the divider */ children?: React.ReactNode; /** * Direction of the divider * @default "horizontal" */ orientation?: 'horizontal' | 'vertical'; /** * Whether the divider text is less emphasized * @default false */ plain?: boolean; /** * Custom className for the divider */ className?: string; /** * Custom style for the divider */ style?: React.CSSProperties; /** * Text alignment * @default "center" */ align?: 'left' | 'right' | 'center'; } export interface DynamicTypeIconsProps { icon: any; iconColor?: string; w?: any; h?: any; iconStyle?: any; } //# sourceMappingURL=typings.d.ts.map