///
import { Knex } from "knex";
import { SessionData, Store } from "express-session";
interface Options {
cleanupInterval: number;
createTable: boolean;
knex: Knex;
onDbCleanupError: (err: unknown) => void;
tableName: string;
sidFieldName: string;
}
export declare class ConnectSessionKnexStore extends Store {
options: Options;
nextDbCleanup: NodeJS.Timeout | undefined;
ready: Promise;
constructor(incomingOptions: Partial);
get(sid: string, callback: (err: any, session?: SessionData | null) => void): Promise;
set(sid: string, session: SessionData, callback?: (err?: any) => void): Promise;
touch(sid: string, session: SessionData, callback?: () => void): Promise;
destroy(sid: string, callback?: (err?: any) => void): Promise;
length(callback: (err: any, length?: number) => void): Promise;
clear(callback?: (err?: any) => void): Promise;
all(callback: (err: any, obj?: SessionData[] | {
[sid: string]: SessionData;
} | null) => void): Promise;
private dbCleanup;
}
export {};
//# sourceMappingURL=index.d.ts.map