import React from 'react'; export interface ResizableSplitProps { /** 左侧内容 */ left: React.ReactNode; /** 右侧内容 */ right: React.ReactNode; /** 左侧初始宽度(px);传入 storageKey 时会从 localStorage 读取 */ initialLeftWidth?: number; /** 左侧最小宽度(px) */ minLeftWidth?: number; /** 左侧最大宽度(px),同时不超过 `容器宽 - minRightWidth - 分隔线宽` */ maxLeftWidth?: number; /** 右侧至少保留的宽度(px) */ minRightWidth?: number; /** localStorage 持久化 key;不传则不持久化 */ storageKey?: string; /** 启用横向拖动的媒体查询,默认 `(min-width: 768px)` */ desktopMedia?: string; /** 容器额外类名 */ className?: string; /** 移动端使用 Tab 切换而非上下堆叠 */ mobileTabMode?: boolean; /** Tab 模式下左侧标题 */ leftTabLabel?: string; /** Tab 模式下右侧标题 */ rightTabLabel?: string; } export interface ResizableSplitHandle { switchTab: (tab: 'left' | 'right') => void; } /** * 通用可拖动分隔布局: * - 桌面端(由 `desktopMedia` 判定)横向分两栏,中间分隔线可左右拖动调整左栏宽度 * - 移动端默认退化为上下堆叠(不显示分隔线) * - 设置 `mobileTabMode` 时移动端使用 Tab 切换显示 * - 可选 `storageKey` 将宽度持久化到 localStorage */ export declare const ResizableSplit: React.ForwardRefExoticComponent>; //# sourceMappingURL=ResizableSplit.d.ts.map