import type { SandboxRuntimeConfig } from './sandbox-config.js'; import type { SandboxAskCallback, FsReadRestrictionConfig, FsWriteRestrictionConfig, NetworkRestrictionConfig } from './sandbox-schemas.js'; import { type SandboxDependencyCheck } from './linux-sandbox-utils.js'; import { SandboxViolationStore } from './sandbox-violation-store.js'; /** * Interface for the sandbox manager API */ export interface ISandboxManager { initialize(runtimeConfig: SandboxRuntimeConfig, sandboxAskCallback?: SandboxAskCallback, enableLogMonitor?: boolean): Promise; isSupportedPlatform(): boolean; isSandboxingEnabled(): boolean; checkDependencies(ripgrepConfig?: { command: string; args?: string[]; }): SandboxDependencyCheck; getFsReadConfig(): FsReadRestrictionConfig; getFsWriteConfig(): FsWriteRestrictionConfig; getNetworkRestrictionConfig(): NetworkRestrictionConfig; getAllowUnixSockets(): string[] | undefined; getAllowLocalBinding(): boolean | undefined; getIgnoreViolations(): Record | undefined; getEnableWeakerNestedSandbox(): boolean | undefined; getProxyPort(): number | undefined; getSocksProxyPort(): number | undefined; getLinuxHttpSocketPath(): string | undefined; getLinuxSocksSocketPath(): string | undefined; waitForNetworkInitialization(): Promise; wrapWithSandbox(command: string, binShell?: string, customConfig?: Partial, abortSignal?: AbortSignal): Promise; getSandboxViolationStore(): SandboxViolationStore; annotateStderrWithSandboxFailures(command: string, stderr: string): string; getLinuxGlobPatternWarnings(): string[]; getConfig(): SandboxRuntimeConfig | undefined; updateConfig(newConfig: SandboxRuntimeConfig): void; cleanupAfterCommand(): void; reset(): Promise; } /** * Global sandbox manager that handles both network and filesystem restrictions * for this session. This runs outside of the sandbox, on the host machine. */ export declare const SandboxManager: ISandboxManager; //# sourceMappingURL=sandbox-manager.d.ts.map