export declare class ApiError extends Error { readonly status: number; readonly code?: string | undefined; constructor(status: number, message: string, code?: string | undefined); } export declare function out(data: unknown): void; /** The only writer for untrusted text: strips ANSI and C0/C1 controls. */ export declare function sanitizeLine(text: string): string; /** Every version the route caps at 32 printable ASCII chars. */ export declare function boundedVersion(text: string): string | undefined; export declare function outLine(line: string): void; /** `connect --all` nests a harness's own lines under its step header. */ export declare function setErrIndent(prefix: string): void; export declare function errLine(line: string): void; /** Advisory stderr line, yellow on a terminal and plain everywhere else so piped output stays clean. */ export declare function warnLine(line: string): void; export declare function err(data: unknown): void; export declare function handleApiError(e: unknown): never; /** Undefined, not a throw: callers hand the value to a Zod safeParse. */ export declare function parseJson(text: string): unknown;