import type { MachineView, MetricSample } from "../../types/machines.js"; import { type MetricWindow } from "./series.js"; import type { UpdateMachineOperationPolicyRequest } from "@opengeni/sdk"; import type { ReactNode } from "react"; export type MachineDetailProps = { machine: MachineView; /** Downsampled history for the active window (from `fetchSeries`). */ series: MetricSample[]; window: MetricWindow; onWindowChange: (w: MetricWindow) => void; loadingSeries?: boolean | undefined; onBack?: (() => void) | undefined; /** Open the workspace-admin removal confirmation for a self-hosted machine. */ onRemove?: ((machine: MachineView) => void) | undefined; onUpdateOperationPolicy?: ((machine: MachineView, request: UpdateMachineOperationPolicyRequest) => Promise) | undefined; updatingOperationPolicy?: boolean | undefined; /** Open "Who can use it?" for a connected machine. Omit when the viewer * can't change it; the row then shows the current audience read-only. */ onChangeAudience?: ((machine: MachineView) => void) | undefined; /** Where an organization machine works ("All workspaces + Personal"), shown * as its "Available in" row. Organization machines only. */ reachSummary?: string | undefined; /** Open "Available in" for an organization machine. Omit when the viewer * isn't the organization's owner or an admin; the row is then read-only. */ onChangeReach?: ((machine: MachineView) => void) | undefined; /** For your own machine: the workspaces where it runs your own messages. * Shown under "Who can use it?". */ whereItWorks?: ReactNode | undefined; /** Start, retry or resend the signed agent update. Omit when the viewer can't. */ onUpdateAgent?: ((machine: MachineView) => void) | undefined; updatingAgent?: boolean | undefined; now?: number | undefined; className?: string | undefined; }; export declare function MachineDetail({ machine, series, window, onWindowChange, loadingSeries, onBack, onRemove, onUpdateOperationPolicy, updatingOperationPolicy, onChangeAudience, reachSummary, onChangeReach, whereItWorks, onUpdateAgent, updatingAgent, now, className, }: MachineDetailProps): import("react").JSX.Element;