import type { ReactNode } from 'react'; import React from 'react'; /** * 以层序遍历打平树结构 * @param tree * @returns 所有结点的数组 */ export type typeBaseTreeNode = T & { children?: typeBaseTreeNode[]; }; export interface ITab { code: string | number; label: string; } export interface LayoutExtProps { menu: IMenuInfo[]; openKeys: string[]; selectedKeys: string[]; children?: React.ReactNode; className?: string; setOpenKeys: (openKeys: string[]) => void; setSelectedKeys: (selectedKeys: string[]) => void; setTitle?: (props: { collapsed: boolean; }) => React.ReactNode; headerExtra?: React.ReactNode; history: any; needMenuGroup?: boolean; headerContent?: ReactNode | false; siderWidth?: number; tabs?: ITab[]; tabActive?: string | number; onTabClick: (key: string | number) => void; onTabRemove: (key: string | number) => void; } export interface IBaseMenuInfo { icon?: ReactNode; children?: IBaseMenuInfo[]; url?: string; name?: React.ReactNode; [key: string]: any; } export declare function TriggerElement(props: { collapsed: boolean; onClick: () => void; style: React.CSSProperties; }): React.JSX.Element; export default function AppLayoutExt(props: LayoutExtProps): JSX.Element;