import { GetColumnData } from 'drizzle-orm'; import { Param, Query, SQL, SQLWrapper } from 'drizzle-orm/sql'; import { Simplify } from 'drizzle-orm/utils'; import { SQLiteDialect } from '../dialect'; import { SelectFieldsOrdered, SelectResultFields, SQLiteSelectFields } from '../operations'; import { PreparedQuery, SQLiteSession } from '../session'; import { AnySQLiteTable, GetTableConfig, InferModel } from '../table'; export interface SQLiteUpdateConfig { where?: SQL | undefined; set: SQLiteUpdateSet; table: AnySQLiteTable; returning?: SelectFieldsOrdered; } export declare type SQLiteUpdateSetSource = Simplify<{ [Key in keyof GetTableConfig]?: GetColumnData[Key], 'query'> | SQL; }>; export declare type SQLiteUpdateSet = Record; export declare class SQLiteUpdateBuilder { protected table: TTable; protected session: SQLiteSession; protected dialect: SQLiteDialect; protected $table: TTable; constructor(table: TTable, session: SQLiteSession, dialect: SQLiteDialect); set(values: SQLiteUpdateSetSource): SQLiteUpdate; } export interface SQLiteUpdate extends SQLWrapper { } export declare class SQLiteUpdate implements SQLWrapper { private session; private dialect; protected $table: TTable; private config; constructor(table: TTable, set: SQLiteUpdateSet, session: SQLiteSession, dialect: SQLiteDialect); where(where: SQL | undefined): Omit; returning(): Omit>, 'where' | 'returning'>; returning(fields: TSelectedFields): Omit>, 'where' | 'returning'>; toSQL(): Query; prepare(): PreparedQuery<{ type: TResultType; run: TRunResult; all: TReturning extends undefined ? never : TReturning[]; get: TReturning extends undefined ? never : TReturning; values: TReturning extends undefined ? never : any[][]; }>; run: ReturnType['run']; all: ReturnType['all']; get: ReturnType['get']; values: ReturnType['values']; } //# sourceMappingURL=update.d.ts.map