import { SQL, AnyColumn } from 'drizzle-orm'; import { QueryContext } from './cube.js'; /** * Type-level utility to extract the schema type from a cube reference * Since we removed generics, this now returns 'any' */ export type ExtractSchemaFromCubeRef = any; /** * Type for SQL expressions that can be functions or direct values */ export type SqlExpression = AnyColumn | SQL | ((ctx: QueryContext) => AnyColumn | SQL);