import type { ClientConfig, QueryResult } from 'pg'; import { ModelConfig } from '../typings'; export interface PostgreSQLClientConfig { client: ClientConfig; namespace: string; } export default class PostgreSQLClient { static ERRORS: {}; private _config; private _client; constructor(config: PostgreSQLClientConfig); static init(config: PostgreSQLClientConfig): Promise; connect(): Promise; disconnect(): Promise; static getTableBaseName(modelConfig: Partial, namespace?: string): string; static getSqlSchemaForModelDeletion(modelConfig: Partial, namespace?: string): string[]; static getSqlSchemaForModel(modelConfig: Partial, namespace?: string): string[]; static getSqlSchemaForModels(modelConfigs: Partial[], mustClean?: boolean, namespace?: string): string[]; query(q: string): Promise>; queryAll(queries: string[]): Promise[]>; insert(modelConfig: Partial, source: 'events' | 'entities', data: any, options?: { with_encrypted_data: boolean; }): Promise>; }