import type { KyselyConfig } from "kysely"; import type { SessionStore } from "./types"; interface NewClientOpts { /** * Knex database config. * * Remember to install the corresponding db driver. * * @see {@link https://knexjs.org/guide/#configuration-options Knex | Configuration Options} * */ config: KyselyConfig; /** Table name to use for sessions. Defaults to "telegraf-sessions". */ table?: string; /** Called on fatal connection or setup errors */ onInitError?: (err: unknown) => void; } /** @unstable */ export declare const KyselyStore: (opts: NewClientOpts) => SessionStore; export {};