import { Constructor } from '@dandi/common'; import { DbQueryable } from '@dandi/data'; import { ModelBuilder, ModelBuilderOptions } from '@dandi/model-builder'; import { QueryResult } from 'pg'; export interface PgDbQueryableClient { query(cmd: string, args: any[]): Promise; } export declare class PgDbQueryableBase implements DbQueryable { protected client: TClient; protected modelBuilder: ModelBuilder; protected modelBuilderOptions?: ModelBuilderOptions; constructor(client: TClient, modelBuilder: ModelBuilder, modelBuilderOptions?: ModelBuilderOptions); query(cmd: string, ...args: any[]): Promise; queryModel(model: Constructor, cmd: string, ...args: any[]): Promise; queryModelSingle(model: Constructor, cmd: string, ...args: any[]): Promise; replaceSelectList(model: Constructor, cmd: string): string; private formatArg; }