import type { Knex } from 'knex'; /** knex 3.3 logs this, with a stack, on every failed connection acquire. */ export declare const KNEX_ACQUIRE_ERROR_PREFIX = "Acquire connection error:"; interface WarnLogger { warn(message: string): void; } export interface KnexWarnOptions { intervalMs?: number; now?: () => number; } /** * During pool exhaustion knex warns once per waiting query. Keep the first acquire warning and at * most one per interval after it; pass every other knex warning through. */ export declare const createKnexWarn: (logger: WarnLogger, { intervalMs, now }?: KnexWarnOptions) => (message: unknown) => void; /** Route knex's warnings through the Strapi logger unless the project configured its own. */ export declare const withStrapiKnexLog: (config: Knex.Config, logger: WarnLogger, options?: KnexWarnOptions) => Knex.Config; export {}; //# sourceMappingURL=knex-log.d.ts.map