import { IOptions } from './Connection'; import IQueryBuilder from './IQueryBuilder'; import { IWhere, IWhereConfig } from './IQueryBuilder'; export default class DB implements IQueryBuilder { static getConnection(path: string): DB; private static getOptions; private readonly options; private readonly connection; private readonly cloneDeep; constructor(options?: IOptions); connectionChecker(): boolean; parseResultQuery(result: any): any; table(tableName: string): IQueryBuilder; get(): Promise; first(): Promise>; select(...args: string[]): IQueryBuilder; distinct(status?: boolean): IQueryBuilder; whereConfig(config: IWhereConfig): IQueryBuilder; where(...args: IWhere[]): IQueryBuilder; whereSimple(wheres: Record): IQueryBuilder; returning(...args: string[]): IQueryBuilder; with(name: string, query: string, recursive?: boolean): IQueryBuilder; groupBy(...args: string[]): IQueryBuilder; orderBy(...args: string[]): IQueryBuilder; offset(count: number): IQueryBuilder; limit(count: number): IQueryBuilder; skip(count: number): IQueryBuilder; take(count: number): IQueryBuilder; join(table: string, key: string, operation: string, value: string, type?: string): IQueryBuilder; innerJoin(table: string, key: string, operation: string, value: string): IQueryBuilder; leftJoin(table: string, key: string, operation: string, value: string): IQueryBuilder; rightJoin(table: string, key: string, operation: string, value: string): IQueryBuilder; fullJoin(table: string, key: string, operation: string, value: string): IQueryBuilder; insert(items: Record, options?: Record): Promise; update(items: Record): Promise; delete(): Promise; getQuery(): string; raw(query: string): any; logger(): any; }