import type { HorizonCore } from './core.js'; export type Verdict = 'allow' | 'gate' | 'deny'; export interface CommandPolicy { /** Substrings that hard-deny a command segment (scanned on the unquoted skeleton). */ deny?: string[]; /** Executable names / substrings that require confirmation. */ gate?: string[]; /** Executable names known to be safe to run without confirmation. */ allow?: string[]; /** Hosts a network tool may reach without denial. */ allowedHosts?: string[]; /** Secret-shaped path fragments; reading any of them denies (exfiltration). */ secretPaths?: string[]; /** Executables that egress the network (curl/wget/nc/…). */ netTools?: string[]; /** Verdict for an unrecognized executable. Default: 'gate' (safe). */ defaultUnknown?: Verdict; } export interface SegmentVerdict { text: string; exe: string; verdict: Verdict; reason: string; } export interface Classification { verdict: Verdict; segments: SegmentVerdict[]; reasons: string[]; error?: string; } export declare class CommandGuard { private readonly core; private readonly policy; constructor(core: HorizonCore, policy?: CommandPolicy); /** Classify a shell command without executing it. */ classify(command: string): Classification; /** True if the command is safe to run without confirmation. */ isAllowed(command: string): boolean; } //# sourceMappingURL=guard.d.ts.map