/** * `peaks retrospective search` — the search command, hoisted out of * `retrospective-commands.ts` so that file clears the 300 raw-line cap. * * Identical control flow: same filter predicates (in the same order), the * same optional-spread into `searchRetrospective`, the same envelope * fields, the same suggestion texts, the same `process.exitCode = 1`, and * the same catch shape (the failure is reported, never swallowed). The * filter checks and the failure envelope were split into single-purpose * helpers so no function here carries a `max-lines-per-function` or * `complexity` finding; nothing else was rewritten. * * `runRetrospectiveSearch` and `RetrospectiveSearchCommandOptions` stay * importable from `retrospective-commands.js` (public surface unchanged). */ import type { Command } from 'commander'; import { type ProgramIO } from '../cli-helpers.js'; export interface RetrospectiveSearchCommandOptions { query: string; type?: string; outcome?: string; limit?: number; project?: string; json?: boolean; } export declare function runRetrospectiveSearch(io: ProgramIO, options: RetrospectiveSearchCommandOptions): void; export declare function registerRetrospectiveSearchCommand(retrospective: Command, io: ProgramIO): void;