type RailDispatch = (action: { type: 'setUi'; ui: { rightSideBarVisible: boolean; }; }) => void; /** * Lets a panel that reveals the right rail to show its own content put the rail back when it * closes. The rail collapses again only when that reveal is what opened it and its visibility * hasn't changed since; a collapse by any other route ends the lease. */ export declare const rightRailLease: { /** Expand a collapsed rail and hold the lease on it. A no-op when the rail is already visible. */ reveal(dispatch: RailDispatch, visible: boolean): void; /** Collapse the rail if the lease is still held. */ release(): void; /** Report the rail's current visibility; a collapsed rail is no longer the lease's to restore. */ observe(visible: boolean): void; /** Drop the lease without touching the rail, e.g. when the editor that granted it unmounts. */ end(): void; }; export {};