import { Dialect, LogConfig, KyselyPlugin, Kysely, ColumnType } from 'kysely'; import { Either } from '@lsby/ts-fp-data'; declare class Kysely管理器 { static 从适配器创建(dialect: Dialect, log?: LogConfig, plugins?: KyselyPlugin[]): Kysely管理器; static 从句柄创建(句柄: Kysely): Kysely管理器; private 句柄; private constructor(); 获得句柄(): Kysely; 执行事务(func: (trx: Kysely) => Promise): Promise; 执行事务Either(func: (trx: Kysely) => Promise>): Promise>; 销毁(): Promise; } type Generated = T extends ColumnType ? ColumnType : ColumnType; type Timestamp = ColumnType; export { type Generated, Kysely管理器, type Timestamp };