import type { EditorRuntime } from '../core/runtime.js'; import type { PageModel } from '../editor/store.js'; import type { WorkspaceTarget } from './contracts.js'; export interface ScreenStateSwitchProps { runtime: EditorRuntime; target: WorkspaceTarget; /** Whether a sibling can be opened where this switch lives; a closed sibling stays listed but disabled. */ canOpen?: (page: PageModel) => boolean; closedReason?: string; onSwitch: (page: PageModel) => void; /** Hide the visible label where the select's value already names the choice (the run bar). */ labelHidden?: boolean; } /** * One select over the declared states of the current screen. It renders * nothing while the screen has no sibling state to flip to, so a switch never * announces a choice that does not exist. */ export declare const ScreenStateSwitch: import("react").FunctionComponent;