import { type ParsedGhaArtifactsCleanup } from './parse-gha-artifacts-cleanup.mts'; import { type ParsedGhaRuntimeAudit } from './parse-gha-runtime-audit.mts'; export type ParsedCli = { kind: 'help'; } | { kind: 'version'; } | { kind: 'error'; message: string; } | { kind: 'runner-port-policy'; file?: string; reserved?: number; } | { kind: 'with-host-lock'; args: string[]; } | { kind: 'agent-harness-config'; args: string[]; } | { kind: 'script'; command: ScriptCommand; args: string[]; } | { kind: 'pnpm-install'; args: string[]; } | { kind: 'vitest-blob-manifest'; args: string[]; } | { kind: 'vitest-report-attempt'; args: string[]; } | { kind: 'prepare-vitest-reports'; args: string[]; } | { kind: 'nuget-central-version'; args: string[]; } | { kind: 'swift-semantic-equal'; args: string[]; } | { kind: 'post-review'; args: string[]; } | { kind: 'stage-review-payload'; args: string[]; } | { kind: 'http-origin'; field: string; value: string; } | { kind: 'retrospective-transcript'; args: string[]; } | { kind: 'link-skill'; name: string; sourceRoot: string; targetRoot: string; } | { kind: 'retrospective-facts'; args: string[]; } | { kind: 'agent-blackboard'; args: string[]; } | { kind: 'require-up-to-date'; remote: string; branch: string; } | { kind: 'gitleaks-directory-scan'; config: string; directory?: string; } | { kind: 'ast-grep-examples'; rules: string; config: string; } | { kind: 'ast-grep-pack'; } | { kind: 'gha-workspace-policy'; root?: string; workflowDirectories?: string[]; actionDirectories?: string[]; } | ParsedGhaRuntimeAudit | ParsedGhaArtifactsCleanup; export type ScriptCommand = 'gha-output' | 'gha-needs-results' | 'download-with-diagnostics' | 'download-optional-run-artifacts' | 'host-pressure-diagnostics' | 'allocate-browser-safe-ports' | 'diagnose-port-collision' | 'prepare-trivy-db' | 'check-cache-size' | 'make-shard-matrix' | 'load-runner-env' | 'clean-workspace' | 'install-github-release' | 'run-with-timeout' | 'lint-links' | 'materialize-pr-context' | 'wait-for-apt-locks' | 'install-playwright-chromium-arm64' | 'ghcr-package-retention' | 'harness-admission-lane' | 'harness-assert-gates'; export declare function parseCli(argv: readonly string[]): ParsedCli;