import { DatabaseSession } from "./database-session"; import { TransactionScope } from "../domain/transaction-scope"; export interface DatabaseSessionRegistry { readonly transactionScope: TransactionScope; createSession(...args: unknown[]): DatabaseSession; deleteSession(id: string, ...args: unknown[]): void | Promise; getSession(id: string, ...args: unknown[]): DatabaseSession | undefined; hasSession(id: string): boolean; }