import { ReactNode } from 'react'; export type SplitLayoutProps = { vertical?: boolean; primaryIndex?: 0 | 1; percentage?: boolean; primaryMinSize?: number; secondaryInitialSize?: number; secondaryMinSize?: number; secondaryMaxSize?: number; customClassName?: string; children?: ReactNode[]; splitterChildren?: ReactNode; onDragStart?: () => void; onDragEnd?: () => void; onSecondaryPaneSizeChange?: (newSize: number) => void; /** 禁用拖动 */ disabled?: boolean; }; export type SplitLayoutState = { secondaryPaneSize: number; resizing: boolean; }; export type SplitLayoutThis = { container?: HTMLDivElement; };