import type { BetterSqlite3Database, SqliteStatement, StmtCache } from '../../types.js';
/**
 * Resolve a cached prepared statement, compiling on first use per db.
 * Each `cache` WeakMap must always be called with the same `sql` —
 * the sql argument is only used on the first compile; subsequent calls
 * return the cached statement regardless of the sql passed.
 */
export declare function cachedStmt<TRow = unknown>(cache: StmtCache<TRow>, db: BetterSqlite3Database, sql: string): SqliteStatement<TRow>;
//# sourceMappingURL=cached-stmt.d.ts.map