import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export declare const HardwareClass: { readonly Gpu: "gpu"; readonly Cpu: "cpu"; }; export type HardwareClass = ClosedEnum; /** * Present on every cpu-class entry, absent on gpu-class entries. */ export type Vcpu = { max: number; min: number; }; /** * Present on every gpu-class entry, absent on cpu-class entries. */ export declare const Vendor: { readonly Nvidia: "nvidia"; readonly Amd: "amd"; }; /** * Present on every gpu-class entry, absent on cpu-class entries. */ export type Vendor = ClosedEnum; /** * A catalogue entry. Each hardware class exposes what it has and omits what it lacks: gpu entries always carry vendor, memory_gb, gpu_counts and interconnects; cpu entries always carry vcpu and memory_gb_per_vcpu. Fields of the other class are absent, never reinterpreted. */ export type ComputeAccelerator = { displayName: string; /** * Present on every gpu-class entry, absent on cpu-class entries. */ gpuCounts?: Array | undefined; hardwareClass: HardwareClass; /** * Present on every gpu-class entry, absent on cpu-class entries. */ interconnects?: Array | undefined; /** * Present on every gpu-class entry, absent on cpu-class entries. */ memoryGb?: number | undefined; /** * Present on every cpu-class entry, absent on gpu-class entries. */ memoryGbPerVcpu?: number | undefined; name: string; /** * Present on every cpu-class entry, absent on gpu-class entries. */ vcpu?: Vcpu | undefined; /** * Present on every gpu-class entry, absent on cpu-class entries. */ vendor?: Vendor | undefined; }; /** @internal */ export declare const HardwareClass$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const HardwareClass$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Vcpu$inboundSchema: z.ZodType; /** @internal */ export type Vcpu$Outbound = { max: number; min: number; }; /** @internal */ export declare const Vcpu$outboundSchema: z.ZodType; export declare function vcpuToJSON(vcpu: Vcpu): string; export declare function vcpuFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Vendor$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Vendor$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ComputeAccelerator$inboundSchema: z.ZodType; /** @internal */ export type ComputeAccelerator$Outbound = { display_name: string; gpu_counts?: Array | undefined; hardware_class: string; interconnects?: Array | undefined; memory_gb?: number | undefined; memory_gb_per_vcpu?: number | undefined; name: string; vcpu?: Vcpu$Outbound | undefined; vendor?: string | undefined; }; /** @internal */ export declare const ComputeAccelerator$outboundSchema: z.ZodType; export declare function computeAcceleratorToJSON(computeAccelerator: ComputeAccelerator): string; export declare function computeAcceleratorFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=computeaccelerator.d.ts.map