import { DB } from './DB';
import { TQueryCb } from '../interface';
export declare let _vDB: DB | null;
export declare class Sql {
    host: string | null;
    user: string | null;
    pass: string | null;
    database: string | null;
    constructor();
    standardInit(): Promise<boolean>;
    initParam(host: string, user: string, pass: string, database: string): void;
    connect(): Promise<boolean>;
    isConnected(): Promise<boolean>;
    close(): void;
    escapeString(text: string | number): string;
    query(callback: TQueryCb): Promise<any>;
    protected static _saveLog(errorMsg: string): boolean;
}
