import * as computesdk from 'computesdk'; import { TemplateCreateOptions, Sandbox } from '@superserve/sdk'; export { Sandbox as SuperserveSandbox } from '@superserve/sdk'; import { InstanceSizeClass, CreateTemplateOptions } from '@computesdk/provider'; interface SuperserveConfig { /** Superserve API key. Falls back to `SUPERSERVE_API_KEY` env var. */ apiKey?: string; /** API base URL. Falls back to `SUPERSERVE_BASE_URL` env var, then the `@superserve/sdk` default. */ baseUrl?: string; /** Default auto-pause timeout in milliseconds. */ timeout?: number; /** Template to boot per standard `sizeClass`; defaults to {@link SUPERSERVE_SIZE_TEMPLATES}. */ sizeTemplates?: Partial>; } /** * Superserve fixes vCPU, memory and disk when a template is built, so each * standard size boots its own template. `superserve/base` (2 vCPU / 4 GiB / * 8 GiB disk) is built in to every team; the others are team templates * built by `scripts/provider-setup.mjs superserve`. The largest listed plan * (Pro) caps a sandbox at 16 vCPU / 64 GiB, so `3xl` has no default. */ declare const SUPERSERVE_SIZE_TEMPLATES: Readonly>>; /** Superserve sizes sandboxes at the template: vCPU, memory and disk are set * here and every sandbox created from it inherits them. */ type SuperserveTemplateCreateOptions = CreateTemplateOptions & Partial>; declare const superserve: (config: SuperserveConfig & computesdk.ProcessRuntimeOptions) => computesdk.Provider & { readonly sizes: computesdk.InstanceSizeManager; }; export { SUPERSERVE_SIZE_TEMPLATES, type SuperserveConfig, type SuperserveTemplateCreateOptions, superserve };