import { SqlSlowMonitor } from '../monitor'; type MssqlConnectionOrPool = any; /** * Wraps an `mssql` ConnectionPool (or a Request) to intercept query execution timing. * * Works by monkey-patching the `request()` method on the pool so that every * `Request.query()` / `Request.execute()` call is measured automatically. * * Alternatively, you can pass an `mssql.Request` instance directly and only * that single request will be instrumented. * * @example * ```ts * import sql from 'mssql'; * import SqlSlow from 'sql-slow'; * * const pool = await sql.connect(connectionString); * const monitor = SqlSlow.create(null, { alert: '>500ms' }); * attachMssqlAdapter(pool, monitor.monitor); * ``` * * @param conn An `mssql` ConnectionPool or Request instance * @param monitor The SqlSlowMonitor to forward events to */ export declare function attachMssqlAdapter(conn: MssqlConnectionOrPool, monitor: SqlSlowMonitor): void; export {}; //# sourceMappingURL=mssqlAdapter.d.ts.map