import type { SQL } from 'drizzle-orm'; import type { PgTableWithColumns } from 'drizzle-orm/pg-core'; import type { Field, FieldAffectingData, TabAsField } from 'mzinga/types'; import type { GenericColumn, GenericTable, PostgresAdapter } from '../types'; import type { BuildQueryJoinAliases, BuildQueryJoins } from './buildQuery'; type Constraint = { columnName: string; table: GenericTable | PgTableWithColumns; value: unknown; }; type TableColumn = { columnName?: string; constraints: Constraint[]; field: FieldAffectingData; getNotNullColumnByValue?: (val: unknown) => string; pathSegments?: string[]; rawColumn?: SQL; table: GenericTable | PgTableWithColumns; }; type Args = { adapter: PostgresAdapter; aliasTable?: GenericTable | PgTableWithColumns; collectionPath: string; columnPrefix?: string; constraintPath?: string; constraints?: Constraint[]; fields: (Field | TabAsField)[]; joinAliases: BuildQueryJoinAliases; joins: BuildQueryJoins; locale?: string; pathSegments: string[]; rootTableName?: string; selectFields: Record; tableName: string; /** * If creating a new table name for arrays and blocks, this suffix should be appended to the table name */ tableNameSuffix?: string; /** * The raw value of the query before sanitization */ value: unknown; }; /** * Transforms path to table and column name * Adds tables to `join` * @returns TableColumn */ export declare const getTableColumnFromPath: ({ adapter, aliasTable, collectionPath, columnPrefix, constraintPath: incomingConstraintPath, constraints, fields, joinAliases, joins, locale: incomingLocale, pathSegments: incomingSegments, rootTableName: incomingRootTableName, selectFields, tableName, tableNameSuffix, value, }: Args) => TableColumn; export {}; //# sourceMappingURL=getTableColumnFromPath.d.ts.map