import { type CodegraphInvocationOptions } from '../../services/codegraph/codegraph-service.js'; export { rewriteSqliteBackendAdvice } from '../../services/codegraph/codegraph-backend-advice.js'; import { type ProgramIO } from '../cli-helpers.js'; export interface CommonCodegraphOptions { project: string; peaksJson?: boolean; } export declare function printCodegraphFailure(io: ProgramIO, command: string, error: unknown, asJson?: boolean, exitCode?: number): void; /** * Rewrites bare upstream `codegraph ` hints to the peaks-loop * equivalent (`peaks codegraph `). The upstream binary is a * nested transitive dependency and is NOT on PATH, so an LLM that follows * a bare hint like `Run "codegraph init" to initialize` would hit * "command not found". Already-prefixed `peaks codegraph ...` hints and * other `codegraph` references (e.g. `@colbymchenry/codegraph`) are left * untouched. */ export declare function rewriteBareCodegraphHints(text: string): string; /** * Both localizations upstream output needs before it reaches the reader, in * the order the shipped pipeline applies them. */ export declare function localizeUpstreamCodegraphText(text: string): string; /** * Proxy one upstream invocation. Returns whether UPSTREAM FAILED — the * caller needs that to rank the exit-code precedence (an upstream failure * outranks every localized integrity verdict: see the tail of * `runCodegraphStatusCommand`), and it cannot re-derive it from * `process.exitCode` once a later branch has overwritten it. * * Callers that do not rank precedence (every command but `status`) simply * ignore the return value. */ export declare function runCodegraphCommand(io: ProgramIO, command: string, options: CodegraphInvocationOptions, asJson?: boolean, attributeStdout?: (text: string) => string): Promise;