import { PoolConfig, Pool } from "pg"; import { ListKeyOptions, RecordManagerInterface, UpdateOptions } from "./base.js"; export type PostgresRecordManagerOptions = { postgresConnectionOptions: PoolConfig; pool?: Pool; tableName?: string; schema?: string; }; export declare class PostgresRecordManager implements RecordManagerInterface { lc_namespace: string[]; pool: Pool; tableName: string; namespace: string; finalTableName: string; constructor(namespace: string, config: PostgresRecordManagerOptions); createSchema(): Promise; getTime(): Promise; /** * Generates the SQL placeholders for a specific row at the provided index. * * @param index - The index of the row for which placeholders need to be generated. * @param numOfColumns - The number of columns we are inserting data into. * @returns The SQL placeholders for the row values. */ private generatePlaceholderForRowAt; update(keys: string[], updateOptions?: UpdateOptions): Promise; exists(keys: string[]): Promise; listKeys(options?: ListKeyOptions): Promise; deleteKeys(keys: string[]): Promise; /** * Terminates the connection pool. * @returns {Promise} */ end(): Promise; }