import type { Expr, Parameter } from './malloy_types'; import type { Dialect } from '../dialect'; import type { EventStream } from '../runtime_types'; type ConstantExpressionResult = { sql: string; error?: undefined; } | { sql?: undefined; error: string; }; /** * Compiles an IR expression containing only constants and parameters to SQL. * This is useful for expressions that don't reference source fields. * * @param expr The expression to compile (should contain only literals, parameters, and operations on them) * @param dialect The SQL dialect to use for generation * @param parameters Parameters that can be referenced in the expression * @param eventStream Optional event stream for debugging/tracking * @returns Either {sql: string} on success or {error: string} on failure */ export declare function constantExprToSQL(expr: Expr, dialect: Dialect, parameters?: Record, eventStream?: EventStream): ConstantExpressionResult; export {};