'use client'; import { ParseResult } from "@pgsql/types"; //#region src/sql/display-query.d.ts interface CompactSelectListOptions { /** * Compact only when the SELECT has more than this many target-list entries. * Default: 2. */ minTargets?: number; /** * Compact only when the target-list slice (from first target to FROM) * exceeds this many bytes. Default: 40. */ minSliceBytes?: number; } /** * Returns `query` with the top-level SELECT target list replaced by `...`, * e.g. `SELECT ... FROM users WHERE id = $1`. Returns `undefined` when the * query shouldn't be compacted: parse failure, not a plain SELECT, * UNION/INTERSECT/EXCEPT, no FROM clause, or below the configured threshold. * * NOT VALID SQL — never parse or execute the result. Display-only. * * Caller passes the AST (already parsed via `@pgsql/parser`) so this module * stays free of a parser runtime dependency, mirroring how `Analyzer` * accepts an injected parser. */ declare function compactSelectList(query: string, ast: ParseResult, options?: CompactSelectListOptions): string | undefined; //#endregion export { CompactSelectListOptions, compactSelectList }; //# sourceMappingURL=display-query.d.cts.map