import { type ReactNode, type CSSProperties } from 'react'; import React from 'react'; interface Tab { label?: ReactNode; /** * 与antd tabs保持一致 * @deprecated */ title?: ReactNode; key: string; forceRender?: boolean; children?: ReactNode; } interface Props { children?: ReactNode; className?: string; style?: CSSProperties; /** * @description 加载中 * @default false */ loading?: boolean; /** * @deprecated * @description 高度是否为100% * @default false */ full?: boolean; left?: ReactNode; header?: ReactNode; footer?: ReactNode; body?: ReactNode; onCollapse?: (collapsed: boolean) => void; /** * @deprecated 请自行使用TabBar以及Section处理 */ tabs?: Tab[]; activeKey?: string; onTabClick?: (key: string) => void; } declare function Layout(props: Props): JSX.Element; declare namespace Layout { var Tabs: typeof LayoutTabs; var Content: (props: { children?: ReactNode; left?: ReactNode; tab?: string | undefined; forceRender?: boolean | undefined; } & Pick) => JSX.Element; var useFocus: () => boolean; var SLOT_HEADER: string; var SLOT_FOOTER: string; } export default Layout; declare function LayoutTabs(props: { tabs?: Tab[]; activeKey?: string; onTabClick?: (activeKey: string, e: React.KeyboardEvent | React.MouseEvent) => void; hideTabBar?: boolean; } & Omit): JSX.Element;