import { type MachineView, type MetricSample, type UseMachinesOptions } from "../../machines.js"; import { isSignedInPerson } from "./permissions.js"; export { isSignedInPerson }; export declare function useWorkspaceMachines(options?: UseMachinesOptions): { activeEpoch: number; removingEnrollmentId: string | null; updatingEnrollmentId: string | null; updatingOperationPolicyEnrollmentId: string | null; attaching: boolean; attachingSandboxId: string | null; clearMutationError: () => void; canRead: boolean; canManage: boolean; canConnect: boolean; /** * Connect a new machine of one's own (Only me, or any machine in a * Personal workspace). Off when the organization keeps that to its * owners and admins; machines already connected stay changeable. */ canConnectOwnMachine: boolean; canManageMachine: (machine: Pick) => boolean; canControl: boolean; canRemove: boolean; canUpdateAgent: boolean; canUpdateOperationPolicy: boolean; remove: (...args: Parameters<(enrollmentId: string, request?: import("@opengeni/sdk").RemoveEnrollmentRequest) => Promise>) => Promise; updateAgent: (...args: Parameters<(enrollmentId: string) => Promise>) => Promise; updateOperationPolicy: (...args: Parameters<(enrollmentId: string, request: import("@opengeni/sdk").UpdateMachineOperationPolicyRequest) => Promise>) => Promise; attach: (sandboxId: string) => Promise; fetchSeries: (enrollmentId: string, window?: "15m" | "1h" | "6h" | "24h") => Promise; mutationError: Error | null; machines: MachineView[]; activeSandboxId: string | null; sessionMachineAccess: import("@opengeni/sdk").SessionMachineAccess | null | undefined; loading: boolean; error: Error | null; refresh: () => Promise; canAttach: boolean; };