/** SQL-building helpers for adapters whose queries are assembled from filters. */ /** * A Postgres `text[]` literal, passed as a string and cast with `::text[]`. Quoting every element * means a path segment containing a comma, a brace, or a quote cannot change the array. */ export declare function textArray(parts: readonly string[]): string; /** A `LIKE` pattern matching text that starts with `prefix`, with wildcards in it escaped. */ export declare function likePrefix(prefix: string): string; /** Collects parameters and hands out their placeholders, so dynamic SQL stays parameterized. */ export declare class SqlParams { readonly values: unknown[]; add(value: unknown): string; } /** * The SQL condition for one exact-match filter on a jsonb document, by dot path. * * Mirrors the in-memory stores exactly: a scalar must be equal, `null` must be a stored null, * `undefined` must be absent, and an object never matches, because in-memory `===` never matches * one. `anyOf` makes an array mean "one of these values", as the long-term store's filter does. */ export declare function jsonFieldEquals(column: string, path: string, expected: unknown, params: SqlParams, options?: { anyOf?: boolean; }): string;