/** * Format-aware excerpts. Jev selects which tool produced the output; code keeps the exact lines that matter for that * format: failing tests with their assertion lines, compiler and linter errors with file:line, changed files with * counts, package manager warnings, and the final summary. Nothing is paraphrased. A parser returns undefined when * it does not recognise its markers, and the caller falls back to the generic head/diagnostic/tail excerpt. */ export type OutputFormat = "vitest_jest" | "node_test" | "tsc" | "eslint" | "pytest" | "git_diff" | "git_log" | "npm_install" | "other"; export declare const formatQuestion: { format: import("pi-typesafe").ChoiceQuestion<{ readonly vitest_jest: "A Vitest or Jest run: ✓/✗/× or PASS/FAIL per test, a 'Test Files' or 'Tests:' summary."; readonly node_test: "Node's built-in test runner: TAP lines 'ok'/'not ok' with '# tests', or the spec reporter with ✔/✖ and 'ℹ tests'."; readonly tsc: "TypeScript compiler diagnostics: 'file(line,col): error TSnnnn:' lines, 'Found N errors'."; readonly eslint: "ESLint report: a file path line followed by 'line:col error|warning message rule', then '✖ N problems'."; readonly pytest: "pytest: dots/F per test, '___ test_name ___' failure headers, 'E ' assertion lines, 'FAILED'/'PASSED' lines, '=== N passed/failed ===' summary."; readonly git_diff: "A unified diff: 'diff --git', '---'/'+++', '@@' hunks with +/- lines."; readonly git_log: "git log or git status output: 'commit ' blocks or one-line hashes with subjects; 'modified:'/'new file:' status lines."; readonly npm_install: "npm, pnpm, or yarn install: 'added N packages', 'npm warn', 'deprecated', 'vulnerabilities', 'up to date'."; readonly other: "Anything else: source code, data, documentation, a shell listing, a mixed or unknown log."; }>; }; /** * Exact lines selected by the parser for `format`, joined and capped, with the last non-empty lines as a tail so the * final status is always present. Undefined when the format is `other` or its markers are absent. */ export declare function formatExcerpt(text: string, format: OutputFormat): string | undefined;