import { z } from "zod/v4"; import type { AgentExitHandler, AgentOsOptions, AgentStderrHandler, LimitWarningHandler, NativeMountConfig } from "./agent-os.js"; import type { Binding, Bindings } from "./bindings.js"; export declare const permissionsSchema: z.ZodObject<{ fs: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; paths: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; network: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; patterns: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; childProcess: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; patterns: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; process: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; patterns: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; env: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; patterns: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; binding: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; patterns: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; }, z.core.$strict>; export declare const agentOsLimitsSchema: z.ZodObject<{ resources: z.ZodOptional; maxProcesses: z.ZodOptional; maxOpenFds: z.ZodOptional; maxPipes: z.ZodOptional; maxPtys: z.ZodOptional; maxSockets: z.ZodOptional; maxConnections: z.ZodOptional; maxSocketBufferedBytes: z.ZodOptional; maxSocketDatagramQueueLen: z.ZodOptional; maxFilesystemBytes: z.ZodOptional; maxInodeCount: z.ZodOptional; maxBlockingReadMs: z.ZodOptional; maxPreadBytes: z.ZodOptional; maxFdWriteBytes: z.ZodOptional; maxProcessArgvBytes: z.ZodOptional; maxProcessEnvBytes: z.ZodOptional; maxReaddirEntries: z.ZodOptional; maxWasmFuel: z.ZodOptional; maxWasmMemoryBytes: z.ZodOptional; maxWasmStackBytes: z.ZodOptional; }, z.core.$strict>>; http: z.ZodOptional; }, z.core.$strict>>; tls: z.ZodOptional; }, z.core.$strict>>; bindings: z.ZodOptional; maxBindingTimeoutMs: z.ZodOptional; maxRegisteredCollections: z.ZodOptional; maxRegisteredBindingsPerVm: z.ZodOptional; maxBindingsPerCollection: z.ZodOptional; maxBindingSchemaBytes: z.ZodOptional; maxExamplesPerBinding: z.ZodOptional; maxBindingExampleInputBytes: z.ZodOptional; }, z.core.$strict>>; plugins: z.ZodOptional; maxPersistedManifestFileBytes: z.ZodOptional; }, z.core.$strict>>; acp: z.ZodOptional; stdoutBufferByteLimit: z.ZodOptional; maxCompletedMessageBytes: z.ZodOptional; maxTurnOutputBytes: z.ZodOptional; maxPromptBytes: z.ZodOptional; maxPromptBlocks: z.ZodOptional; maxFallbackContinuationBytes: z.ZodOptional; maxSessionHistoryBytes: z.ZodOptional; maxSessionHistoryEvents: z.ZodOptional; maxHistoryPageEntries: z.ZodOptional; maxSessionListEntries: z.ZodOptional; maxSessionsPerVm: z.ZodOptional; maxPromptsPerSession: z.ZodOptional; maxPromptsPerVm: z.ZodOptional; maxPendingPermissionsPerSession: z.ZodOptional; maxPendingPermissionsPerVm: z.ZodOptional; maxPermissionOutcomesPerSession: z.ZodOptional; maxPermissionOutcomesPerVm: z.ZodOptional; }, z.core.$strict>>; sqlite: z.ZodOptional; }, z.core.$strict>>; jsRuntime: z.ZodOptional; syncRpcWaitTimeoutMs: z.ZodOptional; cpuTimeLimitMs: z.ZodOptional; wallClockLimitMs: z.ZodOptional; importCacheMaterializeTimeoutMs: z.ZodOptional; capturedOutputLimitBytes: z.ZodOptional; stdinBufferLimitBytes: z.ZodOptional; eventPayloadLimitBytes: z.ZodOptional; v8IpcMaxFrameBytes: z.ZodOptional; }, z.core.$strict>>; python: z.ZodOptional; executionTimeoutMs: z.ZodOptional; maxOldSpaceMb: z.ZodOptional; vfsRpcTimeoutMs: z.ZodOptional; }, z.core.$strict>>; wasm: z.ZodOptional; capturedOutputLimitBytes: z.ZodOptional; syncReadLimitBytes: z.ZodOptional; prewarmTimeoutMs: z.ZodOptional; runnerHeapLimitMb: z.ZodOptional; runnerCpuTimeLimitMs: z.ZodOptional; }, z.core.$strict>>; execution: z.ZodOptional; maxCompletedExecutions: z.ZodOptional; liveExecutionWarningThreshold: z.ZodOptional; }, z.core.$strict>>; process: z.ZodOptional; maxSpawnFileActionBytes: z.ZodOptional; pendingStdinBytes: z.ZodOptional; pendingEventCount: z.ZodOptional; pendingEventBytes: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; export declare const rootFilesystemConfigSchema: z.ZodUnion>; mode: z.ZodOptional>; disableDefaultBaseLayer: z.ZodOptional; lowers: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"snapshot-export">; source: z.ZodUnknown; }, z.core.$strict>]>>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"native">; plugin: z.ZodObject<{ id: z.ZodString; config: z.ZodOptional; }, z.core.$strict>; readOnly: z.ZodOptional; }, z.core.$strict>]>; export declare const nativeMountConfigSchema: z.ZodType; export declare const mountConfigSchema: z.ZodUnion; guestFstype: z.ZodOptional; guestSource: z.ZodOptional; readOnly: z.ZodOptional; }, z.core.$strict>, z.ZodType>, z.ZodObject<{ path: z.ZodString; filesystem: z.ZodObject<{ type: z.ZodLiteral<"overlay">; store: z.ZodUnknown; mode: z.ZodOptional>; lowers: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>]>; export declare const sharedSidecarConfigSchema: z.ZodObject<{ kind: z.ZodLiteral<"shared">; pool: z.ZodOptional; }, z.core.$strict>; export declare const sidecarConfigSchema: z.ZodUnion; pool: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"explicit">; handle: z.ZodUnknown; }, z.core.$strict>]>; export declare const bindingSchema: z.ZodType; export declare const bindingsSchema: z.ZodType; /** * Shared AgentOsOptions field schemas. * * Core and the TypeScript Rivet actor both use the full object. Runtime-owned * behavior is serialized by AgentOs.create() into the sidecar VM config. */ export declare const agentOsOptionFieldSchemas: { readonly user: z.ZodOptional; gid: z.ZodOptional; euid: z.ZodOptional; egid: z.ZodOptional; username: z.ZodOptional; homedir: z.ZodOptional; shell: z.ZodOptional; gecos: z.ZodOptional; groupName: z.ZodOptional; supplementaryGids: z.ZodOptional>; accounts: z.ZodOptional; supplementaryGids: z.ZodArray; }, z.core.$strict>>>; groups: z.ZodOptional; }, z.core.$strict>>>; }, z.core.$strict>>; readonly software: z.ZodOptional>; readonly defaultSoftware: z.ZodOptional; readonly loopbackExemptPorts: z.ZodOptional>; readonly allowedNodeBuiltins: z.ZodOptional>; readonly highResolutionTime: z.ZodOptional; readonly database: z.ZodOptional; path: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"sqlite_file">; path: z.ZodString; }, z.core.$strict>], "type">>; readonly rootFilesystem: z.ZodOptional>; mode: z.ZodOptional>; disableDefaultBaseLayer: z.ZodOptional; lowers: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"snapshot-export">; source: z.ZodUnknown; }, z.core.$strict>]>>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"native">; plugin: z.ZodObject<{ id: z.ZodString; config: z.ZodOptional; }, z.core.$strict>; readOnly: z.ZodOptional; }, z.core.$strict>]>>; readonly mounts: z.ZodOptional; guestFstype: z.ZodOptional; guestSource: z.ZodOptional; readOnly: z.ZodOptional; }, z.core.$strict>, z.ZodType>, z.ZodObject<{ path: z.ZodString; filesystem: z.ZodObject<{ type: z.ZodLiteral<"overlay">; store: z.ZodUnknown; mode: z.ZodOptional>; lowers: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>]>>>; readonly sandbox: z.ZodOptional>; readonly scheduleDriver: z.ZodOptional>; readonly bindings: z.ZodOptional>>>; readonly permissions: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; paths: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; network: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; patterns: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; childProcess: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; patterns: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; process: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; patterns: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; env: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; patterns: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; binding: z.ZodOptional, z.ZodObject<{ default: z.ZodOptional>; rules: z.ZodArray; operations: z.ZodOptional>; patterns: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>]>>; }, z.core.$strict>>; readonly sidecar: z.ZodOptional; pool: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"explicit">; handle: z.ZodUnknown; }, z.core.$strict>]>>; readonly limits: z.ZodOptional; maxProcesses: z.ZodOptional; maxOpenFds: z.ZodOptional; maxPipes: z.ZodOptional; maxPtys: z.ZodOptional; maxSockets: z.ZodOptional; maxConnections: z.ZodOptional; maxSocketBufferedBytes: z.ZodOptional; maxSocketDatagramQueueLen: z.ZodOptional; maxFilesystemBytes: z.ZodOptional; maxInodeCount: z.ZodOptional; maxBlockingReadMs: z.ZodOptional; maxPreadBytes: z.ZodOptional; maxFdWriteBytes: z.ZodOptional; maxProcessArgvBytes: z.ZodOptional; maxProcessEnvBytes: z.ZodOptional; maxReaddirEntries: z.ZodOptional; maxWasmFuel: z.ZodOptional; maxWasmMemoryBytes: z.ZodOptional; maxWasmStackBytes: z.ZodOptional; }, z.core.$strict>>; http: z.ZodOptional; }, z.core.$strict>>; tls: z.ZodOptional; }, z.core.$strict>>; bindings: z.ZodOptional; maxBindingTimeoutMs: z.ZodOptional; maxRegisteredCollections: z.ZodOptional; maxRegisteredBindingsPerVm: z.ZodOptional; maxBindingsPerCollection: z.ZodOptional; maxBindingSchemaBytes: z.ZodOptional; maxExamplesPerBinding: z.ZodOptional; maxBindingExampleInputBytes: z.ZodOptional; }, z.core.$strict>>; plugins: z.ZodOptional; maxPersistedManifestFileBytes: z.ZodOptional; }, z.core.$strict>>; acp: z.ZodOptional; stdoutBufferByteLimit: z.ZodOptional; maxCompletedMessageBytes: z.ZodOptional; maxTurnOutputBytes: z.ZodOptional; maxPromptBytes: z.ZodOptional; maxPromptBlocks: z.ZodOptional; maxFallbackContinuationBytes: z.ZodOptional; maxSessionHistoryBytes: z.ZodOptional; maxSessionHistoryEvents: z.ZodOptional; maxHistoryPageEntries: z.ZodOptional; maxSessionListEntries: z.ZodOptional; maxSessionsPerVm: z.ZodOptional; maxPromptsPerSession: z.ZodOptional; maxPromptsPerVm: z.ZodOptional; maxPendingPermissionsPerSession: z.ZodOptional; maxPendingPermissionsPerVm: z.ZodOptional; maxPermissionOutcomesPerSession: z.ZodOptional; maxPermissionOutcomesPerVm: z.ZodOptional; }, z.core.$strict>>; sqlite: z.ZodOptional; }, z.core.$strict>>; jsRuntime: z.ZodOptional; syncRpcWaitTimeoutMs: z.ZodOptional; cpuTimeLimitMs: z.ZodOptional; wallClockLimitMs: z.ZodOptional; importCacheMaterializeTimeoutMs: z.ZodOptional; capturedOutputLimitBytes: z.ZodOptional; stdinBufferLimitBytes: z.ZodOptional; eventPayloadLimitBytes: z.ZodOptional; v8IpcMaxFrameBytes: z.ZodOptional; }, z.core.$strict>>; python: z.ZodOptional; executionTimeoutMs: z.ZodOptional; maxOldSpaceMb: z.ZodOptional; vfsRpcTimeoutMs: z.ZodOptional; }, z.core.$strict>>; wasm: z.ZodOptional; capturedOutputLimitBytes: z.ZodOptional; syncReadLimitBytes: z.ZodOptional; prewarmTimeoutMs: z.ZodOptional; runnerHeapLimitMb: z.ZodOptional; runnerCpuTimeLimitMs: z.ZodOptional; }, z.core.$strict>>; execution: z.ZodOptional; maxCompletedExecutions: z.ZodOptional; liveExecutionWarningThreshold: z.ZodOptional; }, z.core.$strict>>; process: z.ZodOptional; maxSpawnFileActionBytes: z.ZodOptional; pendingStdinBytes: z.ZodOptional; pendingEventCount: z.ZodOptional; pendingEventBytes: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; readonly onAgentStderr: z.ZodOptional>; readonly onAgentExit: z.ZodOptional>; readonly onLimitWarning: z.ZodOptional>; }; export declare const agentOsOptionsSchema: z.ZodType; export declare function parseAgentOsOptions(options?: AgentOsOptions): AgentOsOptions;