import { BooleanOperator, Direction, JoinType, Operator, SqlValue, SqlValueMap, WhereFunction, WhereValue } from './Types'; import { Connection } from './Connection'; import { StringExpression } from './StringExpression'; import { Statement } from './Drivers/Statement'; import { Expression } from './Expression'; export declare class Query extends Expression { static connection: Connection; private statementType; private useDistinct; private components; get statement(): Statement; static table(table: string): Query; static from(table: string): Query; static truncate(table: string): Promise; truncate(): Promise; getBindings(): SqlValue[]; toSQL(): string; get(...columns: (K | string | StringExpression)[]): Promise; run(): Promise; table(table: string): this; from(table: string): this; first(...columns: (K | string | StringExpression)[]): Promise; select(...columns: (K | string | StringExpression)[]): this; where(column: K | string, operator: Operator | Query | WhereValue | WhereFunction | T[K], value?: Query | WhereValue | WhereFunction | T[K], boolean?: BooleanOperator): this; orWhere(column: K | string, operator: Operator | WhereValue | T[K], value?: WhereValue | T[K]): this; andWhere(column: K | string, operator: Operator | WhereValue | T[K], value?: WhereValue | T[K]): this; whereIn(column: K | string, values: Query | WhereFunction | WhereValue[] | T[K][], boolean?: BooleanOperator, not?: boolean): this; andWhereIn(column: K | string, values: SqlValue[]): this; andWhereNotIn(column: K | string, values: SqlValue[]): this; whereLike(column: K | string, value: SqlValue, boolean?: BooleanOperator, not?: boolean): this; whereNotIn(column: K | string, values: Query | WhereFunction | WhereValue[] | T[K][], boolean?: BooleanOperator): this; orWhereIn(column: K | string, values: SqlValue[]): this; orWhereNotIn(column: K | string, values: SqlValue[]): this; orWhereLike(column: K | string, value: SqlValue, not?: boolean): this; orWhereNotLike(column: K | string, value: SqlValue): this; whereBetween(column: K | string, values: [SqlValue, SqlValue], boolean?: BooleanOperator, not?: boolean): this; whereNotBetween(column: K | string, values: [SqlValue, SqlValue], boolean?: BooleanOperator): this; orWhereBetween(column: K | string, values: [SqlValue, SqlValue]): this; orWhereNotBetween(column: K | string, values: [SqlValue, SqlValue]): this; whereNull(column: K | string, boolean?: BooleanOperator, not?: boolean): this; andWhereNull(column: K | string): this; whereNotNull(column: K | string, boolean?: BooleanOperator): this; andWhereNotNull(column: K | string, boolean?: BooleanOperator): this; orWhereNull(column: K | string): this; orWhereNotNull(column: K | string): this; distinct(value?: boolean): this; join(table: string, first: string, operator: Operator, second: string, type?: keyof typeof JoinType): this; innerJoin(table: string, first: string, operator: Operator, second: string): this; leftJoin(table: string, first: string, operator: Operator, second: string): this; rightJoin(table: string, first: string, operator: Operator, second: string): this; orderBy(column: K | [string | K, Direction][], direction?: Direction): this; groupBy(...columns: (K | string)[]): this; addSelect(...columns: (K | string | StringExpression)[]): this; count(...columns: (K | string | StringExpression)[]): Promise; selectCount(...columns: (K | string | StringExpression)[]): this; max(column: (K | string | StringExpression), ...columns: (K | string | StringExpression)[]): Promise; insert(data: SqlValueMap | SqlValueMap[]): Promise; insertOne(data: SqlValueMap): Promise; delete(): Promise; update(name: string | keyof T | Record | SqlValueMap, value?: SqlValue): Promise; limit(from: number, count?: number): this; } //# sourceMappingURL=Query.d.ts.map