/** * SQL Pipeline Translation — MongoDB-style aggregation pipeline → SQL query */ import type { SqlDialect } from '../types.js'; import type { FullSqlQuery } from './sql-builder.js'; /** * Translate a MongoDB-style aggregation pipeline to a SQL query. * Walks stages in order and builds SELECT ... FROM ... JOIN ... WHERE ... GROUP BY ... ORDER BY ... LIMIT ... OFFSET. * * Supported stages: $match, $sort, $limit, $skip, $project, $group, $count, $lookup, $unwind, $addFields. * Unsupported stages throw PIPELINE_STAGE_UNSUPPORTED. */ export declare function translatePipelineToSQL(collection: string, pipeline: Record[], dialect: SqlDialect): FullSqlQuery; //# sourceMappingURL=pipeline-sql.d.ts.map