import type { SandboxConfig } from './ProxySandbox'; import { ProxySandbox } from './ProxySandbox'; import type { SecurityContextConfig } from './SecurityContextManager'; import { SecurityContextManager } from './SecurityContextManager'; export { ProxySandbox, createSandbox, runInSandbox } from './ProxySandbox'; export type { SandboxConfig, SandboxResult } from './ProxySandbox'; export { SecurityContextManager, createSecurityContextManager, runInSecureContext, } from './SecurityContextManager'; export type { ExecutionContext, MonitoringConfig, PermissionConfig, ResourceLimits, SecurityContextConfig, } from './SecurityContextManager'; export type SandboxInstance = ProxySandbox; export type SecurityManager = SecurityContextManager; /** * 默认的沙箱配置 */ export declare const DEFAULT_SANDBOX_CONFIG: SandboxConfig; /** * 默认的安全上下文配置 */ export declare const DEFAULT_SECURITY_CONFIG: SecurityContextConfig; /** * 沙箱工厂函数 - 创建配置好的沙箱实例 */ export declare function createConfiguredSandbox(type?: 'basic' | 'secure' | 'restricted'): ProxySandbox; /** * 快速执行简单代码的便捷函数 */ export declare function quickExecute(code: string, customGlobals?: Record, injectedParams?: Record): Promise; /** * 执行数学表达式的安全计算器 */ export declare function safeMathEval(expression: string): Promise; /** * 沙箱状态检查工具 */ export declare class SandboxHealthChecker { private static instance; static getInstance(): SandboxHealthChecker; /** * 检查浏览器环境是否支持沙箱功能 */ checkEnvironmentSupport(): { supported: boolean; issues: string[]; recommendations: string[]; }; /** * 测试沙箱基本功能 */ testBasicFunctionality(): Promise<{ passed: boolean; results: Record; errors: string[]; }>; } /** * 导出健康检查器实例 */ export declare const sandboxHealthChecker: SandboxHealthChecker;