import { Knex } from 'knex'; import { DatabaseStore } from './database.js'; import { K as KnexStoreOptions, a as DatabaseAdapter } from '../../drivers-ClN4eGOp.js'; import 'kysely'; import 'ioredis'; import '@aws-sdk/client-dynamodb'; /** * Create a new knex store */ declare function knexStore(config: KnexStoreOptions): { config: KnexStoreOptions; factory: () => DatabaseStore; }; /** * Knex adapter for the DatabaseStore */ declare class KnexAdapter implements DatabaseAdapter { #private; constructor(connection: Knex); setTableName(tableName: string): void; createTableIfNotExists(): Promise; insertLock(lock: { key: string; owner: string; expiration: number | null; }): Promise; acquireLock(lock: { key: string; owner: string; expiration: number | null; }): Promise; deleteLock(key: string, owner?: string | undefined): Promise; extendLock(key: string, owner: string, duration: number): Promise; getLock(key: string): Promise; } export { KnexAdapter, knexStore };