type ActiveDatabaseHandle = { unsafe(query: string, params?: readonly unknown[]): Promise; }; declare function runWithDatabaseConnection(connection: ActiveDatabaseHandle, callback: () => T | Promise): T | Promise; declare function getActiveDatabaseConnection(fallback: T): T; declare function hasActiveDatabaseConnection(): boolean; export type { ActiveDatabaseHandle }; export { getActiveDatabaseConnection, hasActiveDatabaseConnection, runWithDatabaseConnection };