/** * Custom error classes for shellguard. All errors carry a stable * `code` field so callers can switch on it programmatically without * relying on message strings. */ export type ShellguardErrorCode = "SHELLGUARD_DENIED" | "SHELLGUARD_TIMEOUT" | "SHELLGUARD_STDOUT_LIMIT" | "SHELLGUARD_STDERR_LIMIT" | "SHELLGUARD_FD_BUDGET" | "SHELLGUARD_SHELL_FORBIDDEN" | "SHELLGUARD_INVALID_REGISTRATION"; export declare class ShellguardError extends Error { readonly code: ShellguardErrorCode; readonly meta: Record; constructor(code: ShellguardErrorCode, message: string, meta?: Record); } export declare class ShellguardDenied extends ShellguardError { constructor(message: string, meta?: Record); } export declare class ShellguardTimeout extends ShellguardError { constructor(message: string, meta?: Record); } export declare class ShellguardLimitExceeded extends ShellguardError { constructor(code: "SHELLGUARD_STDOUT_LIMIT" | "SHELLGUARD_STDERR_LIMIT" | "SHELLGUARD_FD_BUDGET", message: string, meta?: Record); } //# sourceMappingURL=errors.d.ts.map