import React from 'react'; export type SessionActionType = 'newSession' | 'rename' | 'kill' | 'deleteWorktree'; interface SessionActionsProps { /** * Name of the session this menu was opened from. Absent for a worktree row * that has no session yet. */ sessionLabel?: string; worktreePath: string; /** * Whether the row this menu was opened from has a running session. Session * specific actions (rename, close) are hidden when it does not. */ hasSession?: boolean; /** * Whether the worktree of this row may be deleted; see isDeletableWorktree. * The delete entry is hidden rather than shown-and-rejected so no * unselectable option appears. */ canDeleteWorktree?: boolean; onSelect: (action: SessionActionType) => void; onCancel: () => void; } declare const SessionActions: React.FC; export default SessionActions;