import { type Pool, type PoolConfig } from 'pg'; import type { Cache } from "../cache/core/cache.js"; import { entityKind } from "../entity.js"; import type { Logger } from "../logger.js"; import { PgDatabase } from "../pg-core/db.js"; import { PgDialect } from "../pg-core/dialect.js"; import { type RelationalSchemaConfig, type TablesRelationalConfig } from "../relations.js"; import { type DrizzleConfig } from "../utils.js"; import type { NodePgClient, NodePgQueryResultHKT } from "./session.js"; import { NodePgSession } from "./session.js"; export interface PgDriverOptions { logger?: Logger; cache?: Cache; } export declare class NodePgDriver { private client; private dialect; private options; static readonly [entityKind]: string; constructor(client: NodePgClient, dialect: PgDialect, options?: PgDriverOptions); createSession(schema: RelationalSchemaConfig | undefined): NodePgSession, TablesRelationalConfig>; } export declare class NodePgDatabase = Record> extends PgDatabase { static readonly [entityKind]: string; } export declare function drizzle = Record, TClient extends NodePgClient = Pool>(...params: [ TClient | string ] | [ TClient | string, DrizzleConfig ] | [ DrizzleConfig & ({ client: TClient; } | { connection: string | PoolConfig; }) ]): NodePgDatabase & { $client: NodePgClient extends TClient ? Pool : TClient; }; export declare namespace drizzle { function mock = Record>(config?: DrizzleConfig): NodePgDatabase & { $client: '$client is not available on drizzle.mock()'; }; }