import { type ReactNode } from 'react'; export interface SplitViewPane { value: Value; /** Names the pane in the switch. */ label: string; icon?: ReactNode; /** Kept mounted while another pane shows, and as the width crosses the split, so an editor * keeps its cursor and undo. It fills the pane's height. */ content: ReactNode; } export interface SplitViewProps { /** Names the switch between the panes for assistive technology. */ label: string; /** The first pane is the start pane, such as an editor. The rest take turns beside it, such as * a preview and a form, with a switch between them when there are two or more. */ panes: [SplitViewPane, SplitViewPane, ...SplitViewPane[]]; /** The pane shown first: beside the start pane where two fit, alone where they don't. */ defaultValue?: Value | undefined; /** Hears the pane the reader picks. */ onValueChange?: ((value: Value) => void) | undefined; /** The narrowest a pane goes. Two panes show side by side only where both fit at this width; * narrower, as on a phone, one pane shows at a time at full width. */ minPaneWidth?: number | undefined; /** At the switch row's far end, such as an action on what the panes show. */ end?: ReactNode; className?: string | undefined; } /** Two panes of one task side by side, such as text and a preview of it, with a handle between * them that resizes them. Where two don't fit, as on a phone, one pane shows at a time at full * width, with a switch between them. It fills its parent's height, so give it one: a fixed * height, or `flex-1` in a flex column that has one. */ export declare function SplitView({ label, panes, defaultValue, onValueChange, minPaneWidth, end, className, }: SplitViewProps): import("react").JSX.Element;