import type { ActiveDatabaseHandle } from "./connectionContext.ts"; type MysqlExecutable = { execute: (sql: string, params?: unknown[]) => Promise<[unknown, unknown]>; end?: () => Promise; }; type MysqlPool = MysqlExecutable & { end(): Promise; on(event: "connection", listener: (connection: unknown) => void): void; }; type MysqlConnection = ActiveDatabaseHandle & { close(): Promise; }; declare function resetMysqlLoaderForTests(importer?: () => Promise): void; declare function createMysqlConnectionFromPool(pool: MysqlExecutable): MysqlConnection; declare function createMysqlPool(url: string): Promise; declare function createMysqlConnection(url: string): MysqlConnection; export type { MysqlConnection, MysqlExecutable, MysqlPool }; export { createMysqlConnection, createMysqlConnectionFromPool, createMysqlPool, resetMysqlLoaderForTests, };