import { FC, ReactNode } from 'react'; import { SessionCollaboratorFieldsFragment } from '../../generated/wspace-operations'; import { SessionSharePermission } from '../../generated/wspace-types'; interface SharedTerminalPanelProps { /** * The terminal content (typically an iframe or TerminalPanel) */ children: ReactNode; /** * Whether this is a shared session */ isShared: boolean; /** * Active collaborators in the session */ collaborators: SessionCollaboratorFieldsFragment[]; /** * Current user's ID */ currentUserId?: string; /** * Permission level of the current user (for link-based shares) */ permission?: SessionSharePermission; /** * Callback when user requests control */ onRequestControl?: () => void; /** * Callback when user releases control */ onReleaseControl?: () => void; /** * Whether a control request is in progress */ isRequestingControl?: boolean; /** * Whether releasing control is in progress */ isReleasingControl?: boolean; /** * Show minimal floating indicator instead of status bar */ minimal?: boolean; /** * Additional className for the wrapper */ className?: string; } /** * SharedTerminalPanel - Wrapper that adds collaboration UI to a terminal * * This component wraps any terminal content and adds: * - Control status bar (who has control, viewer count) * - Request/release control buttons * - Read-only overlay when user doesn't have control * - Visual indicators for shared state */ export declare const SharedTerminalPanel: FC; /** * ReadOnlyTerminalOverlay - Standalone overlay for blocking terminal interaction * Use this when you need more control over placement */ export declare const ReadOnlyTerminalOverlay: FC<{ isViewer: boolean; controllerName?: string; onRequestControl?: () => void; isRequestingControl?: boolean; }>; export {};