import * as computesdk from 'computesdk'; import { VM } from '@arker-ai/sdk'; export { VM as ArkerSandbox } from '@arker-ai/sdk'; import { Volume } from '@computesdk/provider'; interface ArkerConfig { /** Arker API key (starts with `ark_`). Falls back to the ARKER_API_KEY environment variable. */ apiKey?: string; /** Region, e.g. `us-east-1`. Falls back to ARKER_REGION, then the us-east-1 default. * A combined `"-"` value (e.g. `aws-us-east-1`) is still accepted. */ region?: string; /** Compute provider, e.g. `aws`. Falls back to ARKER_PROVIDER, then `aws`. * The SDK requires provider and region together. */ provider?: string; /** Golden source VM to fork on create(). Falls back to ARKER_SOURCE, then `ubuntu-small`. */ source?: string; /** Compute platforms to fork onto, e.g. `['graviton4']`. Falls back to ARKER_PLATFORMS (comma-separated). */ platforms?: string[]; /** * Keep each sandbox running between commands for its `timeout` * (5 minutes when unset, `0` for no limit) or until it is * destroyed; a pause suspends it and resume carries on (default `true`). * With `false`, Arker pauses the VM whenever no command is running, which * also freezes anything a command left running in the background, and bills * only while commands run. The hold starts in the background once the * sandbox's first command returns, so it adds nothing to the time to that * command, and only in the process that created the sandbox: one commanded * only from another process (through `getById`) is not held. Until it * starts, or if the calling process exits first, the sandbox behaves as with * `false`. */ keepAwake?: boolean; } interface ArkerSnapshot { /** ID of the forked VM; pass it as `snapshotId` to restore. */ id: string; provider: 'arker'; createdAt: Date; metadata?: Record; } declare const arker: (config: ArkerConfig & computesdk.ProcessRuntimeOptions) => computesdk.Provider & { readonly sizes: computesdk.InstanceSizeManager; }; export { type ArkerConfig, type ArkerSnapshot, arker };