export type SandboxType = 'docker' | 'process'; export interface SandboxOptions { type?: SandboxType; timeout?: number; memoryLimit?: string; cpuLimit?: number; networkEnabled?: boolean; filesystemReadOnly?: boolean; env?: Record; workDir?: string; } export interface SandboxResult { stdout: string; stderr: string; exitCode: number | null; signal: string | null; duration: number; timedOut: boolean; } export declare class ProcessSandbox { private logger; private timeout; private memoryLimit; private env; private workDir; constructor(options?: SandboxOptions); execute(code: string): Promise; private executeWithNode; private createTimeoutPromise; } export declare class DockerSandbox { private logger; private timeout; private memoryLimit; private cpuLimit; private networkEnabled; constructor(options?: SandboxOptions); execute(code: string): Promise; } export declare class SandboxManager { private processSandbox; private dockerSandbox; private logger; constructor(); createSandbox(type?: SandboxType, options?: SandboxOptions): Promise; executeInSandbox(code: string, options?: SandboxOptions): Promise; validateCode(code: string): { valid: boolean; errors: string[]; }; } //# sourceMappingURL=index.d.ts.map