import { TableDescription } from '../../keyword/table/table-description'; import { SelectSql } from '../select/select-sql'; import { ExcludeNonPrimitive } from '@daita/common'; import { ConditionDescription } from '../../operands'; export interface InsertSql { insert: ExcludeNonPrimitive | ExcludeNonPrimitive[] | SelectSql>; into: TableDescription; onConflict?: InsertOnConflict; } export interface InsertOnConflict { forField: keyof T | (keyof T)[]; do: 'nothing' | InsertOnConflictDoUpdate; } export interface InsertOnConflictDoUpdate { set: Partial; where?: ConditionDescription; } export declare const isInsertSql: (val: any) => val is InsertSql;