import { z } from 'zod'; import { PoolConfig, Pool } from 'pg'; import { NodePgDatabase } from 'drizzle-orm/node-postgres'; import { PgliteDatabase } from 'drizzle-orm/pglite'; import { PgTable } from 'drizzle-orm/pg-core'; import { SQL } from 'drizzle-orm'; import { SQLWrapper } from 'drizzle-orm/sql/sql'; import { G as GridPagination, a as GridRows } from './types-CQXg-o8V.js'; declare const DatabaseConfigSchema: z.ZodObject<{ user: z.ZodString; password: z.ZodString; host: z.ZodString; port: z.ZodCoercedNumber; }, z.core.$strip>; type DatabaseConfigType = z.infer; declare const DEFAULT_ENV_NAMES: Record; declare class DatabaseConfig { private readonly _config; constructor(envNames?: Partial>); get config(): DatabaseConfigType; private parse; buildConnectionString(database: string, statementTimeoutMs?: number, searchPath?: string): string; } declare class PoolManager { private pools; get(key: string, config: PoolConfig): Pool; } type DrizzleDB = NodePgDatabase | PgliteDatabase; type DrizzleTable = PgTable; declare class GridQuery { private readonly searchParams; constructor(searchParams: SearchParams); search(rowsQuery: () => Promise, countsQuery?: () => Promise): Promise>; paging(): { offset: number; limit: number; }; whereAnd(conditions: Partial, SQLWrapper | undefined>>): SQL | undefined; getCount(db: DrizzleDB, table: DrizzleTable, where?: SQL): Promise; } declare class FileLoader { static loadJson(dirname: string, fileName: string): any; static load(dirname: string, fileName: string): string; } export { DEFAULT_ENV_NAMES, DatabaseConfig, DatabaseConfigSchema, type DatabaseConfigType, type DrizzleDB, type DrizzleTable, FileLoader, GridQuery, PoolManager };