/** * Rule Host Helpers — Minimal whitelisted helper surface for hosted implementations * * PURPOSE: Provide a constrained set of pure functions that hosted implementations * can call. All values are pre-computed from the frozen RuleHostInput snapshot. * * SECURITY: * - Helpers are a frozen object — cannot be modified by implementations * - No filesystem, process, require, dynamic import, eval, Function, or network access * - All functions are pure — no side effects, no external state access */ import type { RuleHostInput } from './rule-host-contracts.js'; export interface RuleHostHelpers { isRiskPath(): boolean; getToolName(): string; getEstimatedLineChanges(): number; getBashRisk(): 'safe' | 'normal' | 'dangerous' | 'unknown'; getEpTier(): number; } /** * Create a frozen helper object from the pre-computed input snapshot. * Implementations receive this via the vm context — they cannot modify it. * * PRI-286 retirement cleanup (2026-08-19): the plan-state helper entries were * removed — the built-in PLAN.md gate is retired and no production rule reads * plan state. Do not reintroduce plan-state helpers without owner approval. */ export declare function createRuleHostHelpers(input: RuleHostInput): RuleHostHelpers; //# sourceMappingURL=rule-host-helpers.d.ts.map