/** * Shared plumbing for the pure `tool_call` guards (`merge-guard`, * `history-guard`, `ci-guard`, `cost-guard`): the input shape, the * explicit-authorization token, and command segmentation. * * Pure on purpose: no session, no fs, no Pi — unit-tested with no session, * exactly like the guards themselves. */ /** The narrow slice of a Pi `tool_call` the guards read. */ export interface ToolCallLike { toolName: string; command?: string | undefined; path?: string | undefined; } /** The Pi `tool_call` result shape: `block` plus an actionable `reason`. */ export interface GuardDecision { block: boolean; reason?: string; } export declare function explicitAllow(text: string): Set; /** * Split a command into shell segments so a flag is never attributed across * commands: `docker build -f Dockerfile . && git push origin feat/x` must read * as a docker flag plus a clean push, not as a force push. */ export declare function splitSegments(text: string): string[];