import type { ResolvedObservability } from '../../core/config/load.js'; /** postgres.js's `debug` hook signature. */ type DebugFn = (connection: number, query: string, parameters: unknown[]) => void; /** * True when the driver's `debug` hook exists ONLY to feed a statement observer. * Such a connection's errors are put back to their unobserved shape by the * driver error boundary; `logAllQueries` connections are left exactly as they * are today, that mode having already opted into verbose errors. */ export declare function isObserverOnly(config: ResolvedObservability): boolean; /** * The driver's `debug` hook for a connection, or undefined when nothing is * observing. Query logging and the caller-supplied `onStatement` observer are * independent: either alone installs the hook, and with both configured both * fire for every statement. */ export declare function createDebugFn(config: ResolvedObservability): DebugFn | undefined; export declare function isDeadlock(err: unknown): boolean; export declare function logDeadlock(err: unknown, dbName: string): void; export {}; //# sourceMappingURL=instrumentation.d.ts.map