import { Md2PdfError } from '../errors/index.js'; import type { CliOptions } from './options.js'; export declare const EXIT: { OK: number; USAGE_ERROR: number; ENVIRONMENT_ERROR: number; INTERNAL_BUG: number; }; export declare function jsonOut(data: object): void; export declare function renderCliError(err: Md2PdfError, options: CliOptions): void; /** Minimal interface satisfied by both ora and the noop fallback. */ export interface SpinnerLike { start(): void; stop(): void; succeed(text?: string): void; warn(text?: string): void; fail(text?: string): void; info(text?: string): void; text: string; } /** Silent spinner used when --json-errors or --quiet is active. */ export declare const noopSpinner: SpinnerLike; /** * Emit a structured JSON error to stdout and exit immediately. * Used for pre-flight errors that occur before a file is being processed. */ export declare function emitJsonErrorAndExit(code: string, title: string, reason: string): never;