import type { VMArtifactCreateOptions, VMArtifactInfo, VMArtifactListOptions, VMConfig, VMCreateOptions } from "../../types/vm"; import { VM } from "./vm"; /** An immutable disk snapshot or private template, independent of the source VM's lifetime. */ export declare class VMArtifact { readonly info: VMArtifactInfo; constructor(info: VMArtifactInfo); get id(): string; get name(): string; get vmId(): string; get kind(): "snapshot" | "template"; /** Create an independent VM with its own root and identity; RAM is not copied. */ fork(config?: VMConfig | string, opts?: VMCreateOptions): Promise; delete(): Promise; remove(): Promise; } /** Use VM.snapshots / VM.templates workspace-wide, or vm.snapshots / vm.templates for one machine. */ export declare class VMArtifacts { readonly kind: "snapshot" | "template"; private vm?; constructor(kind: "snapshot" | "template", vm?: VM | undefined); create(options?: VMArtifactCreateOptions | string): Promise; list(options?: VMArtifactListOptions): Promise; get(nameOrId: string): Promise; delete(nameOrId: string): Promise; remove(nameOrId: string): Promise; fork(nameOrId: string, config?: VMConfig | string, opts?: VMCreateOptions): Promise; }