/** * Command normalization pipeline, barrel export and primary entry point. * * Exposes the normalizeCommand() function and all supporting types. * Pipeline: tokenize → segment → classify → NormalizedCommand */ export type { CommandToken, CommandSegment, CommandClassification, NormalizedCommand, } from './types.js'; export type { ShellNode, CommandNode, PipeNode, SequenceNode, SubshellNode, } from './ast.js'; export type { SegmentVerdict, CompoundVerdict, } from './verdict.js'; export { tokenize } from './tokenizer.js'; export { segment } from './segmenter.js'; export { canonicalize } from './canonicalizer.js'; export { classifySegment, classifyCommand, higherPriority, catastrophicReason } from './classifier.js'; export { collectCommandNodes, describeNode } from './ast.js'; export { parseAST, parseCommandAST } from './parser.js'; export { evaluateSegmentNode, evaluateCommandAST, buildDenialExplanation, asSingleLine, DEFAULT_ALLOWED_CLASSES, ALL_COMMAND_CLASSES } from './verdict.js'; import type { NormalizedCommand, CommandClassification } from './types.js'; import type { CompoundVerdict } from './verdict.js'; /** * Normalizes a raw shell command string and evaluates per-segment verdicts. * * Uses the Shell AST parser to produce a CompoundVerdict with * per-segment classification and denial reasons. Requires the * `shell-ast-normalization` gate to be on (permissions.commandParser 'ast'); falls back to * `normalizeCommand` when the flag is disabled. * * @param command - The raw shell command string to evaluate. * @param allowedClasses - Classification tiers to allow (default: read+write+network). * @returns A CompoundVerdict with per-segment breakdown. */ export declare function normalizeCommandWithVerdicts(command: string, allowedClasses?: ReadonlySet): CompoundVerdict; export declare function normalizeCommand(command: string): NormalizedCommand; //# sourceMappingURL=index.d.ts.map