import { Join } from './Join'; declare class SqlLike { private $db; private $action; private $values; private $state; private $returning?; select(...selecteds: string[]): this; distinct(): this; from(table: string): this; join(localKey: `${string}.${string}` | ((join: Join) => Join), referenceKey?: `${string}.${string}`): this; leftJoin(localKey: `${string}.${string}` | ((join: Join) => Join), referenceKey?: `${string}.${string}`): this; rightJoin(localKey: `${string}.${string}` | ((join: Join) => Join), referenceKey?: `${string}.${string}`): this; where(column: Record, operator?: any, value?: any): this; orderBy(column: string, order?: 'ASC' | 'asc' | 'DESC' | 'desc'): this; groupBy(...columns: string[]): this; offset(n?: number): this; limit(n?: number): this; having(condition: string): this; dd(): this; delete(table: string): this; update(table: string): this; set(values: Record): this; insert(table: string): this; values(values: Record | Record[]): this; returning(returning?: Record | null): this; then(onFulfilled: ((value: any[]) => TResult1 | PromiseLike), onRejected: ((reason: any) => TResult2 | PromiseLike)): Promise; } declare const sql: () => SqlLike; export { sql }; export default sql;