/**
 * Daemon startup preflight: verify the better-sqlite3 native binding loads
 * against the current Node.js version.
 *
 * If the binding was compiled for a different Node.js version
 * (NODE_MODULE_VERSION mismatch), we attempt `npm rebuild better-sqlite3`
 * in the nexus-prime package root, then retry the binding load.
 *
 * On unrecoverable failure → write startup-error.json to stateRoot and
 * return { ok: false }.
 */
export interface PreflightResult {
    ok: boolean;
    code?: string;
    hint?: string;
    at: number;
}
/**
 * Run the preflight check.
 * Returns { ok: true } if the binding works after at most one rebuild attempt.
 * Returns { ok: false, code, hint } and writes startup-error.json on failure.
 */
export declare function runPreflight(stateRoot: string): Promise<PreflightResult>;
