import { CliOutputMode } from "../shared/outfitter-fhahf9f3.js"; import { Result } from "@outfitter/contracts"; /** Options for the action-ceremony guardrail check. */ interface CheckActionCeremonyOptions { /** Workspace root used to locate the actions directory. */ readonly cwd: string; } /** Result for a single ceremony budget after scanning action sources. */ interface CeremonyBudgetResult { /** Number of pattern occurrences found. */ readonly count: number; readonly description: string; readonly id: string; /** Maximum allowed occurrences before the budget is exceeded. */ readonly maxCount: number; /** Whether the count is within the allowed budget. */ readonly ok: boolean; } /** Aggregate result of the action-ceremony check across all budgets. */ interface CheckActionCeremonyResult { /** Resolved path to the scanned actions directory. */ readonly actionsDir: string; readonly budgets: readonly CeremonyBudgetResult[]; /** True when every budget is within its allowed count. */ readonly ok: boolean; } /** Error raised when the action-ceremony check cannot complete. */ declare class CheckActionCeremonyError extends Error { readonly _tag: "CheckActionCeremonyError"; constructor(message: string); } /** * Scan action source files and evaluate each ceremony budget. * * Reads all `.ts` files under the actions directory and counts pattern * matches against pre-defined budgets. Returns per-budget results and * an aggregate pass/fail. */ declare function runCheckActionCeremony(options: CheckActionCeremonyOptions): Promise>; /** * Render ceremony check results to stdout/stderr. * * Emits JSON/JSONL for structured modes or a human-readable summary * listing any budgets that exceeded their limit. */ declare function printCheckActionCeremonyResult(result: CheckActionCeremonyResult, options?: { mode?: CliOutputMode; }): Promise; /** * CLI entry point: parse argv, run the ceremony check, and print results. * * @returns Exit code (0 on success, 1 on failure or error). */ declare function runCheckActionCeremonyFromArgv(argv: readonly string[]): Promise; export { runCheckActionCeremonyFromArgv, runCheckActionCeremony, printCheckActionCeremonyResult, CheckActionCeremonyResult, CheckActionCeremonyOptions, CheckActionCeremonyError, CeremonyBudgetResult };