import type { ClickHouseJsonQueryResult } from '@chkit/clickhouse'; import type { ChxPluginCommand } from '../plugins.js'; export declare const queryCommand: ChxPluginCommand; /** * ClickHouse syntax errors echo back the query — including the `FORMAT JSON` * clause chkit injects, which the user never typed — and can append a ~40-item * "Expected one of" token dump. Strip the injected FORMAT clause and cap the * token list so the message reflects the SQL the user actually wrote. Returns * the original error untouched when there is nothing to clean (e.g. connection * errors already formatted upstream). */ export declare function cleanQueryError(error: unknown): unknown; export declare function formatQueryJson(payload: ClickHouseJsonQueryResult): string; export declare function formatRows(rows: Record[], options?: { limit?: number; }): string; //# sourceMappingURL=query.d.ts.map