import type { HitLimitStore } from '@joint-ops/hitlimit-types'; import { SQL } from 'bun'; type PgPoolLike = { query(query: string, values?: any[]): Promise<{ rows: any[]; rowCount?: number | null; }>; query(query: { name?: string; text: string; values?: any[]; }): Promise<{ rows: any[]; rowCount?: number | null; }>; }; export interface PostgresStoreOptions { /** Connection string. Store creates and owns a Bun native SQL client. */ url?: string; /** Caller-owned Bun native SQL client. Store uses it but does not close it. */ client?: SQL; /** * @deprecated Use `url` or `client` in @joint-ops/hitlimit-bun. * Legacy pg.Pool support. Store uses it but does not close it. */ pool?: PgPoolLike; tablePrefix?: string; cleanupInterval?: number; skipTableCreation?: boolean; } export declare function postgresStore(options: PostgresStoreOptions): HitLimitStore; export {}; //# sourceMappingURL=postgres.d.ts.map