import { TableName } from "../../types"; import { DB } from "../db/types"; export interface Table { tableName: TableName; db: DB; select: { (args?: Omit[0], "table">): ReturnType; rows(args?: Omit[0], "table">): ReturnType; row(args?: Omit[0], "table">): ReturnType; celd(args?: Omit[0], "table">): ReturnType; column(args?: Omit[0], "table">): ReturnType; } insert(args: Omit[0], "table">): ReturnType; update(args: Omit[0], "table">): ReturnType; delete(args?: Omit[0], "table">): ReturnType; exist(args: Omit[0], "table">): ReturnType; count(args?: Omit[0], "table">): ReturnType; } export interface TableClass { new(tableName: TableName, db: DB): Table; }