import { IConnectionConfig, Connection, IntrospectResult, VarsContext, ConnectionContextOptions, AnyAST, TransactionOptions } from 'lite-supa'; import { Kysely } from 'kysely'; interface IBasePostgresConnectionConfig extends IConnectionConfig { } declare abstract class BasePostgresConnection extends Connection { abstract driver: Driver; dialect: "postgres"; constructor(options: IBasePostgresConnectionConfig); introspect(options?: { useCache?: boolean; }): Promise; private rlsState; /** * Detect if any table has RLS enabled, and if so ensure anon/authenticated * roles exist with default privileges. Runs once per connection. */ private ensureRlsContext; withContext(vars: VarsContext | undefined, fn: (db: Kysely) => Promise, opts?: ConnectionContextOptions): Promise; onPostgrestAST(ast: AnyAST): Promise; transaction(statements: string[], opts?: TransactionOptions): Promise; } export { BasePostgresConnection as B, type IBasePostgresConnectionConfig as I };