/**
 * Guarded loader for the better-sqlite3 native module.
 *
 * better-sqlite3 ships prebuilt binaries per Node ABI. On a Node version
 * newer than the installed better-sqlite3's prebuilds (and with no C++
 * toolchain to compile from source), the native load fails — historically
 * with a bare `libc++abi: terminating ... Napi::Error` crash-loop and zero
 * guidance. This module is the single place better-sqlite3 is loaded at
 * runtime: it turns that failure into one actionable message and a clean
 * exit instead of an opaque abort.
 */
import type DatabaseConstructor from 'better-sqlite3';
/**
 * Build the user-facing message for a native-load failure. Pure and
 * side-effect free so it can be unit-tested without breaking the binding.
 */
export declare function formatNativeLoadError(err: unknown, nodeVersion: string, abi: string): string;
declare const BetterSqlite3: typeof DatabaseConstructor;
export type { DatabaseConstructor };
export default BetterSqlite3;
