import { ResultSetHeader } from "mysql2/promise"; interface MySQLConfig { host?: string; port?: number; user?: string; password?: string; database?: string; charset?: string; connectionLimit?: number; } declare class MySQLPool { private static config; private static readPool; private static writePool; private static tableName; private static selectAry; private static joinAry; private static whereAry; private static bindingAry; private static orderAry; private static setAry; private static queryLimit; private static queryOffset; private static withTotal; private static currentTarget; private static supportFunction; private constructor(); private static correctConfig; static init(config?: Record): Promise; static close(): Promise; private static reset; static table(tableName: string, target?: "read" | "write"): typeof MySQLPool; static total(): typeof MySQLPool; static select(...fields: string[]): typeof MySQLPool; static innerJoin(table: string, first: string, operator: string, second?: string): typeof MySQLPool; static leftJoin(table: string, first: string, operator: string, second?: string): typeof MySQLPool; static rightJoin(table: string, first: string, operator: string, second?: string): typeof MySQLPool; private static join; static where(column: string, operator: any, value?: any): typeof MySQLPool; static orderBy(column: string, direction?: "ASC" | "DESC" | "asc" | "desc"): typeof MySQLPool; static limit(num: number): typeof MySQLPool; static offset(num: number): typeof MySQLPool; static increase(target: string, number?: number): typeof MySQLPool; static get(): Promise; static insert(data: Record): Promise; static update(data?: Record): Promise; static upsert(data: Record, updateData?: Record | string): Promise; static query(query: string, params?: any[], target?: "read" | "write"): Promise; static read(query: string, params?: any[]): Promise; static write(query: string, params?: any[]): Promise; } export default MySQLPool; //# sourceMappingURL=MySQLPool.d.ts.map