export type SandboxBackend = 'seatbelt' | 'bwrap' | 'none'; export type SandboxLevel = 'off' | 'standard' | 'strict'; interface BackendDetect { backend: SandboxBackend; available: boolean; reason?: string; } /** * Detect which sandbox backend (if any) is available on this machine. * Cached after the first call; pass force=true to re-probe. */ export declare function detectBackend(force?: boolean): BackendDetect; /** * Wrap a shell command for the active backend at the requested level. * Returns the wrapped command string and a label for logging. If the * backend isn't available or level is 'off', returns the command * unchanged (callers don't need to special-case). */ export declare function wrapCommand(cmd: string, opts: { level: SandboxLevel; cwd: string; }): { cmd: string; label: string; }; /** * Status snapshot for the /sandbox slash command. Tells the user what's * supported on this machine + what's currently active. */ export interface SandboxStatus { backend: SandboxBackend; available: boolean; reason?: string; platform: NodeJS.Platform; } export declare function status(): SandboxStatus; export {};