import type { EventBus } from '../events/bus'; import type { JsonError } from '../events/schema'; export type JsonOutputOptions = { command: string; data?: unknown; nextSteps?: string[]; error?: JsonError; success?: boolean; runId?: string; repoRoot?: string; bus?: EventBus; }; type AssistantSuggestion = { summary?: string; steps?: string[]; }; export declare function formatCommandKey(value: string): string; export declare function buildJsonError(error: unknown, options?: { assistant?: AssistantSuggestion | null; }): JsonError; export declare function emitJsonResult(options: JsonOutputOptions): Promise; export declare function emitJsonSuccess(options: { command: string; data?: unknown; nextSteps?: string[]; runId?: string; repoRoot?: string; bus?: EventBus; }): Promise; export declare function emitJsonError(options: { command: string; error: unknown; assistant?: AssistantSuggestion | null; runId?: string; repoRoot?: string; bus?: EventBus; }): Promise; export {};