/** * Text fallback for array_lower(arr, 1) and array_upper(arr, 1). * * The AST visitor handles statements node-sql-parser can read and re-print. * Drizzle also emits statements it cannot, such as DELETE ... RETURNING * without WHERE, INSERT ... SELECT ... RETURNING and WITH ... DELETE. Those * reached DuckDB unchanged and failed because it has no array_lower or * array_upper. This pass rewrites only the call itself and copies every other * character, so literals, parameters and identifiers cannot change. */ /** * Rewrite first-dimension array_lower and array_upper calls. Returns the * query unchanged when there is nothing to rewrite. */ export declare function rewriteArrayBoundsText(query: string): string;