import type { SqlParserLike } from './parser.js';
/**
 * Ensures a SELECT returns at most `max` rows. If the statement already carries
 * a LIMIT it is returned unchanged; otherwise it is wrapped in a bounding
 * subquery (`SELECT * FROM (<sql>) AS subq LIMIT <max>`) so any ORDER BY /
 * GROUP BY / UNION inside `sql` is preserved.
 *
 * The `node-sql-parser` `Parser` is injected (see {@link loadSqlParser}) so this file never imports the
 * optional peer at module load.
 */
export declare function injectLimit(parser: SqlParserLike, sql: string, max: number): string;
//# sourceMappingURL=limit.d.ts.map