import { S as ScopeField, _ as FieldProxy, a as TableProxyContract, b as QueryContext, m as AggregateFunctions, t as Db, v as Functions, x as Scope } from "../db-D1Zq4FVc.mjs"; import { AnyExpression } from "@prisma-next/sql-relational-core/ast"; import { Expression, RawCodecInferer } from "@prisma-next/sql-relational-core/expression"; import { SqlStorage } from "@prisma-next/sql-contract/types"; import { CodecRef } from "@prisma-next/framework-components/codec"; import { SqlOperationEntry } from "@prisma-next/sql-operations"; import { Contract } from "@prisma-next/contract/types"; import { ExecutionContext } from "@prisma-next/sql-relational-core/query-lane-context"; //#region src/runtime/expression-impl.d.ts /** * Runtime wrapper around a relational-core AST expression node. Carries ScopeField metadata (codecId, nullable) so aggregate-like combinators can propagate the input codec onto their result. * * `codec` records the column-bound {@link CodecRef} when the field-proxy knows the binding — both the namespaced form (`f.user.email` → `ColumnRef`) and the top-level shortcut (`f.email` → `IdentifierRef`) stamp the ref derived from contract storage. `codecOf(expression)` exposes it for operation implementations forwarding the ref to `toExpr`. */ declare class ExpressionImpl implements Expression { private readonly ast; readonly returnType: T; readonly codec: CodecRef | undefined; constructor(ast: AnyExpression, returnType: T, codec?: CodecRef); buildAst(): AnyExpression; } //#endregion //#region src/runtime/field-proxy.d.ts declare function createFieldProxy(scope: S): FieldProxy; //#endregion //#region src/runtime/functions.d.ts declare function createFunctions(operations: Readonly>, rawCodecInferer: RawCodecInferer): Functions; declare function createAggregateFunctions(operations: Readonly>, rawCodecInferer: RawCodecInferer): AggregateFunctions; //#endregion //#region src/runtime/sql.d.ts interface SqlOptions & TableProxyContract> { readonly context: ExecutionContext; readonly rawCodecInferer: RawCodecInferer; } declare function sql & TableProxyContract>(options: SqlOptions): Db; //#endregion export { type Db, ExpressionImpl, type SqlOptions, createAggregateFunctions, createFieldProxy, createFunctions, sql }; //# sourceMappingURL=index.d.mts.map