import { CliOutputMode } from "./outfitter-fhahf9f3.js"; import { InternalError, Result } from "@outfitter/contracts"; /** Validated input for the docs.search action handler. */ interface DocsSearchInput { readonly cwd: string; readonly jq?: string | undefined; readonly kind?: string | undefined; readonly outputMode: CliOutputMode; readonly package?: string | undefined; readonly query: string; } /** A single match found in a documentation file. */ interface DocsSearchMatch { readonly id: string; readonly kind: string; readonly matchLines: string[]; readonly outputPath: string; readonly package?: string; readonly sourcePath: string; readonly title: string; } /** Output shape for the docs.search action. */ interface DocsSearchOutput { readonly matches: DocsSearchMatch[]; readonly query: string; readonly total: number; } /** * Search documentation content for a query string. * * Generates the docs map for the workspace, reads each file's content, * and performs case-insensitive substring matching to find relevant lines. * * @param input - Validated action input * @returns Result containing the search matches or an error */ declare function runDocsSearch(input: DocsSearchInput): Promise>; /** * Print docs search results in the appropriate output format. * * @param result - The docs search output * @param options - Output formatting options */ declare function printDocsSearchResults(result: DocsSearchOutput, options?: { mode?: CliOutputMode; jq?: string | undefined; }): Promise; export { DocsSearchInput, DocsSearchMatch, DocsSearchOutput, runDocsSearch, printDocsSearchResults };